BPF List
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached
@ 2026-11-22  1:01 Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 1/9] net: stop making HW-GRO depend on SW GRO Jakub Kicinski
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

XDP has no understanding of GSO frames. GSO frame looks to XDP
like a large packet. Pushing / popping headers cannot be reflected
in GSO metadata. XDP redirect is completely blind to GSO since
struct xdp_frame carries no GSO fields.

For those reasons most (read: all well behaved?) drivers disable
LRO and HW GRO when XDP is attached.

This series lifts the auto-clearing of HW-GRO and LRO from drivers
up to netdev core. This gives us uniform behavior - previously some
drivers would reject XDP attach w/ HW-GRO and others would auto-
-clear the HW-GRO features.

More importantly (for me) after this series the HW-GRO/LRO features
should consistently remain in wanted_features, and get re-enabled
after XDP is detached. I started looking at this because XDP tests
in NIPA unintentionally clear HW-GRO, which in turn makes devmem
tests fail / skip on mlx5.

Note that XDP generic is its own can of worms this series doesn't
try to address. There are multiple paths (xdpgeneric, tun, veth...)
which YOLO skbs into XDP without worrying about GSO state.
And HW-GRO disabling w/ XDP generic is not propagated down to lowers.

v2:
 - new patch 2, convert gro_stats.py to the shared set_ethtool_feat()
 - mlx5: drop the netdev_update_features() call from mlx5e_xdp_set(),
   key XDP features off tcp-data-split
 - qede: keep clearing NETIF_F_GRO_HW in qede_alloc_mem_rxq()
v1: https://lore.kernel.org/20261118232315.3593731-1-kuba@kernel.org

Jakub Kicinski (9):
  net: stop making HW-GRO depend on SW GRO
  selftests: drv-net: gro_stats: use the shared set_ethtool_feat()
  selftests: drv-net: drop the generic XDP hack from the HW GRO setup
  net: state the "XDP excludes HW-GRO" rule in the core
  net: state the "XDP excludes LRO" rule in the core
  eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling
  eth: bnxt_en: don't clear HW-GRO and LRO for XDP in ndo_fix_features
  eth: qede: drop the now-dead HW-GRO vs XDP handling
  eth: gve: drop the now-dead HW-GRO vs XDP interlock

 .../networking/net_cachelines/net_device.rst  |   1 +
 include/linux/netdev_features.h   |   6 +
 include/linux/netdevice.h |   6 +
 .../net/ethernet/broadcom/bnx2x/bnx2x_cmn.c   |   2 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.c |   5 +-
 drivers/net/ethernet/google/gve/gve_main.c|  12 --
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  |   8 +-
 .../net/ethernet/mellanox/mlx5/core/en_main.c |  40 +------
 .../net/ethernet/qlogic/qede/qede_filter.c|  12 +-
 net/core/dev.c| 107 ++++++++++++++----
 .../testing/selftests/drivers/net/gro_lib.py  |  21 +---
 .../selftests/drivers/net/hw/gro_stats.py |  54 +--------
 12 files changed, 118 insertions(+), 156 deletions(-)

-- 
2.56.1


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

* [PATCH net-next v2 1/9] net: stop making HW-GRO depend on SW GRO
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 2/9] selftests: drv-net: gro_stats: use the shared set_ethtool_feat() Jakub Kicinski
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

bnxt, qede and bnx2x clear NETIF_F_GRO_HW whenever NETIF_F_GRO is off.
Nothing in the stack needs that. HW-GRO'd skbs arrive already coalesced
with gso_size set, exactly like LRO frames, and LRO never depended on
the software GRO bit. netif_elide_gro() only gates the software path,
and the in-driver consumers of the offload key off the feature bit
itself, not off NETIF_F_GRO.

The coupling gets in the way of exercising the offload on its own:
turning SW GRO off to isolate HW GRO takes HW GRO down with it on these
three drivers, which is why the GRO selftests carry a generic XDP hack.
The core only ever constrained GRO_HW on RXCSUM, RXFCS and LRO, and the
other HW-GRO capable drivers do not couple the two either.

