diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-06 05:51:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-06 14:07:56 +0300 |
commit | 6df6398f7c8b481ce83f28143bc08a5231616deb (patch) | |
tree | 5e61db4831d6b8a01f40a5e30e81b91429c9236e /include/linux/netdevice.h | |
parent | beb21e3e8e261fc9f11050af17efe6de183b33d3 (diff) | |
download | linux-6df6398f7c8b481ce83f28143bc08a5231616deb.tar.xz |
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 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index eaf66e57d891..006bb5c0e413 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -4895,6 +4895,9 @@ static inline void netif_set_gro_max_size(struct net_device *dev, WRITE_ONCE(dev->gro_max_size, size); } +void netif_inherit_tso_max(struct net_device *to, + const struct net_device *from); + static inline void skb_gso_error_unwind(struct sk_buff *skb, __be16 protocol, int pulled_hlen, u16 mac_offset, int mac_len) |