Skip to content

ionic: add XDP support

Shannon Nelson netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 10 repliesApplied 9/9
  2. v39 patches 6 repliesSuperseded
  3. v210 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches2 repliesSuperseded

Changes in v4 from the cover letter

- removed "inline" from short utility functions
- changed to use "goto err_out" in ionic_xdp_register_rxq_info()
- added "continue" to reduce nesting in ionic_xdp_queues_config()
- used xdp_prog in ionic_rx_clean() to flag whether or not to sync the rx buffer after calling ionix_xdp_run()
- swapped order of XDP_TX and XDP_REDIRECT cases in ionic_xdp_run() to make patch 6 a little cleaner

Patches in v4 All 9 applied

#Subject and filesSizeRepliesApplied
1/9ionic: set adminq irq affinitydrivers/net/ethernet/pensando/ionic/ionic_lif.c+4 -11 replyApplied
2/9ionic: add helpers for accessing buffer infodrivers/net/ethernet/pensando/ionic/ionic_txrx.c+24 -131 replyApplied
3/9ionic: use dma range APIsdrivers/net/ethernet/pensando/ionic/ionic_txrx.c+6 -71 replyApplied
4/9ionic: add initial framework for XDP supportdrivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_ethtool.c drivers/net/ethernet/pensando/ionic/ionic_lif.c +3 more+269 -141 replyApplied
5/9ionic: Add XDP packet headroomdrivers/net/ethernet/pensando/ionic/ionic_txrx.c+45 -231 replyApplied
6/9ionic: Add XDP_TX supportdrivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h +2 more+150 -31 replyApplied
7/9ionic: Add XDP_REDIRECT supportdrivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h +2 more+32 -11 replyApplied
8/9ionic: add ndo_xdp_xmitdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_txrx.c drivers/net/ethernet/pensando/ionic/ionic_txrx.h+66 -21 replyApplied
9/9ionic: implement xdp frags supportdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_txrx.c+98 -52 repliesApplied

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchBrett CreeleyJacob Keller
1/9R-b R-b
2/9R-b R-b
3/9R-b R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 net-next 0/9] ionic: add XDP support

This patchset is new support in ionic for XDP processing, including basic XDP on Rx packets, TX and REDIRECT, and frags for jumbo frames.

Since ionic has not yet been converted to use the page_pool APIs, this uses the simple MEM_TYPE_PAGE_ORDER0 buffering. There are plans to convert the driver in the near future.

v4:
- removed "inline" from short utility functions
- changed to use "goto err_out" in ionic_xdp_register_rxq_info()
- added "continue" to reduce nesting in ionic_xdp_queues_config()
- used xdp_prog in ionic_rx_clean() to flag whether or not to sync the rx buffer after calling ionix_xdp_run()
- swapped order of XDP_TX and XDP_REDIRECT cases in ionic_xdp_run() to make patch 6 a little cleaner

v3:
https://lore.kernel.org/netdev/[email protected]/
- removed budget==0 patch, sent it separately to net

v2:
https://lore.kernel.org/netdev/[email protected]/
- added calls to txq_trans_cond_update()
- added a new patch to catch NAPI budget==0

v1:
https://lore.kernel.org/netdev/[email protected]/

RFC:
https://lore.kernel.org/netdev/[email protected]/

Shannon Nelson (9):
ionic: set adminq irq affinity
ionic: add helpers for accessing buffer info
ionic: use dma range APIs
ionic: add initial framework for XDP support
ionic: Add XDP packet headroom
ionic: Add XDP_TX support
ionic: Add XDP_REDIRECT support
ionic: add ndo_xdp_xmit
ionic: implement xdp frags support

 .../net/ethernet/pensando/ionic/ionic_dev.h   |  11 +
 .../ethernet/pensando/ionic/ionic_ethtool.c   |   5 +
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 193 +++++++-
 .../net/ethernet/pensando/ionic/ionic_lif.h   |  13 +
 .../net/ethernet/pensando/ionic/ionic_stats.c |  18 +
 .../net/ethernet/pensando/ionic/ionic_txrx.c  | 460 ++++++++++++++++--
 .../net/ethernet/pensando/ionic/ionic_txrx.h  |   1 +
 7 files changed, 663 insertions(+), 38 deletions(-)
Signature · 1 line
2.17.1