diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 04:51:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-06 13:07:56 +0200 |
commit | 6df6398f7c8b481ce83f28143bc08a5231616deb (patch) | |
tree | 5e61db4831d6b8a01f40a5e30e81b91429c9236e /drivers/net/veth.c | |
parent | Merge branch 'nfp-flower-rework' (diff) | |
download | linux-6df6398f7c8b481ce83f28143bc08a5231616deb.tar.xz linux-6df6398f7c8b481ce83f28143bc08a5231616deb.zip |
net: add netif_inherit_tso_max()
To make later patches smaller create a helper for inheriting
the TSO limitations of a lower device. The TSO in the name
is not an accident, subsequent patches will replace GSO
with TSO in more names.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r-- | drivers/net/veth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 3592014e50cc..f474e79a7745 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -1758,8 +1758,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev, if (ifmp && (dev->ifindex != 0)) peer->ifindex = ifmp->ifi_index; - netif_set_gso_max_size(peer, dev->gso_max_size); - netif_set_gso_max_segs(peer, dev->gso_max_segs); + netif_inherit_tso_max(peer, dev); err = register_netdevice(peer); put_net(net); |