Hello Kyle, Please take a look at this patch that I plan to submit upstream, let me know if you agree.
Hello ixgbe maintainers, This patch is a RFC to add the ability to transmit packets using BPF_F_TEST_XDP_LIVE_FRAMES in skb mode to the ixgbe driver. Today this functionality does not exist because the ndo_xdp_xmit operation handler, ixgbe_xdp_xmit, expects a native XDP program in adapter->xdp_prog. This results in a no-op essentially. To add this support, I use the tx_ring instead of the xdp_ring and allocate a skb based on the xdpf, and then use dev_direct_xmit to queue the xdp for tansmission. May I get feedback on the idea and the approach in this patch? Thank you. Nabil S. Alramli (2): ixgbe: Implement support for ndo_xdp_xmit in skb mode ixgbe: Fix CPU to ring assignment drivers/net/ethernet/intel/ixgbe/ixgbe.h | 16 +++---- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 43 +++++++++++++++++-- 2 files changed, 47 insertions(+), 12 deletions(-) -- 2.43.0
