From: David S. Miller Date: Mon, 25 Jul 2022 09:38:58 +0000 (+0100) Subject: Merge branch 'mtk_eth_soc-xdp' X-Git-Tag: howlett/maple/20220816~210^2~71 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=61aee772ebab2a0e9ba79b7ad9891260408fde72;p=users%2Fjedix%2Flinux-maple.git Merge branch 'mtk_eth_soc-xdp' Lorenzo Bianconi says: ==================== mtk_eth_soc: add xdp support 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 ==================== Signed-off-by: David S. Miller --- 61aee772ebab2a0e9ba79b7ad9891260408fde72