diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-05 19:51:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-06 12:07:56 +0100 |
commit | ee8b7a1156f357613646d6c69d07ac5a087a1071 (patch) | |
tree | 407ecbc4558b07373978ef5a57a2b08d18d23206 /net/core | |
parent | 14d7b8122fd591693a2388b98563707ba72c6780 (diff) |
net: make drivers set the TSO limit not the GSO limit
Drivers should call the TSO setting helper, GSO is controllable
by user space.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 6ae085b11373..f036ccb61da4 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3032,8 +3032,8 @@ EXPORT_SYMBOL(netif_set_tso_max_segs); */ void netif_inherit_tso_max(struct net_device *to, const struct net_device *from) { - netif_set_gso_max_size(to, from->gso_max_size); - netif_set_gso_max_segs(to, from->gso_max_segs); + netif_set_tso_max_size(to, from->tso_max_size); + netif_set_tso_max_segs(to, from->tso_max_segs); } EXPORT_SYMBOL(netif_inherit_tso_max); |