From: Maryam Tahhan Sent: Tuesday, December 5, 2023 11:31 AM To: Koikkara Reeny, Shibin ; ferruh.yigit@amd.com; stephen@networkplumber.org; lihuisong@huawei.com; fengchengwen@huawei.com; liuyonglong@huawei.com Cc: dev@dpdk.org Subject: Re: [v2] net/af_xdp: enable a sock path alongside use_cni On 04/12/2023 17:18, Koikkara Reeny, Shibin wrote: Prerequisites @@ -223,8 +224,7 @@ Howto run dpdk-testpmd with CNI plugin: securityContext: capabilities: add: - - CAP_NET_RAW - - CAP_BPF + - NET_RAW Need to update the 1.3. Prerequisites. Sorry, what are you referring to? You are removing the CAP_NET_RAW and CAP_BPF. So you will need to update the doc section 1.3 Prerequisites.[1] [1] https://doc.dpdk.org/guides/howto/af_xdp_cni.html resources: requests: hugepages-2Mi: 2Gi @@ -239,14 +239,20 @@ Howto run dpdk-testpmd with CNI plugin: .. _pod.yaml: https://github.com/intel/afxdp-plugins-for- kubernetes/blob/v0.0.2/test/e2e/pod-1c1d.yaml +.. note:: + + For Kernel versions older than 5.19 `CAP_BPF` is also required in + the container capabilities stanza. + * Run DPDK with a command like the following: .. code-block:: console kubectl exec -i --container -- \ - //dpdk-testpmd -l 0,1 --no-pci \ - --vdev=net_af_xdp0,use_cni=1,iface= \ - -- --no-mlockall --in-memory + //dpdk-testpmd -l 0-2 --no-pci --main-lcore=2 \ + --vdev net_af_xdp0,iface=,use_cni=1,uds_path=/tmp/afxdp_dp//afxdp.sock \ + --vdev net_af_xdp1,iface=e,use_cni=1,uds_path=/tmp/afxdp_dp//afxdp.sock There is a typo " iface=e