[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250701084540.459261-1-edumazet@google.com>
Date: Tue, 1 Jul 2025 08:45:40 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Simon Horman <horms@...nel.org>, netdev@...r.kernel.org, eric.dumazet@...il.com,
Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH net-next] net: ifb: support BIG TCP packets
Set the driver limit to GSO_MAX_SIZE (512 KB).
This allows the admin/user to set a GSO limit up to this value, to
avoid segmenting too large GRO packets in the netem -> ifb path.
Signed-off-by: Eric Dumazet <edumazet@...gle.com>
---
drivers/net/ifb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index 67424888ff0aad4ca3d6980950f54f2c4b7fdf33..d3dc0914450a87a491c2f634739b324a96d0a9a0 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -333,6 +333,7 @@ static void ifb_setup(struct net_device *dev)
dev->min_mtu = 0;
dev->max_mtu = 0;
+ netif_set_tso_max_size(dev, GSO_MAX_SIZE);
}
static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev)
--
2.50.0.727.gbf7dc18ff4-goog
Powered by blists - more mailing lists