Files
xdp-project-bpf-examples/AF_XDP-example/xdpsock.c
Tirthendu Sarkar f27b9881bf AF_XDP-example: fix XDP prog attach for xdp-skb mode
The attach mode is by default set to XDP_MODE_NATIVE and needs to be
overwritten to XDP_MODE_SKB when '-S' option is used. Instead of
overwriting the attach mode was ORed and so was always running in NATIVE
mode. This patch fixes that.

Signed-off-by: Tirthendu Sarkar <tirthendu.sarkar@intel.com>
2023-02-03 17:04:46 +01:00

52 KiB