linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] Add native mode XDP support
@ 2025-02-10 10:33 Meghana Malladi
  2025-02-10 10:33 ` [PATCH net-next v2 1/3] net: ti: icssg-prueth: Use page_pool API for RX buffer allocation Meghana Malladi
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Meghana Malladi @ 2025-02-10 10:33 UTC (permalink / raw)
  To: rogerq, danishanwar, pabeni, kuba, edumazet, davem, andrew+netdev
  Cc: bpf, linux-arm-kernel, linux-kernel, netdev, u.kleine-koenig,
	krzysztof.kozlowski, dan.carpenter, m-malladi, schnelle, glaroque,
	rdunlap, diogo.ivo, jan.kiszka, john.fastabend, hawk, daniel, ast,
	srk, Vignesh Raghavendra

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@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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-02-24 13:22 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 10:33 [PATCH net-next v2 0/3] Add native mode XDP support Meghana Malladi
2025-02-10 10:33 ` [PATCH net-next v2 1/3] net: ti: icssg-prueth: Use page_pool API for RX buffer allocation Meghana Malladi
2025-02-12 13:56   ` Roger Quadros
2025-02-18 10:10     ` Malladi, Meghana
2025-02-18 12:24       ` Diogo Ivo
2025-02-18 12:28         ` [EXTERNAL] " Malladi, Meghana
2025-02-24 13:20       ` Roger Quadros
2025-02-10 10:33 ` [PATCH net-next v2 2/3] net: ti: icssg-prueth: introduce and use prueth_swdata struct for SWDATA Meghana Malladi
2025-02-12 14:12   ` Roger Quadros
2025-02-18 11:02     ` Malladi, Meghana
2025-02-10 10:33 ` [PATCH net-next v2 3/3] net: ti: icssg-prueth: Add XDP support Meghana Malladi
2025-02-11 18:39   ` kernel test robot
2025-02-11 22:20   ` kernel test robot
2025-02-12 16:03   ` Roger Quadros
2025-02-18 18:29     ` Malladi, Meghana
2025-02-18 16:02 ` [PATCH net-next v2 0/3] Add native mode " Jesper Dangaard Brouer
2025-02-18 17:55   ` Malladi, Meghana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).