]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bridge: Add ability to enable TSO
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Fri, 9 Jan 2015 05:16:40 +0000 (14:16 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 21:18:09 +0000 (16:18 -0500)
Currently a bridge device turns off TSO feature if no bridge ports
support it. We can always enable it, since packets can be segmented on
ports by software as well as on the bridge device.
This will reduce the number of packets processed in the bridge.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c

index ed307db7a12b64531d0cdf2a89ccb53b7356ad4c..81e49fb7316981880d048c04b2413949abd3a302 100644 (file)
@@ -424,6 +424,7 @@ netdev_features_t br_features_recompute(struct net_bridge *br,
                features = netdev_increment_features(features,
                                                     p->dev->features, mask);
        }
+       features = netdev_add_tso_features(features, mask);
 
        return features;
 }