intel / afxdp-plugins-for-kubernetes

Apache License 2.0
44 stars 16 forks source link

Feat kind support map pinning #47

Closed maryamtahhan closed 1 year ago

maryamtahhan commented 1 year ago

Requires https://github.com/intel/afxdp-plugins-for-kubernetes/pull/46

This pull request enables BPF map pinning of the AF_XDP device plugin as an alternative option to the UDS and UDS handshake.

Tested with CNDP https://github.com/CloudNativeDataPlane/cndp/pull/283

Will move from Draft state after

maryamtahhan commented 1 year ago

CNDP Test result

root@cndp-0-0:~# cndpfwd -c config.jsonc -L debug drop
(_lgroup                 :  69) DEBUG: CPUs configured 4 available 4
(_lgroup                 :  69) DEBUG: CPUs configured 4 available 4
(_lgroup                 :  69) DEBUG: CPUs configured 4 available 4
(_lgroup                 :  69) DEBUG: CPUs configured 4 available 4
(_lgroup                 :  69) DEBUG: CPUs configured 4 available 4
(_lgroup                 :  69) DEBUG: CPUs configured 4 available 4
(mmap_alloc              : 203) WARNING: unable to allocate 2MB hugepages, trying 4KB pages
(cne_ring_init           : 221) DEBUG: ring is not cache aligned r=0x7f2480d01010 aligned=0x7f2480d01040
(xskdev_socket_create    : 762) INFO: xi->xsk_map_fd = 3
libbpf: can't get next link: Operation not permitted
(xskdev_socket_create    : 910) DEBUG: Program ID 0, if_index 8, if_name 'veth10'

*** CNDPFWD Forward Application, API: XSKDEV, Mode: Drop, Burst Size: 256
   Initial Thread ID    37 on lcore 0
   Forwarding Thread ID 38 on lcore 0
maryamtahhan commented 1 year ago

Closing till the CNI grpc changes are completed and tested. Will push a PR then