-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
area: loaderBPF programs managementBPF programs managementgood first issueGood for newcomersGood for newcomerspriority: 2MediumMedium
Milestone
Description
When an XDP program is attached to the kernel, the caller can pick the attachment mode:
XDP_FLAGS_HW_MODE: offload the program to the NIC. Only select Netronome devices support offloading.XDP_FLAGS_DRV_MODE: attach the program in driver mode, requires the NIC to support it.XDP_FLAGS_SKB_MODE: generic mode, works regardless of driver support. This negates the speed advantages offered by XDP, as it is called further up the stack, once a socket buffer has been created.
bpfilter will always pick XDP_FLAGS_SKB_MODE as it will always be supported, but that leaves a lot of performance on the table. Instead, bpfilter should probe the NIC to use the most appropriate mode.
Metadata
Metadata
Assignees
Labels
area: loaderBPF programs managementBPF programs managementgood first issueGood for newcomersGood for newcomerspriority: 2MediumMedium