summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>2015-01-09 06:16:40 +0100
committerDavid S. Miller <davem@davemloft.net>2015-01-12 22:18:09 +0100
commitf902e8812ef657c6cf744ac25e21865217155460 (patch)
treebce7d750a162a40dd84be8aa27823da450f006db
parentMerge branch 'r8152-next' (diff)
downloadlinux-f902e8812ef657c6cf744ac25e21865217155460.tar.xz
linux-f902e8812ef657c6cf744ac25e21865217155460.zip
bridge: Add ability to enable TSO
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>
Diffstat (limited to '')
-rw-r--r--net/bridge/br_if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index ed307db7a12b..81e49fb73169 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -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;
}