mbox series

[v4,net-next,0/5] mtk_eth_soc: add xdp support

Message ID cover.1658474059.git.lorenzo@kernel.org (mailing list archive)
Headers show
Series mtk_eth_soc: add xdp support | expand

Message

Lorenzo Bianconi July 22, 2022, 7:19 a.m. UTC
Introduce XDP support for mtk_eth_soc driver if rx hwlro is not
enabled in the chipset (e.g. mt7986).
Supported XDP verdicts:
- XDP_PASS
- XDP_DROP
- XDP_REDIRECT
- XDP_TX
- ndo_xdp_xmit
Rely on page_pool allocator for single page buffers in order to keep
them dma mapped and add skb recycling support.

Changes since v3:
- add missing rcu_read_lock()/rcu_read_unlock()
- introduce mtk_page_pool_enabled() utility routine

Changes since v2:
- fix leftover sparse warning
- add page_pool ethtool stats

Changes since v1:
- do not allocate mtk_xdp_stats array on the stack in mtk_rx_poll
- add rcu annotation to bpf program

Lorenzo Bianconi (5):
  net: ethernet: mtk_eth_soc: rely on page_pool for single page buffers
  net: ethernet: mtk_eth_soc: add basic XDP support
  net: ethernet: mtk_eth_soc: introduce xdp ethtool counters
  net: ethernet: mtk_eth_soc: add xmit XDP support
  net: ethernet: mtk_eth_soc: add support for page_pool_get_stats

 drivers/net/ethernet/mediatek/Kconfig       |   2 +
 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 572 +++++++++++++++++---
 drivers/net/ethernet/mediatek/mtk_eth_soc.h |  34 +-
 3 files changed, 537 insertions(+), 71 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org July 25, 2022, 9:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 22 Jul 2022 09:19:35 +0200 you wrote:
> Introduce XDP support for mtk_eth_soc driver if rx hwlro is not
> enabled in the chipset (e.g. mt7986).
> Supported XDP verdicts:
> - XDP_PASS
> - XDP_DROP
> - XDP_REDIRECT
> - XDP_TX
> - ndo_xdp_xmit
> Rely on page_pool allocator for single page buffers in order to keep
> them dma mapped and add skb recycling support.
> 
> [...]

Here is the summary with links:
  - [v4,net-next,1/5] net: ethernet: mtk_eth_soc: rely on page_pool for single page buffers
    https://git.kernel.org/netdev/net-next/c/23233e577ef9
  - [v4,net-next,2/5] net: ethernet: mtk_eth_soc: add basic XDP support
    https://git.kernel.org/netdev/net-next/c/7c26c20da5d4
  - [v4,net-next,3/5] net: ethernet: mtk_eth_soc: introduce xdp ethtool counters
    https://git.kernel.org/netdev/net-next/c/916a6ee836d6
  - [v4,net-next,4/5] net: ethernet: mtk_eth_soc: add xmit XDP support
    https://git.kernel.org/netdev/net-next/c/5886d26fd25b
  - [v4,net-next,5/5] net: ethernet: mtk_eth_soc: add support for page_pool_get_stats
    https://git.kernel.org/netdev/net-next/c/84b9cd389036

You are awesome, thank you!