Skip to content

Commit

Permalink
Update mellanox dpdk example files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmduh-483 authored and ahalimx86 committed May 12, 2020
1 parent 6a451ad commit 96cf184
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
6 changes: 4 additions & 2 deletions docs/dpdk/mlnx-dpdk/configMap.yaml
Expand Up @@ -8,20 +8,22 @@ data:
{
"resourceList": [
{
"resourcePrefix": "mellanox.com",
"resourceName": "mlnx_connectx4",
"selectors": {
"vendors": ["15b3"],
"devices": ["1016"],
"drivers": ["mlx5_ib", "mlx5_core"],
"drivers": ["mlx5_core"],
"isRdma": true

This comment has been minimized.

Copy link
@BurlyLuo

BurlyLuo Jun 12, 2022

This feature is for DPDK, why there isRdma set to true?

This comment has been minimized.

Copy link
@adrianchiris

adrianchiris Jun 13, 2022

Contributor

Mellanox DPDK PMD requires rdma resources in container.

Mellanox DPDK PMD driver works in a bifurcated mode, so it requires NIC to be bound to kernel driver (as well as having RDMA resources available)

https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html

This comment has been minimized.

Copy link
@BurlyLuo

BurlyLuo Jun 13, 2022

okay, thanks @adrianchiris

}
},
{
"resourcePrefix": "mellanox.com",
"resourceName": "mlnx_connectx5",
"selectors": {
"vendors": ["15b3"],
"devices": ["1018"],
"drivers": ["mlx5_ib", "mlx5_core"],
"drivers": ["mlx5_core"],
"isRdma": true
}
}
Expand Down
11 changes: 10 additions & 1 deletion docs/dpdk/mlnx-dpdk/crd-dpdk-connectx4.yaml
Expand Up @@ -6,6 +6,15 @@ metadata:
k8s.v1.cni.cncf.io/resourceName: mellanox.com/mlnx_connectx4
spec:
config: '{
"cniVersion": "0.3.1",
"type": "sriov",
"name": "sriov-mlnx_connectx4"
"name": "sriov-mlnx-connectx4",
"ipam": {
"type": "host-local",
"subnet": "10.56.217.0/24",
"routes": [{
"dst": "0.0.0.0/0"
}],
"gateway": "10.56.217.1"
}
}'
11 changes: 10 additions & 1 deletion docs/dpdk/mlnx-dpdk/crd-dpdk-connectx5.yaml
Expand Up @@ -6,6 +6,15 @@ metadata:
k8s.v1.cni.cncf.io/resourceName: mellanox.com/mlnx_connectx5
spec:
config: '{
"cniVersion": "0.3.1",
"type": "sriov",
"name": "sriov-mlnx_connectx5"
"name": "sriov-mlnx-connectx5",
"ipam": {
"type": "host-local",
"subnet": "10.56.217.0/24",
"routes": [{
"dst": "0.0.0.0/0"
}],
"gateway": "10.56.217.1"
}
}'
6 changes: 3 additions & 3 deletions docs/dpdk/mlnx-dpdk/mlnx-pod_testpmd_connectx4.yaml
Expand Up @@ -8,7 +8,7 @@ spec:
containers:
- name: testpmd
image: <DPDK testpmd image>
imagePullPolicy: Never
imagePullPolicy: IfNotPresent
securityContext:
capabilities:
add: ["IPC_LOCK"]
Expand All @@ -18,10 +18,10 @@ spec:
resources:
requests:
memory: 1Gi
hugepages-1Gi: 4Gi
hugepages-1Gi: 2Gi
mellanox.com/mlnx_connectx4: 2
limits:
hugepages-1Gi: 4Gi
hugepages-1Gi: 2Gi
mellanox.com/mlnx_connectx4: 2
command: ["sleep", "infinity"]
volumes:
Expand Down
6 changes: 3 additions & 3 deletions docs/dpdk/mlnx-dpdk/mlnx-pod_testpmd_connectx5.yaml
Expand Up @@ -8,7 +8,7 @@ spec:
containers:
- name: testpmd
image: <DPDK testpmd image>
imagePullPolicy: Never
imagePullPolicy: IfNotPresent
securityContext:
capabilities:
add: ["IPC_LOCK"]
Expand All @@ -18,10 +18,10 @@ spec:
resources:
requests:
memory: 1Gi
hugepages-1Gi: 4Gi
hugepages-1Gi: 2Gi
mellanox.com/mlnx_connectx5: 2
limits:
hugepages-1Gi: 4Gi
hugepages-1Gi: 2Gi
mellanox.com/mlnx_connectx5: 2
command: ["sleep", "infinity"]
volumes:
Expand Down
3 changes: 2 additions & 1 deletion docs/rdma/configMap.yaml
Expand Up @@ -9,10 +9,11 @@ data:
"resourceList": [
{
"resourceName": "mlnx_rdma",
"resourcePrefix": "mellanox.com",
"selectors": {
"vendors": ["15b3"],
"devices": ["1016", "1018"],
"drivers": ["mlx5_ib", "mlx5_core"],
"drivers": ["mlx5_core"],
"isRdma": true
}
}
Expand Down

0 comments on commit 96cf184

Please sign in to comment.