Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Feat kind support map pinning #47

Closed

Conversation

maryamtahhan
Copy link
Contributor

@maryamtahhan maryamtahhan commented Mar 22, 2023

Requires #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 CloudNativeDataPlane/cndp#283

Will move from Draft state after

  • Final cleanup
  • Update of documentation
  • Add map cleanup in CNI

Add basic support to deploy in slack. TODO: enable support for
virtual interfaces.

Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
@maryamtahhan
Copy link
Contributor Author

maryamtahhan commented Mar 24, 2023

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

Signed-off-by: Maryam Tahhan <mtahhan@redhat.com>
@maryamtahhan
Copy link
Contributor Author

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

@maryamtahhan maryamtahhan deleted the feat_kind_support_map_pinning branch May 13, 2024 13:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant