X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fbridge%2Fbr_if.c;h=b1211d5342f6cac5f43926a2c6a39f1651cb6761;hp=07956ecf545e313775967da4e48570bf33243732;hb=8ce7a9c159c8c4eb480f0a65c6af753dbf9a1a70;hpb=61b9175808670d9abf52156803ae0ed1e3706ac4 diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 07956ecf545e..b1211d5342f6 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -386,13 +386,19 @@ 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; } - br->dev->features = features | checksum | NETIF_F_LLTX; + 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; } /* called with RTNL */