User visible change: "ethtool -K $dev gro off" no longer implies
"rx-gro-hw off" on bnxt, qede and bnx2x.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2: no change
v1: https://lore.kernel.org/20261118232315.3593731-2-kuba@kernel.org
---
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 2 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.c       | 3 ---
 drivers/net/ethernet/qlogic/qede/qede_filter.c  | 3 +--
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index 6fb0619731ae..5686c4ecb944 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -4934,7 +4934,7 @@ netdev_features_t bnx2x_fix_features(struct net_device *dev,
 	if (!(features & NETIF_F_RXCSUM))
 		features &= ~NETIF_F_LRO;
 
-	if (!(features & NETIF_F_GRO) || !bnx2x_mtu_allows_gro(dev->mtu))
+	if (!bnx2x_mtu_allows_gro(dev->mtu))
 		features &= ~NETIF_F_GRO_HW;
 	if (features & NETIF_F_GRO_HW)
 		features &= ~NETIF_F_LRO;
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 5c6c2219a481..ca7cb573d63c 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -14108,9 +14108,6 @@ static netdev_features_t bnxt_fix_features(struct net_device *dev,
 	if ((bp->flags & BNXT_FLAG_NO_AGG_RINGS) || bp->xdp_prog)
 		features &= ~(NETIF_F_LRO | NETIF_F_GRO_HW);
 
-	if (!(features & NETIF_F_GRO))
-		features &= ~NETIF_F_GRO_HW;
-
 	if (features & NETIF_F_GRO_HW)
 		features &= ~NETIF_F_LRO;
 
diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c
index 5bf32f1034e0..d0e203167e35 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_filter.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c
@@ -915,8 +915,7 @@ netdev_features_t qede_fix_features(struct net_device *dev,
 {
 	struct qede_dev *edev = netdev_priv(dev);
 
-	if (edev->xdp_prog || edev->ndev->mtu > PAGE_SIZE ||
-	    !(features & NETIF_F_GRO))
+	if (edev->xdp_prog || edev->ndev->mtu > PAGE_SIZE)
 		features &= ~NETIF_F_GRO_HW;
 
 	return features;
-- 
2.56.1


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

* [PATCH net-next v2 2/9] selftests: drv-net: gro_stats: use the shared set_ethtool_feat()
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 1/9] net: stop making HW-GRO depend on SW GRO Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 3/9] selftests: drv-net: drop the generic XDP hack from the HW GRO setup Jakub Kicinski
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

gro_stats.py carries its own copy of set_ethtool_feat(), which never
reads the features back. The only check whether HW GRO really ended up
enabled is the one guarding the generic XDP workaround, which is about
to go away. Use the shared helper, so that the test can ask for that
check like gro_lib.py does.

A fixed feature now results in an XFAIL rather than a SKIP, same as
in gro_lib.py.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2: new patch
---
 .../selftests/drivers/net/hw/gro_stats.py     | 45 +++++--------------
 1 file changed, 10 insertions(+), 35 deletions(-)

diff --git a/tools/testing/selftests/drivers/net/hw/gro_stats.py b/tools/testing/selftests/drivers/net/hw/gro_stats.py
index 70e76e3888bd..a413e6fed210 100755
--- a/tools/testing/selftests/drivers/net/hw/gro_stats.py
+++ b/tools/testing/selftests/drivers/net/hw/gro_stats.py
@@ -13,7 +13,7 @@ from lib.py import ksft_run, ksft_exit, ksft_pr
 from lib.py import ksft_eq, ksft_ge, ksft_variants
 from lib.py import NetDrvEpEnv, NetdevFamily
 from lib.py import KsftSkipEx
-from lib.py import bkg, cmd, defer, ethtool, ip
+from lib.py import bkg, cmd, defer, ethtool, ip, set_ethtool_feat
 
 
 # gro.c uses hardcoded DPORT=8000
@@ -137,41 +137,16 @@ def _run_gro_test(cfg, test_name, num_flows=None, ignore_fail=False,
             raise KsftSkipEx(f"Driver does not report '{stat}' via qstats")
 
 
-def _set_ethtool_feat(cfg, current, feats):
-    """Set ethtool features with defer to restore original state."""
-    s2n = {True: "on", False: "off"}
-
-    new = ["-K", cfg.ifname]
-    old = ["-K", cfg.ifname]
-    no_change = True
-    for name, state in feats.items():
-        new += [name, s2n[state]]
-        old += [name, s2n[current[name]["active"]]]
-
-        if current[name]["active"] != state:
-            no_change = False
-            if current[name]["fixed"]:
-                raise KsftSkipEx(f"Device does not support {name}")
-    if no_change:
-        return
-
-    eth_cmd = ethtool(" ".join(new))
-    defer(ethtool, " ".join(old))
-
-    # If ethtool printed something kernel must have modified some features
-    if eth_cmd.stdout:
-        ksft_pr(eth_cmd)
-
-
 def _setup_hw_gro(cfg):
     """Enable HW GRO on the device, disabling SW GRO."""
     feat = ethtool(f"-k {cfg.ifname}", json=True)[0]
 
     # Try to disable SW GRO and enable HW GRO
-    _set_ethtool_feat(cfg, feat,
-                      {"generic-receive-offload": False,
-                       "rx-gro-hw": True,
-                       "large-receive-offload": False})
+    set_ethtool_feat(cfg.ifname, feat,
+                     {"generic-receive-offload": False,
+                      "rx-gro-hw": True,
+                      "large-receive-offload": False},
+                     check=False)
 
     # Some NICs treat HW GRO as a GRO sub-feature so disabling GRO
     # will also clear HW GRO. Use a hack of installing XDP generic
@@ -186,10 +161,10 @@ def _run_gro_test(cfg, test_name, num_flows=None, ignore_fail=False,
         # Attaching XDP may change features, fetch the latest state
         feat = ethtool(f"-k {cfg.ifname}", json=True)[0]
 
-        _set_ethtool_feat(cfg, feat,
-                          {"generic-receive-offload": True,
-                           "rx-gro-hw": True,
-                           "large-receive-offload": False})
+        set_ethtool_feat(cfg.ifname, feat,
+                         {"generic-receive-offload": True,
+                          "rx-gro-hw": True,
+                          "large-receive-offload": False})
 
 
 def _check_gro_stats(cfg, test_queue, stats_before,
-- 
2.56.1


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

* [PATCH net-next v2 3/9] selftests: drv-net: drop the generic XDP hack from the HW GRO setup
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 1/9] net: stop making HW-GRO depend on SW GRO Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 2/9] selftests: drv-net: gro_stats: use the shared set_ethtool_feat() Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 4/9] net: state the "XDP excludes HW-GRO" rule in the core Jakub Kicinski
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

The HW GRO tests want SW GRO out of the way so that what they observe
can only have come from the device. On drivers which keyed HW GRO off
NETIF_F_GRO that was not expressible with ethtool alone, so the setup
fell back to attaching a generic XDP program, which suppresses SW GRO
as a side effect.

Those drivers no longer tie the two features together, so ask for the
feature combination directly.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2:
 - drop check=False in gro_stats.py too, now that it uses the shared
   helper (Willem)
v1: https://lore.kernel.org/20261118232315.3593731-3-kuba@kernel.org
---
 .../testing/selftests/drivers/net/gro_lib.py  | 21 +------------------
 .../selftests/drivers/net/hw/gro_stats.py     | 21 +------------------
 2 files changed, 2 insertions(+), 40 deletions(-)

diff --git a/tools/testing/selftests/drivers/net/gro_lib.py b/tools/testing/selftests/drivers/net/gro_lib.py
index 875a715b2ae1..6eff19db3541 100644
--- a/tools/testing/selftests/drivers/net/gro_lib.py
+++ b/tools/testing/selftests/drivers/net/gro_lib.py
@@ -263,26 +263,7 @@ def _run_gro_bin(cfg, test_name, protocol=None, num_flows=None,
         set_ethtool_feat(cfg.ifname, cfg.feat,
                          {"generic-receive-offload": False,
                           "rx-gro-hw": True,
-                          "large-receive-offload": False},
-                          check=False)
-
-        # Some NICs treat HW GRO as a GRO sub-feature so disabling GRO
-        # will also clear HW GRO. Use a hack of installing XDP generic
-        # to skip SW GRO, even when enabled.
-        feat = ethtool(f"-k {cfg.ifname}", json=True)[0]
-        if not feat["rx-gro-hw"]["active"]:
-            ksft_pr("Driver clears HW GRO and SW GRO is cleared, using generic XDP workaround")
-            prog = cfg.net_lib_dir / "xdp_dummy.bpf.o"
-            ip(f"link set dev {cfg.ifname} xdpgeneric obj {prog} sec xdp")
-            defer(ip, f"link set dev {cfg.ifname} xdpgeneric off")
-
-            # Attaching XDP may change features, fetch the latest state
-            feat = ethtool(f"-k {cfg.ifname}", json=True)[0]
-
-            set_ethtool_feat(cfg.ifname, feat,
-                             {"generic-receive-offload": True,
-                              "rx-gro-hw": True,
-                              "large-receive-offload": False})
+                          "large-receive-offload": False})
     elif mode == "lro":
         # netdevsim advertises LRO for feature inheritance testing with
         # bonding/team tests but it doesn't actually perform the offload
diff --git a/tools/testing/selftests/drivers/net/hw/gro_stats.py b/tools/testing/selftests/drivers/net/hw/gro_stats.py
index a413e6fed210..2cccab12f68c 100755
--- a/tools/testing/selftests/drivers/net/hw/gro_stats.py
+++ b/tools/testing/selftests/drivers/net/hw/gro_stats.py
@@ -145,26 +145,7 @@ def _run_gro_test(cfg, test_name, num_flows=None, ignore_fail=False,
     set_ethtool_feat(cfg.ifname, feat,
                      {"generic-receive-offload": False,
                       "rx-gro-hw": True,
-                      "large-receive-offload": False},
-                     check=False)
-
-    # Some NICs treat HW GRO as a GRO sub-feature so disabling GRO
-    # will also clear HW GRO. Use a hack of installing XDP generic
-    # to skip SW GRO, even when enabled.
-    feat = ethtool(f"-k {cfg.ifname}", json=True)[0]
-    if not feat["rx-gro-hw"]["active"]:
-        ksft_pr("Driver clears HW GRO when SW GRO is cleared, using generic XDP workaround")
-        prog = cfg.net_lib_dir / "xdp_dummy.bpf.o"
-        ip(f"link set dev {cfg.ifname} xdpgeneric obj {prog} sec xdp")
-        defer(ip, f"link set dev {cfg.ifname} xdpgeneric off")
-
-        # Attaching XDP may change features, fetch the latest state
-        feat = ethtool(f"-k {cfg.ifname}", json=True)[0]
-
-        set_ethtool_feat(cfg.ifname, feat,
-                         {"generic-receive-offload": True,
-                          "rx-gro-hw": True,
-                          "large-receive-offload": False})
+                      "large-receive-offload": False})
 
 
 def _check_gro_stats(cfg, test_queue, stats_before,
-- 
2.56.1


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

* [PATCH net-next v2 4/9] net: state the "XDP excludes HW-GRO" rule in the core
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
                   ` (2 preceding siblings ...)
  2026-11-22  1:01 ` [PATCH net-next v2 3/9] selftests: drv-net: drop the generic XDP hack from the HW GRO setup Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-23  1:33   ` netdev-bot+sashiko
  2026-11-22  1:01 ` [PATCH net-next v2 5/9] net: state the "XDP excludes LRO" " Jakub Kicinski
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

XDP has to see the frames as the wire delivered them, so HW-GRO must be
off while a program is attached. Drivers currently open-code that policy,
and they diverge: mlx5, gve and virtio_net refuse the attach, bnxt and
qede clear the feature from ndo_fix_features(), and idpf does nothing
at all and happily runs RSC under XDP.

Clear HW-GRO in __netdev_update_features(), and make sure XDP setup
paths refresh the features.

Take extra care to make sure the disablement actually works, some
drivers add the feature back in ndo_fix_features, even when removed
from wanted features (mlx5 does for header-data-split).

This change also removes the warn-only check dev_disable_gro_hw()
performed. On mlx5 with tcp-data-split on, attaching a multi-buf
generic XDP program reached generic_xdp_install(), whose
dev_disable_gro_hw() cleared wanted_features, recomputed, saw
mlx5e_fix_features() put NETIF_F_GRO_HW straight back, and splatted:

  ------------[ cut here ]------------
  netdevice: eth0: failed to disable GRO_HW!
  WARNING: net/core/dev.c:1880 at generic_xdp_install+0x135/0x190, CPU#53: ip/667
  RIP: 0010:generic_xdp_install+0x17a/0x190
  Call Trace:
   <TASK>
   dev_xdp_install+0x2aa/0x380
   dev_xdp_attach+0x41f/0x460
   dev_change_xdp_fd+0xbb/0x110
   do_setlink+0xfb9/0x1030
   rtnl_newlink+0x9f5/0xaf0
   rtnetlink_rcv_msg+0x442/0x490
   netlink_rcv_skb+0x16a/0x1a0
   netlink_unicast+0x1fc/0x320
   netlink_sendmsg+0x2d6/0x380

and then attached anyway, leaving XDP looking at coalesced frames.
The device also lost the bit from wanted_features for good, so HW-GRO
never came back after detach - on mlx5 that took header-data split
with it, and with it devmem and io_uring zero-copy Rx.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2: no change
v1: https://lore.kernel.org/20261118232315.3593731-4-kuba@kernel.org
---
 .../networking/net_cachelines/net_device.rst  |  1 +
 include/linux/netdevice.h                     |  6 ++
 net/core/dev.c                                | 97 ++++++++++++++-----
 3 files changed, 81 insertions(+), 23 deletions(-)

diff --git a/Documentation/networking/net_cachelines/net_device.rst b/Documentation/networking/net_cachelines/net_device.rst
index 7620d3fcb8dc..25cf02a184ec 100644
--- a/Documentation/networking/net_cachelines/net_device.rst
+++ b/Documentation/networking/net_cachelines/net_device.rst
@@ -169,6 +169,7 @@ unsigned_long:1                     see_all_hwtstamp_requests
 unsigned_long:1                     change_proto_down
 unsigned_long:1                     netns_immutable
 unsigned_long:1                     fcoe_mtu
+unsigned_long:1                     xdp_pending
 unsigned_long:1                     xdp_from_upper
 struct list_head                    net_notifier_list
 struct macsec_ops*                  macsec_ops
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 0325c6f2a7d1..049538b13e61 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2531,6 +2531,12 @@ struct net_device {
 	unsigned long		change_proto_down:1;
 	unsigned long		netns_immutable:1;
 	unsigned long		fcoe_mtu:1;
+	/**
+	 * @xdp_pending: an XDP program is being installed, but is not in
+	 *	@xdp_state yet. Most users should access it implicitly via
+	 *	helpers like dev_xdp_prog_count(), rather than directly.
+	 */
+	unsigned long		xdp_pending:1;
 	/**
 	 * @xdp_from_upper: the program in @xdp_state was installed by an
 	 *	upper device with netif_xdp_propagate(); it belongs to the
diff --git a/net/core/dev.c b/net/core/dev.c
index 4ca8a9f5a7a5..5d38cdb6c326 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1902,23 +1902,6 @@ void netif_disable_lro(struct net_device *dev)
 	}
 }
 
-/**
- *	dev_disable_gro_hw - disable HW Generic Receive Offload on a device
- *	@dev: device
- *
- *	Disable HW Generic Receive Offload (GRO_HW) on a net device.  Must be
- *	called under RTNL.  This is needed if Generic XDP is installed on
- *	the device.
- */
-static void dev_disable_gro_hw(struct net_device *dev)
-{
-	dev->wanted_features &= ~NETIF_F_GRO_HW;
-	netdev_update_features(dev);
-
-	if (unlikely(dev->features & NETIF_F_GRO_HW))
-		netdev_WARN(dev, "failed to disable GRO_HW!\n");
-}
-
 const char *netdev_cmd_to_name(enum netdev_cmd cmd)
 {
 #define N(val) 						\
@@ -6657,7 +6640,6 @@ static int generic_xdp_install(struct net_device *dev, struct netdev_bpf *xdp)
 		} else if (new && !old) {
 			static_branch_inc(&generic_xdp_needed_key);
 			netif_disable_lro(dev);
-			dev_disable_gro_hw(dev);
 		}
 		break;
 
@@ -10576,7 +10558,7 @@ u8 dev_xdp_prog_count(struct net_device *dev)
 	for (i = 0; i < __MAX_XDP_MODE; i++)
 		if (dev->xdp_state[i].prog || dev->xdp_state[i].link)
 			count++;
-	return count;
+	return count ?: !!dev->xdp_pending;
 }
 EXPORT_SYMBOL_GPL(dev_xdp_prog_count);
 
@@ -10617,6 +10599,32 @@ static void dev_xdp_set_prog(struct net_device *dev, enum bpf_xdp_mode mode,
 	dev->xdp_state[mode].prog = prog;
 }
 
+/* Try to clear HW-GRO before the driver reconfigures for XDP.
+ * Driver may add features back in via ndo_fix_features(), due to feature
+ * dependencies. In that case we can't run XDP at all.
+ */
+static int dev_xdp_clear_rx_agg(struct net_device *dev,
+				struct netlink_ext_ack *extack)
+{
+	if (!(dev->features & NETIF_F_GRO_HW))
+		return 0;
+	if (!(dev->hw_features & NETIF_F_GRO_HW)) {
+		NL_SET_ERR_MSG(extack,
+			       "unable to disable HW-GRO, fixed on");
+		return -EOPNOTSUPP;
+	}
+
+	netdev_update_features(dev);
+
+	if (dev->features & NETIF_F_GRO_HW) {
+		NL_SET_ERR_MSG(extack,
+			       "unable to disable HW-GRO, required by another feature");
+		return -EBUSY;
+	}
+
+	return 0;
+}
+
 int netif_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf)
 {
 	struct bpf_prog *old_prog;
@@ -10650,11 +10658,17 @@ int netif_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf)
 				       "unable to propagate XDP to device using memory provider");
 			return -EBUSY;
 		}
