aboutsummaryrefslogtreecommitdiff
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2006-08-22 14:42:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2006-08-22 14:42:36 -0400
commit69758820a42da207bdc775d6eccf1f9fb67cd62e (patch)
tree4c4dd2b596aa5535231656bf0fa1bc65a8b17471 /net/bridge/br_if.c
parent113b898e38cb20e80847c24154ce62273b948c6a (diff)
parentef7d1b244fa6c94fb76d5f787b8629df64ea4046 (diff)
Merge branch 'from-linus' into upstream
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r--net/bridge/br_if.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index f55ef682ef8..b1211d5342f 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -386,12 +386,17 @@ void br_features_recompute(struct net_bridge *br)
checksum = 0;
if (feature & NETIF_F_GSO)
- feature |= NETIF_F_TSO;
+ feature |= NETIF_F_GSO_SOFTWARE;
feature |= NETIF_F_GSO;
features &= feature;
}
+ if (!(checksum & NETIF_F_ALL_CSUM))
+ features &= ~NETIF_F_SG;
+ if (!(features & NETIF_F_SG))
+ features &= ~NETIF_F_GSO_MASK;
+
br->dev->features = features | checksum | NETIF_F_LLTX |
NETIF_F_GSO_ROBUST;
}