BPF List
 help / color / mirror / Atom feed
From: willemb@google.com
To: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>,
	 Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	 "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	 Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	 Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	 Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	 Jesper Dangaard Brouer <hawk@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	 Stanislav Fomichev <sdf@fomichev.me>,
	Jose Abreu <Jose.Abreu@synopsys.com>,
	 Ong Boon Leong <boon.leong.ong@intel.com>,
	Simon Horman <horms@kernel.org>,
	 Andrii Nakryiko <andrii@kernel.org>,
	Eduard Zingerman <eddyz87@gmail.com>,
	 Kumar Kartikeya Dwivedi <memxor@gmail.com>,
	Martin KaFai Lau <martin.lau@linux.dev>,
	Song Liu <song@kernel.org>,
	 Yonghong Song <yonghong.song@linux.dev>,
	Jiri Olsa <jolsa@kernel.org>,
	 Emil Tsalapatis <emil@etsalapatis.com>,
	Ihor Solodrai <ihor.solodrai@linux.dev>,
	 Matthew Gerlach <matthew.gerlach@altera.com>,
	Boon Khai Ng <boon.khai.ng@altera.com>
Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	 bpf@vger.kernel.org, Peilin He <he.peilin@zte.com.cn>,
	 Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>,
	Nicolai Buchwitz <nb@tipi-net.de>
Subject: Re: [PATCH net-next v13 0/5] net: stmmac: introduce XDP rx multi-buff support
Date: Tue, 01 Dec 2026 22:47:05 -0500	[thread overview]
Message-ID: <willemb.2ea9a208843db@google.com> (raw)
In-Reply-To: <20261125-stmmac-rx-mb-v13-0-0f6bac53e8d5@oss.qualcomm.com>

Lorenzo Bianconi wrote:
> 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 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/20261121-stmmac-rx-mb-v12-0-3ae2f3bce174@oss.qualcomm.com

> Changes in v12:
> - Rebase on top of net-next main branch.
> - Link to v11:  
> https://lore.kernel.org/r/20261117-stmmac-rx-mb-v11-0-9fa5c34ef245@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/20261112-stmmac-rx-mb-v10-0-d3d04b65c6bc@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/20261106-stmmac-rx-mb-v9-1-c099c923664b@oss.qualcomm.com

> Changes in v9:
> - Rebase on top of net-next main branch.
> - Link to v8:  
> https://lore.kernel.org/r/20261018-stmmac-rx-mb-v8-0-5f58c0b25849@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/20261014-stmmac-rx-mb-v7-0-5d2d70f052cd@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/20261012-stmmac-rx-mb-v6-0-2225050915c1@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/20261009-stmmac-rx-mb-v5-0-c38fa4eaa138@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/20261006-stmmac-rx-mb-v4-0-efa4ca974e3d@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/20261004-stmmac-rx-mb-v3-0-50fa171af9ec@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/20260921-stmmac-rx-mb-v2-1-6e826e1ff306@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/20260918-stmmac-rx-mb-v1-1-0b4517d404af@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  | 319  
> +++++++++------------
>   .../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, 261 insertions(+), 263 deletions(-)
> ---
> base-commit: 4cd558c2f1de7f1800f7d9065303ca5833cbad56
> change-id: 20260918-stmmac-rx-mb-16469a2714ea

> Best regards,
> --
> Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>


Please rebase v13 on current net-next (conflicts in  
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c)

pw-bot: cr

      parent reply	other threads:[~2026-12-02  3:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 14:48 [PATCH net-next v13 0/5] net: stmmac: introduce XDP rx multi-buff support Lorenzo Bianconi
2026-11-25 14:48 ` [PATCH net-next v13 1/5] net: stmmac: selftests: Prevent RXC from being disabled in LPI Lorenzo Bianconi
2026-11-25 14:48 ` [PATCH net-next v13 2/5] net: stmmac: remove software VLAN tag stripping Lorenzo Bianconi
2026-11-26 14:50   ` netdev-bot+sashiko
2026-11-27  9:54     ` Lorenzo Bianconi
2026-11-28 12:08   ` Maxime Chevallier
2026-11-25 14:48 ` [PATCH net-next v13 3/5] net: xdp: add xdp_buff_shrink_tail() helper Lorenzo Bianconi
2026-11-25 14:48 ` [PATCH net-next v13 4/5] net: xdp: add __xdp_return_buff() helper Lorenzo Bianconi
2026-11-25 14:48 ` [PATCH net-next v13 5/5] net: stmmac: rework stmmac_rx to support XDP rx multi-buff Lorenzo Bianconi
2026-11-26 14:50   ` netdev-bot+sashiko
2026-11-27 10:22     ` Lorenzo Bianconi
2026-11-25 14:53 ` [PATCH net-next v13 0/5] net: stmmac: introduce XDP rx multi-buff support netdev-bot+sinfo
2026-11-26  8:48   ` Lorenzo Bianconi
2026-12-02  3:47 ` willemb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=willemb.2ea9a208843db@google.com \
    --to=willemb@google.com \
    --cc=Jose.Abreu@synopsys.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=boon.khai.ng@altera.com \
    --cc=boon.leong.ong@intel.com \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=eddyz87@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=emil@etsalapatis.com \
    --cc=hawk@kernel.org \
    --cc=he.peilin@zte.com.cn \
    --cc=horms@kernel.org \
    --cc=ihor.solodrai@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lorenzo.bianconi@oss.qualcomm.com \
    --cc=martin.lau@linux.dev \
    --cc=matthew.gerlach@altera.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=memxor@gmail.com \
    --cc=nb@tipi-net.de \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox