diff options
author | 2011-04-12 14:38:37 +0000 | |
---|---|---|
committer | 2011-04-12 19:29:45 -0700 | |
commit | ea2d36883ca8e6caab23b6d15bfa80b1d1d81d2f (patch) | |
tree | 38818d7330814e276b5e651ec4540ac2eb41d774 /tools/perf/scripts/python | |
parent | Merge branch 'sfc-2.6.39' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-2.6 (diff) | |
download | linux-dev-ea2d36883ca8e6caab23b6d15bfa80b1d1d81d2f.tar.xz linux-dev-ea2d36883ca8e6caab23b6d15bfa80b1d1d81d2f.zip |
net: Disable all TSO features when SG is disabled
The feature flags NETIF_F_TSO and NETIF_F_TSO6 independently enable
TSO for IPv4 and IPv6 respectively. However, the test in
netdev_fix_features() and its predecessor functions was never updated
to check for NETIF_F_TSO6, possibly because it was originally proposed
that TSO for IPv6 would be dependent on both feature flags.
Now that these feature flags can be changed independently from
user-space and we depend on netdev_fix_features() to fix invalid
feature combinations, it's important to disable them both if
scatter-gather is disabled. Also disable NETIF_F_TSO_ECN so
user-space sees all TSO features as disabled.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions