Skip to content

Commit d7e7fa9

Browse files
authored
Merge pull request #27624 from SchSeba/update_mlx_dpdk_doc
Bug 1891614: Update mlx dpdk base on cve-2020-14386
2 parents 0dadee8 + 6111c05 commit d7e7fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/nw-sriov-dpdk-example-mellanox.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spec:
9999
image: <DPDK_image> <2>
100100
securityContext:
101101
capabilities:
102-
add: ["IPC_LOCK"] <3>
102+
add: ["IPC_LOCK","NET_RAW"] <3>
103103
volumeMounts:
104104
- mountPath: /dev/hugepages <4>
105105
name: hugepage
@@ -122,7 +122,7 @@ spec:
122122
----
123123
<1> Specify the same `target_namespace` where SriovNetwork CR `mlx-dpdk-network` is created. If you would like to create the pod in a different namespace, change `target_namespace` in both `Pod` spec and SriovNetowrk CR.
124124
<2> Specify the DPDK image which includes your application and the DPDK library used by application.
125-
<3> Specify the `IPC_LOCK` capability which is required by the application to allocate hugepage memory inside the container.
125+
<3> Specify the `IPC_LOCK` capability which is required by the application to allocate hugepage memory inside the container and `NET_RAW` for the application to access the network interface.
126126
<4> Mount the hugepage volume to the DPDK pod under `/dev/hugepages`. The hugepage volume is backed by the emptyDir volume type with the medium being `Hugepages`.
127127
<5> Optional: Specify the number of DPDK devices allocated to the DPDK pod. This resource request and limit, if not explicitly specified, will be automatically added by SR-IOV network resource injector. The SR-IOV network resource injector is an admission controller component managed by SR-IOV Operator. It is enabled by default and can be disabled by setting the `enableInjector` option to `false` in the default `SriovOperatorConfig` CR.
128128
<6> Specify the number of CPUs. The DPDK pod usually requires exclusive CPUs be allocated from kubelet. This is achieved by setting CPU Manager policy to `static` and creating a pod with `Guaranteed` QoS.

0 commit comments

Comments
 (0)