Skip to content

RFC ixgbe: Implement support for ndo_xdp_xmit in skb mode and fix CPU to ring assignment

Nabil S. Alramli bpf intel-wired-lan lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ixgbe: Implement support for ndo_xdp_xmit in skb modedrivers/net/ethernet/intel/ixgbe/ixgbe.h drivers/net/ethernet/intel/ixgbe/ixgbe_main.c+47 -43 replies
2/2ixgbe: Fix CPU to ring assignmentdrivers/net/ethernet/intel/ixgbe/ixgbe.h+2 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC ixgbe 0/2] ixgbe: Implement support for ndo_xdp_xmit in skb mode and fix CPU to ring assignment

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(-)
Signature · 1 line
2.43.0