veth: enable BIG TCP packets
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:34:06 +0000 (11:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:18:56 +0000 (10:18 +0100)
Set the TSO driver limit to GSO_MAX_SIZE (512 KB).

This allows the admin/user to set a GSO limit up to this value.

ip link set dev veth10 gso_max_size 200000

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c

index f474e79..466da01 100644 (file)
@@ -1647,6 +1647,7 @@ static void veth_setup(struct net_device *dev)
        dev->hw_features = VETH_FEATURES;
        dev->hw_enc_features = VETH_FEATURES;
        dev->mpls_features = NETIF_F_HW_CSUM | NETIF_F_GSO_SOFTWARE;
+       netif_set_tso_max_size(dev, GSO_MAX_SIZE);
 }
 
 /*