Skip to contentSkip to conversation

net: ifb: support BIG TCP packets

PATCH Applied Eric Dumazet 2 participants 2 messages Jul 1, 2025 – Jul 2, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ifb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ifb.c +1 -0
index 67424888ff0aad4ca3d6980950f54f2c4b7fdf33..d3dc0914450a87a491c2f634739b324a96d0a9a0 100644
@@ -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)
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Tue, 1 Jul 2025 08:45:40 +0000 you wrote:

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.

[...]

Here is the summary with links:
- [net-next] net: ifb: support BIG TCP packets

    https://git.kernel.org/netdev/net-next/c/7d2dabaa1796

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html