[PATCH net-next v2 0/3] Add native mode XDP support
Meghana Malladi
m-malladi at ti.com
Mon Feb 10 02:33:49 PST 2025
This series adds native XDP support using page_pool.
XDP zero copy support is not included in this patch series.
Patch 1/3: Replaces skb with page pool for Rx buffer allocation
Patch 2/3: Adds prueth_swdata struct for SWDATA for all swdata cases
Patch 3/3: Introduces native mode XDP support
v1: https://lore.kernel.org/all/20250122124951.3072410-1-m-malladi@ti.com/
Changes since v1 (v2-v1):
- Add missing SoBs for all patches
1/3:
- Recycle pages wherever necessary using skb_mark_for_recycle()
- Use napi_build_skb() instead of build_skb()
- Update with correct frag_size argument in napi_build_skb()
- Use napi_gro_receive() instead of netif_receive_skb()
- Use PP_FLAG_DMA_SYNC_DEV to enable DMA sync with device
- Use page_pool_dma_sync_for_cpu() to sync Rx page pool for CPU
3/3:
- Fix XDP typo in the commit message
- Add XDP feature flags using xdp_set_features_flag()
- Use xdp_build_skb_from_buff() when XDP ran
All the above changes have been suggested by Ido Schimmel <idosch at idosch.org>
Roger Quadros (3):
net: ti: icssg-prueth: Use page_pool API for RX buffer allocation
net: ti: icssg-prueth: introduce and use prueth_swdata struct for
SWDATA
net: ti: icssg-prueth: Add XDP support
drivers/net/ethernet/ti/Kconfig | 1 +
drivers/net/ethernet/ti/icssg/icssg_common.c | 427 ++++++++++++++----
drivers/net/ethernet/ti/icssg/icssg_config.h | 2 +-
drivers/net/ethernet/ti/icssg/icssg_prueth.c | 129 +++++-
drivers/net/ethernet/ti/icssg/icssg_prueth.h | 50 +-
.../net/ethernet/ti/icssg/icssg_prueth_sr1.c | 23 +-
6 files changed, 540 insertions(+), 92 deletions(-)
base-commit: acdefab0dcbc3833b5a734ab80d792bb778517a0
--
2.43.0
More information about the linux-arm-kernel
mailing list