]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: typhoon: implement ndo_features_check method
authorEric Dumazet <edumazet@google.com>
Sat, 5 Feb 2022 04:54:59 +0000 (20:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Feb 2022 15:34:46 +0000 (15:34 +0000)
commitd2692eee05b8502dbe4c480405feec79f4efbb55
tree886e4358f69b3460474cdc52d2f49a749402ede5
parent5f2155132c5b9dbbf842db134a48407e5aad0958
net: typhoon: implement ndo_features_check method

Instead of disabling TSO at compile time if MAX_SKB_FRAGS > 32,
implement ndo_features_check() method for this driver for
a more dynamic handling.

If skb has more than 32 frags and is a GSO packet, force
software segmentation.

Most locally generated packets will use a small number
of fragments anyway.

For forwarding workloads, we can limit gro_max_size at ingress,
we might also implement gro_max_segs if needed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/typhoon.c