+
+		dev->xdp_pending = 1;
+
+		err = dev_xdp_clear_rx_agg(dev, bpf->extack);
+		if (err)
+			goto err_clear_pending;
 	}
 
 	err = dev->netdev_ops->ndo_bpf(dev, bpf);
 	if (err)
-		return err;
+		goto err_clear_pending;
 	if (bpf->prog)
 		bpf_prog_inc(bpf->prog);
 
@@ -10667,11 +10681,22 @@ int netif_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf)
 	old_prog = dev_xdp_prog(dev, XDP_MODE_DRV);
 	bpf_prog_change_xdp(old_prog, bpf->prog);
 	dev_xdp_set_prog(dev, XDP_MODE_DRV, bpf->prog);
+	dev->xdp_pending = 0;
 	dev->xdp_from_upper = !!bpf->prog;
-	if (old_prog)
+
+	if (old_prog) {
 		bpf_prog_put(old_prog);
+		/* The last program is gone, HW-GRO may be available again */
+		if (!bpf->prog)
+			netdev_update_features(dev);
+	}
 
 	return 0;
+
+err_clear_pending:
+	dev->xdp_pending = 0;
+	netdev_update_features(dev);
+	return err;
 }
 EXPORT_SYMBOL_GPL(netif_xdp_propagate);
 
@@ -10880,19 +10905,36 @@ static int dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack
 			return -EOPNOTSUPP;
 		}
 
+		if (new_prog) {
+			dev->xdp_pending = 1;
+			err = dev_xdp_clear_rx_agg(dev, extack);
+			if (err)
+				goto err_clear_pending;
+		}
+
 		err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog);
 		if (err)
-			return err;
+			goto err_clear_pending;
 	}
 
 	if (link)
 		dev_xdp_set_link(dev, mode, link);
 	else
 		dev_xdp_set_prog(dev, mode, new_prog);
-	if (cur_prog)
+	dev->xdp_pending = 0;
+	if (cur_prog) {
 		bpf_prog_put(cur_prog);
+		/* The last program is gone, HW-GRO may be available again */
+		if (!new_prog)
+			netdev_update_features(dev);
+	}
 
 	return 0;
+
+err_clear_pending:
+	dev->xdp_pending = 0;
+	netdev_update_features(dev);
+	return err;
 }
 
 static int dev_xdp_attach_link(struct net_device *dev,
@@ -10918,6 +10960,7 @@ static int dev_xdp_detach_link(struct net_device *dev,
 	bpf_op = dev_xdp_bpf_op(dev, mode);
 	WARN_ON(dev_xdp_install(dev, mode, bpf_op, NULL, 0, NULL));
 	dev_xdp_set_link(dev, mode, NULL);
+	netdev_update_features(dev);
 	return 0;
 }
 
@@ -11390,6 +11433,14 @@ int __netdev_update_features(struct net_device *dev)
 
 	features = netdev_get_wanted_features(dev);
 
+	/* GRO_HW may be added back in via ndo_fix_features e.g. if driver needs
+	 * it to honor the HDS config, clear it before the fix features call.
+	 */
+	if ((features & NETIF_F_GRO_HW) && dev_xdp_prog_count(dev)) {
+		netdev_dbg(dev, "Dropping HW-GRO feature since XDP is attached.\n");
+		features &= ~NETIF_F_GRO_HW;
+	}
+
 	if (dev->netdev_ops->ndo_fix_features)
 		features = dev->netdev_ops->ndo_fix_features(dev, features);
 
-- 
2.56.1


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

* [PATCH net-next v2 5/9] net: state the "XDP excludes LRO" rule in the core
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
                   ` (3 preceding siblings ...)
  2026-11-22  1:01 ` [PATCH net-next v2 4/9] net: state the "XDP excludes HW-GRO" rule in the core Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-23  1:33   ` netdev-bot+sashiko
  2026-11-22  1:01 ` [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling Jakub Kicinski
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

LRO is the older take on the same thing as HW-GRO. And similarly to
HW-GRO XDP cannot be handed post-LRO frames. Drivers open-code
the exclusion just like they did for HW-GRO, and disagree just the
same: mlx5 and netvsc refuse the attach, bnxt and ixgbe clear the feature
from ndo_fix_features(), vmxnet3 writes dev->features behind the core's
back, and atlantic only minds single-buffer programs. Clear LRO next to
HW-GRO, with the same ordering and the same refusal if a driver insists
on keeping it.

atlantic loses LRO under a multi-buffer program now as well. XDP_TX and
redirect can't carry the GSO metadata of a coalesced frame, however
many buffers it spans.

Drop netif_disable_lro() from generic_xdp_install(), like the previous
patch dropped dev_disable_gro_hw(). The core covers the device itself,
and LRO no longer stays off after the detach.

This changes the behavior for lower devices. netif_disable_lro() walked
them, dev_disable_gro_hw() never did. And unlike HW-GRO, LRO is in
NETIF_F_UPPER_DISABLES, an upper which loses it clears it from the
wanted_features of its lowers for good. bond and team carry LRO only to
hand it down, so a program on a bond still turns LRO off on the slaves,
and they don't get it back after the detach. Making sure lowers don't
coalesce is a separate problem, for HW-GRO and LRO alike.

LRO state with the program [attached / after it's detached], netdevsim
as the single device, bond of two vmxnet3 ports:

  program on    device   w/o patch    w/ patch
  ------------  -------  -----------  ---------
  dev, native   dev      on  / on `1  off / on
  dev, generic  dev      off / off    off / on
  bond, native  bond     on  / on     off / on
                slaves   off / off`2  off / off
  bond, generic bond     off / off    off / on
                slaves   off / off    off / off

 `1 netdevsim ignores LRO under XDP, real drivers turned it off one
    way or another
 `2 vmxnet3 clears LRO from dev->features by itself and nothing turns
    it back on, bnxt slaves would get it back

Ideally we'd want [off / on] (XDP disables LRO, LRO comes back once
XDP is cleared). But the two "off"s after detach on slaves are not
worth the complexity IMHO.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2: no change
v1: https://lore.kernel.org/20261118232315.3593731-5-kuba@kernel.org
---
 include/linux/netdev_features.h |  6 ++++++
 net/core/dev.c                  | 36 ++++++++++++++++++++-------------
 2 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h
index 8eb6b8033606..62a05df8ee68 100644
--- a/include/linux/netdev_features.h
+++ b/include/linux/netdev_features.h
@@ -234,6 +234,12 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start)
  */
 #define NETIF_F_UPPER_DISABLES	NETIF_F_LRO
 
+/*
+ * Receive offloads which coalesce frames. XDP has to see the frames as the
+ * wire delivered them, so these are disabled while a program is attached.
+ */
+#define NETIF_F_XDP_DISABLES	(NETIF_F_GRO_HW | NETIF_F_LRO)
+
 /* changeable features with no special hardware requirements */
 #define NETIF_F_SOFT_FEATURES	(NETIF_F_GSO | NETIF_F_GRO)
 
diff --git a/net/core/dev.c b/net/core/dev.c
index 5d38cdb6c326..308501d384b6 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -6639,7 +6639,6 @@ static int generic_xdp_install(struct net_device *dev, struct netdev_bpf *xdp)
 			static_branch_dec(&generic_xdp_needed_key);
 		} else if (new && !old) {
 			static_branch_inc(&generic_xdp_needed_key);
-			netif_disable_lro(dev);
 		}
 		break;
 
@@ -10599,26 +10598,35 @@ static void dev_xdp_set_prog(struct net_device *dev, enum bpf_xdp_mode mode,
 	dev->xdp_state[mode].prog = prog;
 }
 
