Rework stmmac_rx() to build the xdp_buff from all the descriptors that make up a frame, so the XDP program runs on the whole (possibly fragmented) packet instead of the first buffer only. Fix possible rx_q state leaks when closing/opening the interface. --- Changes in v14: - Rebase on top of net-next main branch. - Link to v13: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v13: - Drop __xdp_build_skb_from_buff() utility routine. - Cherry-pick patch 1/5 and 2/5 to remove sw vlan stripping. - Drop NETDEV_XDP_ACT_RX_SG XDP feature. - Link to v12: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v12: - Rebase on top of net-next main branch. - Link to v11: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v11: - Fix kernel-doc for __xdp_build_skb_from_buff(). - Add sanity checks for xdp_buff_shrink_tail(). - Link to v10: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v10: - Introduce __xdp_return_buff(), xdp_buff_shrink_tail() and __xdp_build_skb_from_buff() helpers. - Link to v9: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v9: - Rebase on top of net-next main branch. - Link to v8: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v8: - Add patch 'net: stmmac: fix VLAN tag stripping on non-linear RX frames' to fix sw rx vlan parsing. - Rebase on top of net-next main branch. - Link to v7: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v7: - Take into account the case where buf2_len is not 0 for the single descriptor case if the interface is running in xdp mode. - Report rx_not_ls bit if the packet is splitted over multiple descriptors for dwmac100 and dwmac1000 cores. - Link to v6: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v6: - Drop patch 'net: stmmac: allow non-linear xdp_buff in XDP mode' since it requires some XDP fixes. - Introduce patch 'net: stmmac: drop split frames on AF_XDP zero-copy RX' to always drop XDP multi-buff frames for AF_XDP mode since it not yet supported there. - Introduce patch 'net: stmmac: drop multi-buffer frames in XDP mode' to fix pending bugs due to missing XDP multi-buffer support before patch 'net: stmmac: rework stmmac_rx to support XDP rx multi-buff' - Link to v5: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v5: - Fix possible read after bound issue in patch 1/3. - Do not allow parsing non-linear XDP buffers if the program loaded does not support frags. - Add patch 3/3 to remove MTU constraint for XDP prog. - Link to v4: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v4: - Reset in_progress flag when the packet is fully consumed. - Advetise NETDEV_XDP_ACT_RX_SG capability. - Link to v3: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v3: - Return secondary page in case of error. - Introduce stmmac_xdp_shrink_tail() to remove the ethernet FCS. - Add patch 'net: stmmac: take ownership of saved RX state at poll entry' from James. - Link to v2: https://lore.kernel.org/r/2026…@oss.qualcomm.com Changes in v2: - Rely on xdp_buff_add_frag() to create xdp fragments - Fix bugs in rx_q state recording - Fix the corner case where we receive more than MAX_SKB_FRAGS fragments - Cosmetics - Link to v1: https://lore.kernel.org/r/2026…@oss.qualcomm.com --- Lorenzo Bianconi (4): net: stmmac: remove software VLAN tag stripping net: xdp: add xdp_buff_shrink_tail() helper net: xdp: add __xdp_return_buff() helper net: stmmac: rework stmmac_rx to support XDP rx multi-buff Maxime Chevallier (1): net: stmmac: selftests: Prevent RXC from being disabled in LPI drivers/net/ethernet/stmicro/stmmac/stmmac.h | 15 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 317 +++++++++------------ .../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 2 + include/net/xdp.h | 10 +- net/core/filter.c | 80 +----- net/core/xdp.c | 98 ++++++- 6 files changed, 259 insertions(+), 263 deletions(-) --- base-commit: 8a3d0368f58e34e34d402718c7655811902a6bd4 change-id: 20260918-stmmac-rx-mb-16469a2714ea Best regards,
-- Lorenzo Bianconi <lore…@oss.qualcomm.com>