-/* Try to clear HW-GRO before the driver reconfigures for XDP.
+static const char *dev_xdp_rx_agg_name(netdev_features_t features)
+{
+	return features & NETIF_F_GRO_HW ? "HW-GRO" : "LRO";
+}
+
+/* Try to clear HW-GRO and LRO before the driver reconfigures for XDP.
  * Driver may add features back in via ndo_fix_features(), due to feature
  * dependencies. In that case we can't run XDP at all.
  */
 static int dev_xdp_clear_rx_agg(struct net_device *dev,
 				struct netlink_ext_ack *extack)
 {
-	if (!(dev->features & NETIF_F_GRO_HW))
+	netdev_features_t agg = dev->features & NETIF_F_XDP_DISABLES;
+
+	if (!agg)
 		return 0;
-	if (!(dev->hw_features & NETIF_F_GRO_HW)) {
-		NL_SET_ERR_MSG(extack,
-			       "unable to disable HW-GRO, fixed on");
+	if (agg & ~dev->hw_features) {
+		NL_SET_ERR_MSG_FMT(extack, "unable to disable %s, fixed on",
+				   dev_xdp_rx_agg_name(agg & ~dev->hw_features));
 		return -EOPNOTSUPP;
 	}
 
 	netdev_update_features(dev);
 
-	if (dev->features & NETIF_F_GRO_HW) {
-		NL_SET_ERR_MSG(extack,
-			       "unable to disable HW-GRO, required by another feature");
+	agg = dev->features & NETIF_F_XDP_DISABLES;
+	if (agg) {
+		NL_SET_ERR_MSG_FMT(extack,
+				   "unable to disable %s, required by another feature",
+				   dev_xdp_rx_agg_name(agg));
 		return -EBUSY;
 	}
 
@@ -10686,7 +10694,7 @@ int netif_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf)
 
 	if (old_prog) {
 		bpf_prog_put(old_prog);
-		/* The last program is gone, HW-GRO may be available again */
+		/* No program left, HW-GRO and LRO may be available again */
 		if (!bpf->prog)
 			netdev_update_features(dev);
 	}
@@ -10924,7 +10932,7 @@ static int dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack
 	dev->xdp_pending = 0;
 	if (cur_prog) {
 		bpf_prog_put(cur_prog);
-		/* The last program is gone, HW-GRO may be available again */
+		/* No program left, HW-GRO and LRO may be available again */
 		if (!new_prog)
 			netdev_update_features(dev);
 	}
@@ -11436,9 +11444,9 @@ int __netdev_update_features(struct net_device *dev)
 	/* GRO_HW may be added back in via ndo_fix_features e.g. if driver needs
 	 * it to honor the HDS config, clear it before the fix features call.
 	 */
-	if ((features & NETIF_F_GRO_HW) && dev_xdp_prog_count(dev)) {
-		netdev_dbg(dev, "Dropping HW-GRO feature since XDP is attached.\n");
-		features &= ~NETIF_F_GRO_HW;
+	if ((features & NETIF_F_XDP_DISABLES) && dev_xdp_prog_count(dev)) {
+		netdev_dbg(dev, "Dropping HW-GRO and LRO features since XDP is attached.\n");
+		features &= ~NETIF_F_XDP_DISABLES;
 	}
 
 	if (dev->netdev_ops->ndo_fix_features)
-- 
2.56.1


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

* [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
                   ` (4 preceding siblings ...)
  2026-11-22  1:01 ` [PATCH net-next v2 5/9] net: state the "XDP excludes LRO" " Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-23  1:01   ` sashiko-bot
  2026-11-23  1:33   ` netdev-bot+sashiko
  2026-11-22  1:01 ` [PATCH net-next v2 7/9] eth: bnxt_en: don't clear HW-GRO and LRO for XDP in ndo_fix_features Jakub Kicinski
                   ` (2 subsequent siblings)
  8 siblings, 2 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

The core clears HW-GRO and LRO before ndo_bpf runs and keeps them off
for as long as a program is attached. mlx5e_fix_features() never sees
either with params->xdp_prog set, and packet merge is always off by the
time mlx5e_xdp_set() gets called, packet_merge.type only follows the two
feature handlers. If tcp-data-split keeps HW-GRO on, the core refuses
the attach with -EBUSY before calling the driver.

The netdev_update_features() call at the end of mlx5e_xdp_set() was
there to apply and release the XDP clause of mlx5e_fix_features().
The core recomputes the features itself, on detach after the program
is gone.

XDP features were only advertised with packet merge off, matching
the old refusal. Key them off tcp-data-split instead, the only setting
under which the attach is still refused.

The AF_XDP check stays, the core doesn't know about XSK pools.

This does change user visible behavior: attaching XDP with HW-GRO or LRO
on used to fail with -EINVAL and now succeeds with them turned off.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2:
 - drop the netdev_update_features() call from mlx5e_xdp_set() (Dragos)
 - key XDP features off tcp-data-split rather than packet merge (Dragos)
v1: https://lore.kernel.org/20261118232315.3593731-6-kuba@kernel.org
---
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  |  8 +++-
 .../net/ethernet/mellanox/mlx5/core/en_main.c | 40 +++----------------
 2 files changed, 12 insertions(+), 36 deletions(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
index 8e7c748caf2d..da224ad3dea9 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
@@ -488,9 +488,13 @@ static int mlx5e_set_ringparam(struct net_device *dev,
 	if (err)
 		return err;
 
-	/* Might need to adjust HW-GRO if it was kept on/off due to hds. */
-	if (dev->cfg->hds_config != kernel_param->tcp_data_split)
+	/* Might need to adjust HW-GRO if it was kept on/off due to hds.
+	 * XDP features depend on hds as well.
+	 */
+	if (dev->cfg->hds_config != kernel_param->tcp_data_split) {
 		netdev_update_features(priv->netdev);
+		mlx5e_set_xdp_feature(priv);
+	}
 
 	return 0;
 }
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
index 06a8a4be4be7..08568137d044 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
@@ -4487,12 +4487,14 @@ static int mlx5e_handle_feature(struct net_device *netdev,
 
 void mlx5e_set_xdp_feature(struct mlx5e_priv *priv)
 {
+	struct netdev_config *cfg = priv->netdev->cfg_pending;
 	struct mlx5e_params *params = &priv->channels.params;
 	struct net_device *netdev = priv->netdev;
 	xdp_features_t val = 0;
 
+	/* XDP can't run with HW-GRO, and tcp-data-split keeps HW-GRO on */
 	if (netdev->netdev_ops->ndo_bpf &&
-	    params->packet_merge.type == MLX5E_PACKET_MERGE_NONE)
+	    cfg->hds_config != ETHTOOL_TCP_DATA_SPLIT_ENABLED)
 		val = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
 		      NETDEV_XDP_ACT_XSK_ZEROCOPY |
 		      NETDEV_XDP_ACT_RX_SG;
@@ -4604,17 +4606,6 @@ static netdev_features_t mlx5e_fix_features(struct net_device *netdev,
 		}
 	}
 
-	if (params->xdp_prog) {
-		if (features & NETIF_F_LRO) {
-			netdev_warn(netdev, "LRO is incompatible with XDP\n");
-			features &= ~NETIF_F_LRO;
-		}
-		if (features & NETIF_F_GRO_HW) {
-			netdev_warn(netdev, "HW GRO is incompatible with XDP\n");
-			features &= ~NETIF_F_GRO_HW;
-		}
-	}
-
 	if (priv->xsk.refcnt) {
 		if (features & NETIF_F_LRO) {
 			netdev_warn(netdev, "LRO is incompatible with AF_XDP (%u XSKs are active)\n",
@@ -5203,20 +5194,6 @@ static void mlx5e_tx_timeout(struct net_device *dev, unsigned int txqueue)
 	queue_work(priv->wq, &priv->tx_timeout_work);
 }
 
-static int mlx5e_xdp_allowed(struct net_device *netdev, struct mlx5_core_dev *mdev,
-			     struct mlx5e_params *params)
-{
-	if (params->packet_merge.type != MLX5E_PACKET_MERGE_NONE) {
-		netdev_warn(netdev, "can't set XDP while HW-GRO/LRO is on, disable them first\n");
-		return -EINVAL;
-	}
-
-	if (!mlx5e_params_validate_xdp(netdev, mdev, params))
-		return -EINVAL;
-
-	return 0;
-}
-
 static void mlx5e_rq_replace_xdp_prog(struct mlx5e_rq *rq, struct bpf_prog *prog)
 {
 	struct bpf_prog *old_prog;
@@ -5241,10 +5218,9 @@ static int mlx5e_xdp_set(struct net_device *netdev, struct bpf_prog *prog)
 	new_params = priv->channels.params;
 	new_params.xdp_prog = prog;
 
-	if (prog) {
-		err = mlx5e_xdp_allowed(netdev, priv->mdev, &new_params);
-		if (err)
-			goto unlock;
+	if (prog && !mlx5e_params_validate_xdp(netdev, priv->mdev, &new_params)) {
+		err = -EINVAL;
+		goto unlock;
 	}
 
 	/* no need for full reset when exchanging programs */
@@ -5279,10 +5255,6 @@ static int mlx5e_xdp_set(struct net_device *netdev, struct bpf_prog *prog)
 unlock:
 	mutex_unlock(&priv->state_lock);
 
-	/* Need to fix some features. */
-	if (!err)
-		netdev_update_features(netdev);
-
 	return err;
 }
 
-- 
2.56.1


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

* [PATCH net-next v2 7/9] eth: bnxt_en: don't clear HW-GRO and LRO for XDP in ndo_fix_features
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
                   ` (5 preceding siblings ...)
  2026-11-22  1:01 ` [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 8/9] eth: qede: drop the now-dead HW-GRO vs XDP handling Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 9/9] eth: gve: drop the now-dead HW-GRO vs XDP interlock Jakub Kicinski
  8 siblings, 0 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

The core keeps HW-GRO and LRO off while a program is attached, from
before ndo_bpf is called until it's gone. The xdp_prog check in
bnxt_fix_features() never changes the outcome any more. Without agg
rings, which single-buffer XDP at a small MTU implies, neither offload
works, so that part stays.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2: no change
v1: https://lore.kernel.org/20261118232315.3593731-7-kuba@kernel.org
---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index ca7cb573d63c..168ef8f08aed 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -14105,7 +14105,7 @@ static netdev_features_t bnxt_fix_features(struct net_device *dev,
 	    bp->tx_ring_size < 2 * BNXT_SW_USO_MAX_DESCS)
 		features &= ~NETIF_F_GSO_UDP_L4;
 
-	if ((bp->flags & BNXT_FLAG_NO_AGG_RINGS) || bp->xdp_prog)
+	if (bp->flags & BNXT_FLAG_NO_AGG_RINGS)
 		features &= ~(NETIF_F_LRO | NETIF_F_GRO_HW);
 
 	if (features & NETIF_F_GRO_HW)
-- 
2.56.1


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

* [PATCH net-next v2 8/9] eth: qede: drop the now-dead HW-GRO vs XDP handling
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
                   ` (6 preceding siblings ...)
  2026-11-22  1:01 ` [PATCH net-next v2 7/9] eth: bnxt_en: don't clear HW-GRO and LRO for XDP in ndo_fix_features Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-22  1:01 ` [PATCH net-next v2 9/9] eth: gve: drop the now-dead HW-GRO vs XDP interlock Jakub Kicinski
  8 siblings, 0 replies; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski

The core clears HW-GRO before ndo_bpf runs and keeps it off for as long
as a program is attached, which makes two bits of qede dead:

 - the xdp_prog check in qede_fix_features();
 - qede_set_features() skipping the reload when a program is attached,
   HW-GRO can't change while edev->xdp_prog is set any more.

qede_alloc_mem_rxq() clearing NETIF_F_GRO_HW from dev->features directly
has to stay. Firmware recovery re-runs qede_init_ndev(), which rewrites
dev->features with HW-GRO on, and nothing recomputes them. The direct
write no longer leaves HW-GRO off after the program is removed, the core
recomputes the features on detach.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2:
 - keep clearing NETIF_F_GRO_HW in qede_alloc_mem_rxq(), FW recovery
   needs it
v1: https://lore.kernel.org/20261118232315.3593731-8-kuba@kernel.org
---
 drivers/net/ethernet/qlogic/qede/qede_filter.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c
index d0e203167e35..9c68579c5b33 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_filter.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c
@@ -915,7 +915,7 @@ netdev_features_t qede_fix_features(struct net_device *dev,
 {
 	struct qede_dev *edev = netdev_priv(dev);
 
-	if (edev->xdp_prog || edev->ndev->mtu > PAGE_SIZE)
+	if (edev->ndev->mtu > PAGE_SIZE)
 		features &= ~NETIF_F_GRO_HW;
 
 	return features;
@@ -936,15 +936,8 @@ int qede_set_features(struct net_device *dev, netdev_features_t features)
 		args.u.features = features;
 		args.func = &qede_set_features_reload;
 
-		/* Make sure that we definitely need to reload.
-		 * In case of an eBPF attached program, there will be no FW
-		 * aggregations, so no need to actually reload.
-		 */
 		__qede_lock(edev);
-		if (edev->xdp_prog)
-			args.func(edev, &args);
-		else
-			qede_reload(edev, &args, true);
+		qede_reload(edev, &args, true);
 		__qede_unlock(edev);
 
 		return 1;
-- 
2.56.1


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

* [PATCH net-next v2 9/9] eth: gve: drop the now-dead HW-GRO vs XDP interlock
  2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
                   ` (7 preceding siblings ...)
  2026-11-22  1:01 ` [PATCH net-next v2 8/9] eth: qede: drop the now-dead HW-GRO vs XDP handling Jakub Kicinski
@ 2026-11-22  1:01 ` Jakub Kicinski
  2026-11-23  1:33   ` netdev-bot+sashiko
  8 siblings, 1 reply; 15+ messages in thread
From: Jakub Kicinski @ 2026-11-22  1:01 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, michael.chan,
	manishc, joshwash, hramamurthy, tariqt, saeedm, daniel, hawk, sdf,
	willemb, przemyslaw.kitszel, bpf, Jakub Kicinski, Ankit Garg

The core clears NETIF_F_GRO_HW before ndo_bpf runs and refuses to turn
it back on while a program is attached, so neither of these can fire
any more. That holds for a program an upper device pushes down as well,
which is why this comes last - gve_verify_xdp_configuration() was the
only thing standing between a bonded gve port and XDP running with RSC
still on.

The user visible behavior changes as intended: attaching XDP to a gve
device with HW-GRO on used to fail with -EOPNOTSUPP and now succeeds
with HW-GRO turned off, which is what bnxt and qede have always done.
The header-data split refusal right below keys off
priv->header_split_enabled and stays.

Reviewed-by: Ankit Garg <nktgrg@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2: no change
v1: https://lore.kernel.org/20261118232315.3593731-9-kuba@kernel.org
---
 drivers/net/ethernet/google/gve/gve_main.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/net/ethernet/google/gve/gve_main.c b/drivers/net/ethernet/google/gve/gve_main.c
index 35cf0f06a0f2..59ced629dcf6 100644
--- a/drivers/net/ethernet/google/gve/gve_main.c
+++ b/drivers/net/ethernet/google/gve/gve_main.c
@@ -1804,12 +1804,6 @@ static int gve_verify_xdp_configuration(struct net_device *dev,
 		return -EOPNOTSUPP;
 	}
 
-	if (dev->features & NETIF_F_GRO_HW) {
-		NL_SET_ERR_MSG_MOD(extack,
-				   "XDP is not supported when HW-GRO is on.");
-		return -EOPNOTSUPP;
-	}
-
 	if (priv->header_split_enabled) {
 		NL_SET_ERR_MSG_MOD(extack,
 				   "XDP is not supported when header-data split is enabled.");
@@ -2218,12 +2212,6 @@ static int gve_set_features(struct net_device *netdev,
 	if ((netdev->features & NETIF_F_GRO_HW) !=
 	    (features & NETIF_F_GRO_HW)) {
 		netdev->features ^= NETIF_F_GRO_HW;
-		if (priv->xdp_prog && (netdev->features & NETIF_F_GRO_HW)) {
-			netdev_warn(netdev,
-				    "HW-GRO is not supported when XDP is on.");
-			err = -EOPNOTSUPP;
-			goto revert_features;
-		}
 		if (netif_running(netdev)) {
 			err = gve_adjust_config(priv, &tx_alloc_cfg, &rx_alloc_cfg);
 			if (err)
-- 
2.56.1


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

* Re: [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling
  2026-11-22  1:01 ` [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling Jakub Kicinski
@ 2026-11-23  1:01   ` sashiko-bot
  2026-11-23  1:33   ` netdev-bot+sashiko
  1 sibling, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-11-23  1:01 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: bpf

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] net/mlx5e: XSK pool setup fails with HW-GRO/LRO in
  mlx5e_set_xdp_feature()
--

commit bbcc3184f046fe17399985b6692abbf4e736da56
Author: Jakub Kicinski <kuba@kernel.org>

eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling

This commit removes the driver-side mutual exclusion checks between XDP and
HW-GRO/LRO, relying on the networking core to clear HW-GRO and LRO before
attaching an XDP program, and keys XDP feature advertising off
tcp-data-split instead of packet merge state.

> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
> index 06a8a4be4be7c..08568137d044d 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
> @@ -4487,12 +4487,14 @@ static int mlx5e_handle_feature(struct net_device *netdev,
>  
>  void mlx5e_set_xdp_feature(struct mlx5e_priv *priv)
>  {
> +	struct netdev_config *cfg = priv->netdev->cfg_pending;
>  	struct mlx5e_params *params = &priv->channels.params;
>  	struct net_device *netdev = priv->netdev;
>  	xdp_features_t val = 0;
>  
> +	/* XDP can't run with HW-GRO, and tcp-data-split keeps HW-GRO on */
>  	if (netdev->netdev_ops->ndo_bpf &&
> -	    params->packet_merge.type == MLX5E_PACKET_MERGE_NONE)
> +	    cfg->hds_config != ETHTOOL_TCP_DATA_SPLIT_ENABLED)
>  		val = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
>  		      NETDEV_XDP_ACT_XSK_ZEROCOPY |
>  		      NETDEV_XDP_ACT_RX_SG;

[Severity: Medium]
Does advertising NETDEV_XDP_ACT_XSK_ZEROCOPY while HW-GRO or LRO is active
break AF_XDP pool setup when a socket is bound before an XDP program is
attached?

Unlike XDP_SETUP_PROG, xp_assign_dev() checks NETDEV_XDP_ACT_XSK and calls
ndo_bpf(XDP_SETUP_XSK_POOL) without clearing HW-GRO or LRO in the core.
When no XDP program is attached yet and HW-GRO (with tcp-data-split auto)
or LRO is enabled, mlx5e_xsk_enable_locked() runs with
params->packet_merge.type != MLX5E_PACKET_MERGE_NONE:

drivers/net/ethernet/mellanox/mlx5/core/en/xsk/pool.c:mlx5e_xsk_enable_locked() {
	...
	mlx5e_build_xsk_param(pool, &xsk);
	mlx5e_build_xsk_channel_param(priv->mdev, params, &xsk, cparam);

	if (!params->xdp_prog) {
		/* XSK objects will be created when an XDP program is set,
		 * and the channels are reopened.
		 */
		goto validate_closed;
	}
	...
validate_closed:
	if (!mlx5e_validate_xsk_param(params, &cparam->rq_opt, priv->mdev)) {
		err = -EINVAL;
		goto err_remove_pool;
	}
}

Because mlx5e_rx_is_linear_skb() returns false whenever
params->packet_merge.type != MLX5E_PACKET_MERGE_NONE,
mlx5e_validate_xsk_param() logs "Striding RQ linear mode for XSK can't be
activated with current params" and fails with -EINVAL instead of
xp_assign_dev() rejecting zero-copy cleanly with -EOPNOTSUPP (or disabling
HW-GRO/LRO via netdev_update_features()).

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261122010112.1471146-1-kuba@kernel.org?part=6

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

* Re: [PATCH net-next v2 4/9] net: state the "XDP excludes HW-GRO" rule in the core
  2026-11-22  1:01 ` [PATCH net-next v2 4/9] net: state the "XDP excludes HW-GRO" rule in the core Jakub Kicinski
@ 2026-11-23  1:33   ` netdev-bot+sashiko
  0 siblings, 0 replies; 15+ messages in thread
From: netdev-bot+sashiko @ 2026-11-23  1:33 UTC (permalink / raw)
  To: kuba
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
	michael.chan, manishc, joshwash, hramamurthy, tariqt, saeedm,
	daniel, hawk, sdf, willemb, przemyslaw.kitszel, bpf, nktgrg

Thank you for your contribution! Sashiko AI review found 3 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 2 · Low: 1

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] In dev_xdp_attach() (net/core/dev.c), dev->xdp_pending is set
  and dev_xdp_clear_rx_agg() runs before dev_xdp_install() validates the…
- [Medium] dev_xdp_clear_rx_agg() turns the old warn-and-proceed
  behaviour into a hard failure for every XDP attach mode, generic (SKB)…
- [Low] The commit message describes concrete user-visible bugs that this
  patch fixes, but there is no Fixes: tag.

--

net: state the "XDP excludes HW-GRO" rule in the core

This commit moves the rule that HW-GRO must be off while XDP is attached
into __netdev_update_features(). A new xdp_pending bit makes
dev_xdp_prog_count() report a program while one is being installed. The
attach paths now try to clear HW-GRO first and refuse the attach if they
can't, the detach paths refresh features, and dev_disable_gro_hw() is
removed.

> The device also lost the bit from wanted_features for good, so HW-GRO
> never came back after detach - on mlx5 that took header-data split
> with it, and with it devmem and io_uring zero-copy Rx.

[Severity: Low]
This isn't a bug, but the commit message describes user-visible problems
that this patch fixes, and there is no Fixes: tag. The problems are:

  - the WARN from generic_xdp_install()->dev_disable_gro_hw() on mlx5 with
    tcp-data-split
  - HW-GRO staying off after a generic XDP detach, because
    dev_disable_gro_hw() cleared it from wanted_features
  - idpf running RSC under XDP

idpf_set_netdev_features() advertises GRO_HW with no XDP interlock:

	if (idpf_is_cap_ena_all(adapter, IDPF_RSC_CAPS, IDPF_CAP_RSC))
		other_offloads |= NETIF_F_GRO_HW;

Should this have a Fixes: tag, or a note saying why it isn't meant for
stable?

> diff --git a/net/core/dev.c b/net/core/dev.c
> index 4ca8a9f5a7a5c..5d38cdb6c3260 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c

[ ... ]

> @@ -10617,6 +10599,32 @@ static void dev_xdp_set_prog(struct net_device *dev, enum bpf_xdp_mode mode,
>  	dev->xdp_state[mode].prog = prog;
>  }
>  
> +/* Try to clear HW-GRO before the driver reconfigures for XDP.
> + * Driver may add features back in via ndo_fix_features(), due to feature
> + * dependencies. In that case we can't run XDP at all.
> + */
> +static int dev_xdp_clear_rx_agg(struct net_device *dev,
> +				struct netlink_ext_ack *extack)
> +{
> +	if (!(dev->features & NETIF_F_GRO_HW))
> +		return 0;
> +	if (!(dev->hw_features & NETIF_F_GRO_HW)) {
> +		NL_SET_ERR_MSG(extack,
> +			       "unable to disable HW-GRO, fixed on");
> +		return -EOPNOTSUPP;
> +	}

[Severity: Medium]
Is it intended that generic XDP attach now fails on devices where GRO_HW
is fixed on? The old code warned and attached anyway. This check refuses
the attach in every mode, generic (SKB) mode included.

virtio_net is one such device. With VIRTIO_NET_F_GUEST_TSO4/6 negotiated
and VIRTIO_NET_F_CTRL_GUEST_OFFLOADS missing, virtnet_probe() puts GRO_HW
in features but never in hw_features:

drivers/net/virtio_net.c:virtnet_probe() {
    ...
	if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO4) ||
	    virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO6))
		dev->features |= NETIF_F_GRO_HW;
    ...
	if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS) &&
	    (vi->guest_offloads_capable & GUEST_OFFLOAD_GRO_HW_MASK))
		dev->hw_features |= NETIF_F_GRO_HW;
    ...
}

virtnet_xdp_set() already refuses native XDP in this configuration, so
xdpgeneric was the fallback. Before this patch,
generic_xdp_install()->dev_disable_gro_hw() warned and the program was
attached. Now dev_xdp_attach()->dev_xdp_clear_rx_agg() returns
-EOPNOTSUPP, so xdpgeneric attach fails on these guests.

The commit message covers the old splat and the "attached anyway" outcome.
It doesn't say that such attaches are now refused, and it doesn't mention
the fixed-on case. The later mlx5 patch in the series covers the -EBUSY
refusal for tcp-data-split, but nothing in the series covers virtio_net or
other fixed-on devices.

Could the commit message describe this behavior change?

> +
> +	netdev_update_features(dev);

[ ... ]

> @@ -10880,19 +10905,36 @@ static int dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack
>  			return -EOPNOTSUPP;
>  		}
>  
> +		if (new_prog) {
> +			dev->xdp_pending = 1;
> +			err = dev_xdp_clear_rx_agg(dev, extack);
> +			if (err)
> +				goto err_clear_pending;
> +		}
> +
>  		err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog);
>  		if (err)
> -			return err;
> +			goto err_clear_pending;
>  	}

[ ... ]

> +
> +err_clear_pending:
> +	dev->xdp_pending = 0;
> +	netdev_update_features(dev);
> +	return err;
>  }

[Severity: Medium]
Should dev_xdp_clear_rx_agg() run only after dev_xdp_install() has
validated the program?

dev_xdp_clear_rx_agg() calls netdev_update_features(), which drops
NETIF_F_GRO_HW and reconfigures the device through ndo_set_features().
dev_xdp_install() can still reject the attach after that, for reasons
unrelated to HW-GRO:

net/core/dev.c:dev_xdp_install() {
    ...
		if (prog->expected_attach_type == BPF_XDP_DEVMAP) {
			NL_SET_ERR_MSG(extack, "BPF_XDP_DEVMAP programs can not be attached to a device");
			return -EINVAL;
		}
    ...
		if (dev->cfg->hds_config == ETHTOOL_TCP_DATA_SPLIT_ENABLED &&
		    !prog->aux->xdp_has_frags) {
    ...
		if (dev_get_min_mp_channel_count(dev)) {
    ...
}

The same applies to offloaded progs without HW_MODE, CPUMAP-typed progs,
and dev-bound progs on the wrong device or in SKB mode.

When that happens, err_clear_pending calls netdev_update_features() again
to turn HW-GRO back on. Nothing checks whether that call succeeded.

On bnxt, every TPA on/off transition in bnxt_set_features() sets re_init:

drivers/net/ethernet/broadcom/bnxt/bnxt.c:bnxt_set_features() {
    ...
	if (changes & BNXT_FLAG_TPA) {
		update_tpa = true;
		if ((bp->flags & BNXT_FLAG_TPA) == 0 ||
		    (flags & BNXT_FLAG_TPA) == 0 || ...)
			re_init = true;
	}
    ...
}

So a misconfigured attach on bnxt would close and reopen the NIC twice
before being refused. Examples are a DEVMAP-typed program, or any XDP
program on a port with tcp-data-split or a memory provider bound.

Each such attempt also sends two NETDEV_FEAT_CHANGE notifications. If the
restoring ndo_set_features() fails, HW-GRO stays off with no XDP program
attached.

The extack also changes. On mlx5 with tcp-data-split enabled,
mlx5e_fix_features() adds GRO_HW back:

drivers/net/ethernet/mellanox/mlx5/core/en_main.c:mlx5e_fix_features() {
    ...
	if (cfg && cfg->hds_config == ETHTOOL_TCP_DATA_SPLIT_ENABLED &&
	    !(features & NETIF_F_GRO_HW)) {
		...
		features |= NETIF_F_GRO_HW;
	}
    ...
}

A single-buffer program then gets "unable to disable HW-GRO, required by
another feature" instead of the more specific "unable to install XDP to
device using tcp-data-split".

netif_xdp_propagate() runs its hds_config and memory provider checks
before it sets xdp_pending and calls dev_xdp_clear_rx_agg(). Could
dev_xdp_attach() use the same order, so the checks in dev_xdp_install()
run before any features change?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261122010112.1471146-1-kuba%40kernel.org

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

* Re: [PATCH net-next v2 5/9] net: state the "XDP excludes LRO" rule in the core
  2026-11-22  1:01 ` [PATCH net-next v2 5/9] net: state the "XDP excludes LRO" " Jakub Kicinski
@ 2026-11-23  1:33   ` netdev-bot+sashiko
  0 siblings, 0 replies; 15+ messages in thread
From: netdev-bot+sashiko @ 2026-11-23  1:33 UTC (permalink / raw)
  To: kuba
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
	michael.chan, manishc, joshwash, hramamurthy, tariqt, saeedm,
	daniel, hawk, sdf, willemb, przemyslaw.kitszel, bpf, nktgrg

Thank you for your contribution! Sashiko AI review found 3 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 1 · Low: 2

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] On a stacked device, an XDP attach that fails now turns LRO
  off on every lower device, and it stays off.
- [Low] The netvsc driver documentation is now out of date.
- [Low] The comment above the XDP feature-clearing block in
  __netdev_update_features() (net/core/dev.c:11444-11446) still covers…

--

net: state the "XDP excludes LRO" rule in the core

This patch adds NETIF_F_XDP_DISABLES (GRO_HW | LRO). The core now clears
LRO next to HW-GRO before an XDP program is attached, and refuses the
attach if the driver keeps LRO on. It also drops netif_disable_lro() from
generic_xdp_install(), so LRO comes back on the device itself after the
detach.

> diff --git a/net/core/dev.c b/net/core/dev.c
> index 5d38cdb6c3260..308501d384b6f 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c

[ ... ]

> @@ -10599,26 +10598,35 @@ static void dev_xdp_set_prog(struct net_device *dev, enum bpf_xdp_mode mode,

[ ... ]

>  static int dev_xdp_clear_rx_agg(struct net_device *dev,
>  				struct netlink_ext_ack *extack)
>  {
> -	if (!(dev->features & NETIF_F_GRO_HW))
> +	netdev_features_t agg = dev->features & NETIF_F_XDP_DISABLES;
> +
> +	if (!agg)
>  		return 0;
> -	if (!(dev->hw_features & NETIF_F_GRO_HW)) {
> -		NL_SET_ERR_MSG(extack,
> -			       "unable to disable HW-GRO, fixed on");
> +	if (agg & ~dev->hw_features) {
> +		NL_SET_ERR_MSG_FMT(extack, "unable to disable %s, fixed on",
> +				   dev_xdp_rx_agg_name(agg & ~dev->hw_features));
>  		return -EOPNOTSUPP;
>  	}
>  
>  	netdev_update_features(dev);

[Severity: Medium]

Can a refused XDP attach on a bond now leave LRO off on the slaves for
good?

dev_xdp_attach() calls dev_xdp_clear_rx_agg() before dev_xdp_install() runs
its checks and before the driver's bpf_op is called:

net/core/dev.c:dev_xdp_attach() {
    ...
		if (new_prog) {
			dev->xdp_pending = 1;
			err = dev_xdp_clear_rx_agg(dev, extack);
			if (err)
				goto err_clear_pending;
		}

		err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog);
		if (err)
			goto err_clear_pending;
    ...
}

LRO is now in NETIF_F_XDP_DISABLES. So for a bond with LRO on, this
netdev_update_features(bond) call drops LRO. LRO is also in
NETIF_F_UPPER_DISABLES, so netdev_sync_lower_features() then does this on
each slave that has LRO on:

			lower->wanted_features &= ~feature;
			__netdev_update_features(lower);

Now suppose the attach fails afterwards, for example in bond_xdp_set() when
the bonding mode doesn't support XDP:

	if (!bond_xdp_check(bond, BOND_MODE(bond))) {
		BOND_NL_ERR(dev, extack,
			    "No native XDP support for the current bonding mode");
		return -EOPNOTSUPP;
	}

The err_clear_pending path calls netdev_update_features() on the bond
only. The bond gets LRO back from its own wanted_features. But
netdev_sync_lower_features() only ever clears bits, so the slaves keep LRO
off.

The attach can also fail at this point if a slave lacks ndo_bpf or
ndo_xdp_xmit. A dev_xdp_install() check can reject it too, for example a
BPF_XDP_DEVMAP or BPF_XDP_CPUMAP program.

Before this patch, a failed native attach never touched LRO. In generic
mode, netif_disable_lro() was only called from generic_xdp_install(), and
that runs after all of the checks in dev_xdp_install().

The commit message explains that slaves stay LRO-off after a detach. It
doesn't say the same happens after a refused attach. Is that intended?

On a single device, a refused attach now also turns LRO off and back on
through ndo_set_features. On ixgbe and vmxnet3 that is a full
reconfiguration, for an attach that simple checks would reject. Could the
checks in dev_xdp_install() run before the aggregation features are
cleared?

[ ... ]

> @@ -11436,9 +11444,9 @@ int __netdev_update_features(struct net_device *dev)
>  	/* GRO_HW may be added back in via ndo_fix_features e.g. if driver needs
>  	 * it to honor the HDS config, clear it before the fix features call.
>  	 */

[Severity: Low]

This isn't a bug, but this comment still mentions only GRO_HW, while the
code below now clears NETIF_F_XDP_DISABLES, which is GRO_HW and LRO. The
patch updates the other comments and the netdev_dbg() string. Should this
comment be updated as well?

> -	if ((features & NETIF_F_GRO_HW) && dev_xdp_prog_count(dev)) {
> -		netdev_dbg(dev, "Dropping HW-GRO feature since XDP is attached.\n");
> -		features &= ~NETIF_F_GRO_HW;
> +	if ((features & NETIF_F_XDP_DISABLES) && dev_xdp_prog_count(dev)) {
> +		netdev_dbg(dev, "Dropping HW-GRO and LRO features since XDP is attached.\n");
> +		features &= ~NETIF_F_XDP_DISABLES;
>  	}

[Severity: Low]

Should Documentation/networking/device_drivers/ethernet/microsoft/netvsc.rst
be updated along with this? It still says:

  XDP program cannot run with LRO (RSC) enabled, so you need to disable LRO
  before running XDP::

	ethtool -K eth0 lro off

With this change the core clears LRO before ndo_bpf is called. So
netvsc_set_features() turns RSC off first, and the "XDP: not support LRO"
refusal in netvsc_xdp_set() can no longer trigger on attach.

Following the doc by hand also clears LRO from wanted_features. LRO then
doesn't come back after the detach, as it would when the core handles it.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261122010112.1471146-1-kuba%40kernel.org

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

* Re: [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling
  2026-11-22  1:01 ` [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling Jakub Kicinski
  2026-11-23  1:01   ` sashiko-bot
@ 2026-11-23  1:33   ` netdev-bot+sashiko
  1 sibling, 0 replies; 15+ messages in thread
From: netdev-bot+sashiko @ 2026-11-23  1:33 UTC (permalink / raw)
  To: kuba
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
	michael.chan, manishc, joshwash, hramamurthy, tariqt, saeedm,
	daniel, hawk, sdf, willemb, przemyslaw.kitszel, bpf, nktgrg

Thank you for your contribution! Sashiko AI review found 3 potential
issue(s) to consider.

Critical: 0 · High: 1 · Medium: 2 · Low: 0

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [High] The patch removes mlx5e's own HW-GRO/LRO vs XDP handling.
- [Medium] The patch keys the whole NETDEV_XDP_ACT_XSK set
  (BASIC|REDIRECT|XSK_ZEROCOPY, plus RX_SG) in mlx5e_set_xdp_feature()…
- [Medium] mlx5e_set_xdp_feature() now dereferences
  priv->netdev->cfg_pending->hds_config.

--

eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling

This patch removes the mlx5e driver-side refusal of an XDP attach while
HW-GRO or LRO is on. It also removes the XDP clause in mlx5e_fix_features()
and relies on the core to clear those features and keep them off while a
program is attached. XDP features are now advertised based on
tcp-data-split rather than packet merge, and mlx5e_set_ringparam()
refreshes them when hds changes.

> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
> index 06a8a4be4be7c..08568137d044d 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
> @@ -4487,12 +4487,14 @@ static int mlx5e_handle_feature(struct net_device *netdev,
>  
>  void mlx5e_set_xdp_feature(struct mlx5e_priv *priv)
>  {
> +	struct netdev_config *cfg = priv->netdev->cfg_pending;

[Severity: Medium]
Is it safe to dereference netdev->cfg_pending here without the netdev
instance lock?

Two callers run mlx5e_set_xdp_feature() on a registered netdev with only
rtnl_lock held: mlx5e_nic_init() and mlx5e_build_rep_params(). Both follow
this pattern:

	if (take_rtnl)
		rtnl_lock();

	/* update XDP supported features */
	mlx5e_set_xdp_feature(priv);

	if (take_rtnl)
		rtnl_unlock();

Both callers are reachable from mlx5e_netdev_change_profile() during
eswitch mode changes.

ethnl_default_set_doit() allocates, swaps and frees cfg_pending while
holding only the instance lock. It does this for the commands mlx5e does
not opt in to rtnl, such as COALESCE_SET, PAUSE_SET, RSS_SET and
LINKMODES_SET:

	ret = netdev_reconfig_start(dev);
	...
out_free_cfg:
	__netdev_free_config(dev->cfg_pending);
	dev->cfg_pending = dev->cfg;

Could the following interleaving read freed memory?

CPU1 (COALESCE_SET, instance lock)
    dev->cfg_pending = P;               /* fresh copy */

CPU0 (profile change, rtnl only)
    cfg = netdev->cfg_pending;          /* P */

CPU1
    __netdev_free_config(P);
    dev->cfg_pending = dev->cfg;

CPU0
    cfg->hds_config                     /* reads freed P */

Reading dev->cfg instead doesn't look safe either. On a successful SET,
the old dev->cfg is swapped into the pending slot and then freed.

Would taking netdev_lock() after rtnl_lock() around these calls work here?
That is the same order mlx5e_nic_enable() uses.

>  	struct mlx5e_params *params = &priv->channels.params;
>  	struct net_device *netdev = priv->netdev;
>  	xdp_features_t val = 0;
>  
> +	/* XDP can't run with HW-GRO, and tcp-data-split keeps HW-GRO on */
>  	if (netdev->netdev_ops->ndo_bpf &&
> -	    params->packet_merge.type == MLX5E_PACKET_MERGE_NONE)
> +	    cfg->hds_config != ETHTOOL_TCP_DATA_SPLIT_ENABLED)
>  		val = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
>  		      NETDEV_XDP_ACT_XSK_ZEROCOPY |
>  		      NETDEV_XDP_ACT_RX_SG;

[Severity: Medium]
Does keying these bits off hds_config also change how AF_XDP zero-copy
bind behaves?

Together, BASIC, REDIRECT and XSK_ZEROCOPY make up NETDEV_XDP_ACT_XSK, and
xp_assign_dev() checks that set before it allows a zero-copy bind:

net/xdp/xsk_buff_pool.c:xp_assign_dev() {
	...
	if ((netdev->xdp_features & NETDEV_XDP_ACT_XSK) != NETDEV_XDP_ACT_XSK) {
		err = -EOPNOTSUPP;
		goto err_unreg_pool;
	}
	...
}

Before this patch, a zero-copy bind on mlx5e with LRO or HW-GRO on was
refused, or fell back to copy mode. Now it reaches this path:

ndo_bpf(XDP_SETUP_XSK_POOL)
  mlx5e_xsk_setup_pool()
    mlx5e_xsk_enable_locked()

mlx5e_xsk_enable_locked() registers the pool and bumps priv->xsk.refcnt
without checking packet_merge.

Nothing on that path calls netdev_update_features(), and
dev_xdp_clear_rx_agg() only runs for XDP_SETUP_PROG. So the commit message
says "The AF_XDP check stays", but the priv->xsk.refcnt clause in
mlx5e_fix_features() is not applied at bind time. LRO or HW-GRO stays on
while an XSK pool is bound.

This also seems to open a sequence that was unreachable before:

1. Bind a zero-copy XSK with HW-GRO on and tcp-data-split=auto.
2. Set tcp-data-split=enabled. mlx5e_ethtool_set_tcp_data_split() accepts
   it because GRO_HW is still in dev->features.
3. mlx5e_fix_features() clears GRO_HW in the XSK clause, then the HDS
   clause forces it back on.
4. mlx5e_set_ringparam() calls mlx5e_set_xdp_feature(), which withdraws
   XSK_ZEROCOPY while a zero-copy pool is still bound.

The commit message only describes the XDP attach change ("used to fail
with -EINVAL and now succeeds"). Should the AF_XDP zero-copy bind change
be handled here, or at least described?

[ ... ]

> @@ -4604,17 +4606,6 @@ static netdev_features_t mlx5e_fix_features(struct net_device *netdev,
>  		}
>  	}
>  
> -	if (params->xdp_prog) {
> -		if (features & NETIF_F_LRO) {
> -			netdev_warn(netdev, "LRO is incompatible with XDP\n");
> -			features &= ~NETIF_F_LRO;
> -		}
> -		if (features & NETIF_F_GRO_HW) {
> -			netdev_warn(netdev, "HW GRO is incompatible with XDP\n");
> -			features &= ~NETIF_F_GRO_HW;
> -		}
> -	}
> -

[Severity: High]
On mlx5e, does the core really keep HW-GRO off for as long as a program is
attached?

__netdev_update_features() strips NETIF_F_XDP_DISABLES only before it calls
ndo_fix_features, and doesn't check again afterwards:

net/core/dev.c:__netdev_update_features() {
	...
	if ((features & NETIF_F_XDP_DISABLES) && dev_xdp_prog_count(dev)) {
		netdev_dbg(dev, "Dropping HW-GRO and LRO features since XDP is attached.\n");
		features &= ~NETIF_F_XDP_DISABLES;
	}

	if (dev->netdev_ops->ndo_fix_features)
		features = dev->netdev_ops->ndo_fix_features(dev, features);
	...
}

Later, mlx5e_fix_features() adds GRO_HW back unconditionally for HDS:

	if (cfg && cfg->hds_config == ETHTOOL_TCP_DATA_SPLIT_ENABLED &&
	    !(features & NETIF_F_GRO_HW)) {
		...
		features |= NETIF_F_GRO_HW;
	}

Can this sequence leave SHAMPO active with an XDP program attached?

1. Enable HW-GRO and tcp-data-split.
2. Run ethtool -K <dev> rx-fcs on (or rx off). netdev_fix_features() drops
   GRO_HW after the driver hook, and set_feature_hw_gro(false) sets
   packet_merge to NONE. hds_config stays ENABLED.
3. Attach a multi-buffer native XDP program. dev_xdp_install() only
   refuses hds for !xdp_has_frags, and dev_xdp_clear_rx_agg() sees no
   GRO_HW or LRO. mlx5e_xdp_set() now only calls
   mlx5e_params_validate_xdp().
4. Run ethtool -K <dev> rx-fcs off. The core strips GRO_HW, then
   mlx5e_fix_features() forces it back for HDS, and netdev_fix_features()
   no longer drops it. mlx5e_set_features()->set_feature_hw_gro(true)
   then switches packet_merge to SHAMPO with params.xdp_prog set.

With SHAMPO, the RQs use mlx5e_handle_rx_cqe_mpwrq_shampo(). Header-split
packets go through mlx5e_skb_from_cqe_shampo(), which never runs
rq->xdp_prog, so that traffic would skip the attached program.

The removed xdp clause had the same ordering problem, because it ran
before the HDS clause. However, this patch removes the driver-side
handling on the basis of the core guarantee, and the gap still seems to
be there at the end of the series.

Is anything on this path meant to reject SHAMPO while an XDP program is
attached?

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261122010112.1471146-1-kuba%40kernel.org

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

* Re: [PATCH net-next v2 9/9] eth: gve: drop the now-dead HW-GRO vs XDP interlock
  2026-11-22  1:01 ` [PATCH net-next v2 9/9] eth: gve: drop the now-dead HW-GRO vs XDP interlock Jakub Kicinski
@ 2026-11-23  1:33   ` netdev-bot+sashiko
  0 siblings, 0 replies; 15+ messages in thread
From: netdev-bot+sashiko @ 2026-11-23  1:33 UTC (permalink / raw)
  To: kuba
  Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
	michael.chan, manishc, joshwash, hramamurthy, tariqt, saeedm,
	daniel, hawk, sdf, willemb, przemyslaw.kitszel, bpf, nktgrg

Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 1 · Low: 1

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] A rejected XDP attach on a running gve DQO device with HW-GRO
  on (the DQO default) now rebuilds all of the device's hardware queues…
- [Low] gve's XDP attach path no longer reports its own error when HW-GRO
  cannot be turned off, because the HW-GRO handling now happens inside…

--

eth: gve: drop the now-dead HW-GRO vs XDP interlock

This patch removes two gve checks: one refused XDP while HW-GRO was on,
the other refused HW-GRO while XDP was attached. The core now clears
NETIF_F_GRO_HW before ndo_bpf runs and keeps it off while a program is
attached. Attaching XDP with HW-GRO on now succeeds with HW-GRO turned
off instead of failing with -EOPNOTSUPP.

> diff --git a/drivers/net/ethernet/google/gve/gve_main.c b/drivers/net/ethernet/google/gve/gve_main.c
> index 35cf0f06a0f27..59ced629dcf6b 100644
> --- a/drivers/net/ethernet/google/gve/gve_main.c
> +++ b/drivers/net/ethernet/google/gve/gve_main.c
> @@ -1804,12 +1804,6 @@ static int gve_verify_xdp_configuration(struct net_device *dev,
>  		return -EOPNOTSUPP;
>  	}
>  
> -	if (dev->features & NETIF_F_GRO_HW) {
> -		NL_SET_ERR_MSG_MOD(extack,
> -				   "XDP is not supported when HW-GRO is on.");
> -		return -EOPNOTSUPP;
> -	}
> -
>  	if (priv->header_split_enabled) {
>  		NL_SET_ERR_MSG_MOD(extack,
>  				   "XDP is not supported when header-data split is enabled.");

[Severity: Medium]
With this check gone, a rejected XDP attach on a running gve DQO device
with HW-GRO on (the DQO default) seems to rebuild every hardware queue
twice before it fails. Is that intended?

In dev_xdp_attach(), HW-GRO is cleared before dev_xdp_install() and
ndo_bpf get a chance to refuse:

net/core/dev.c:dev_xdp_attach() {
    ...
		if (new_prog) {
			dev->xdp_pending = 1;
			err = dev_xdp_clear_rx_agg(dev, extack);
			if (err)
				goto err_clear_pending;
		}

		err = dev_xdp_install(dev, mode, bpf_op, extack, flags, new_prog);
		if (err)
			goto err_clear_pending;
    ...
err_clear_pending:
	dev->xdp_pending = 0;
	netdev_update_features(dev);
	return err;
}

dev_xdp_clear_rx_agg()->netdev_update_features() reaches
gve_set_features() with GRO_HW cleared. On a running device that runs a
full gve_adjust_config(): gve_queues_mem_alloc(), gve_close(), then
gve_queues_start(). RSC is fixed per queue when the queue is created, in
gve_adminq_create_rx_queue():

	cmd->create_rx_queue.enable_rsc =
		!!(priv->dev->features & NETIF_F_GRO_HW);

The remaining refusals only run after that rebuild. First come the core
checks in dev_xdp_install(), then
gve_xdp()->gve_verify_xdp_configuration(), which checks queue format,
header split, buffer size, MTU and queue counts.

If any of them fails, err_clear_pending calls netdev_update_features()
again. GRO_HW is still in wanted_features, so gve_adjust_config() runs a
second time to turn RSC back on.

DQO_QPL looks like the easiest way to hit this. gve_init_priv() enables
NETIF_F_GRO_HW for every DQO format, but gve_set_netdev_xdp_features()
leaves xdp_features at 0 for DQO_QPL:

	} else {
		xdp_features = 0;
	}

As a result, every native attach on a running DQO_QPL device rebuilds the
queues twice and then fails with "XDP is not supported on this queue
format.". The MTU and queue-count refusals can be hit the same way on
DQO_RDA, for example with a jumbo MTU.

Either rebuild can also fail in gve_queues_start(), which leaves the
interface running with no live queues:

	err = gve_queues_start(priv, tx_alloc_cfg, rx_alloc_cfg);
	if (err) {
		netif_err(priv, drv, priv->dev,
			  "Adjust config failed to start new queues, !!! DISABLING ALL QUEUES !!!\n");
		gve_queues_mem_remove(priv);
		gve_turndown(priv);
		return err;
	}

Before the series, gve refused the same request right away with no
hardware side effects. The new ordering comes from the earlier patch
"net: state the "XDP excludes HW-GRO" rule in the core", which put
dev_xdp_clear_rx_agg() ahead of dev_xdp_install() and ndo_bpf.

The commit message only describes the success case ("now succeeds with
HW-GRO turned off"). Even a successful attach now rebuilds the queues
twice: once for the GRO_HW toggle and once in gve_configure_rings_xdp().

Could the gve configuration checks run before the core clears HW-GRO? If
the double rebuild is acceptable, could the commit message say so?

> @@ -2218,12 +2212,6 @@ static int gve_set_features(struct net_device *netdev,
>  	if ((netdev->features & NETIF_F_GRO_HW) !=
>  	    (features & NETIF_F_GRO_HW)) {
>  		netdev->features ^= NETIF_F_GRO_HW;
> -		if (priv->xdp_prog && (netdev->features & NETIF_F_GRO_HW)) {
> -			netdev_warn(netdev,
> -				    "HW-GRO is not supported when XDP is on.");
> -			err = -EOPNOTSUPP;
> -			goto revert_features;
> -		}
>  		if (netif_running(netdev)) {
>  			err = gve_adjust_config(priv, &tx_alloc_cfg, &rx_alloc_cfg);
>  			if (err)

[Severity: Low]
If gve_adjust_config() fails here while the core is turning HW-GRO off
for an XDP attach, does the user get the real error back?

gve_set_features() restores orig_features and returns the errno.
__netdev_update_features() only logs that errno and returns -1, and
netdev_update_features() discards the -1. dev_xdp_clear_rx_agg() then
just re-reads dev->features:

net/core/dev.c:dev_xdp_clear_rx_agg() {
    ...
	netdev_update_features(dev);

	agg = dev->features & NETIF_F_XDP_DISABLES;
	if (agg) {
		NL_SET_ERR_MSG_FMT(extack,
				   "unable to disable %s, required by another feature",
				   dev_xdp_rx_agg_name(agg));
		return -EBUSY;
	}
    ...
}

gve has no ndo_fix_features, and no gve feature depends on HW-GRO. For
gve, GRO_HW can only stay on because gve_set_features() failed: -ENOMEM
from gve_queues_mem_alloc(), an adminq error from gve_close(), or a
gve_queues_start() failure.

The user gets -EBUSY and a feature-dependency message instead of the
real errno.

If gve_queues_start() was the failure, the device is also left turned
down. The later netdev_update_features() call in err_clear_pending finds
features already equal to wanted_features and does nothing. Nothing in
the extack shows that the NIC has lost its queues.

Before the series, gve refused the same request itself with a specific
-EOPNOTSUPP extack. The new error reporting comes from the earlier patch
"net: state the "XDP excludes HW-GRO" rule in the core".

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261122010112.1471146-1-kuba%40kernel.org

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

end of thread, other threads:[~2026-11-23  1:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22  1:01 [PATCH net-next v2 0/9] net: make core auto-disable HW-GRO and LRO when XDP gets attached Jakub Kicinski
2026-11-22  1:01 ` [PATCH net-next v2 1/9] net: stop making HW-GRO depend on SW GRO Jakub Kicinski
2026-11-22  1:01 ` [PATCH net-next v2 2/9] selftests: drv-net: gro_stats: use the shared set_ethtool_feat() Jakub Kicinski
2026-11-22  1:01 ` [PATCH net-next v2 3/9] selftests: drv-net: drop the generic XDP hack from the HW GRO setup Jakub Kicinski
2026-11-22  1:01 ` [PATCH net-next v2 4/9] net: state the "XDP excludes HW-GRO" rule in the core Jakub Kicinski
2026-11-23  1:33   ` netdev-bot+sashiko
2026-11-22  1:01 ` [PATCH net-next v2 5/9] net: state the "XDP excludes LRO" " Jakub Kicinski
2026-11-23  1:33   ` netdev-bot+sashiko
2026-11-22  1:01 ` [PATCH net-next v2 6/9] eth: mlx5e: drop the now-dead HW-GRO and LRO vs XDP handling Jakub Kicinski
2026-11-23  1:01   ` sashiko-bot
2026-11-23  1:33   ` netdev-bot+sashiko
2026-11-22  1:01 ` [PATCH net-next v2 7/9] eth: bnxt_en: don't clear HW-GRO and LRO for XDP in ndo_fix_features Jakub Kicinski
2026-11-22  1:01 ` [PATCH net-next v2 8/9] eth: qede: drop the now-dead HW-GRO vs XDP handling Jakub Kicinski
2026-11-22  1:01 ` [PATCH net-next v2 9/9] eth: gve: drop the now-dead HW-GRO vs XDP interlock Jakub Kicinski
2026-11-23  1:33   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox