diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-10-23 01:11:29 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-23 01:11:29 -0700 |
commit | b63365a2d60268a3988285d6c3c6003d7066f93a (patch) | |
tree | 85bd8f91f3de954c697aa44544b4adf191e7f5aa /net/bridge/br_device.c | |
parent | 2e3f92dad6bdbee796274bae5c1c50a6ddd31cbb (diff) | |
download | kernel_samsung_espresso10-b63365a2d60268a3988285d6c3c6003d7066f93a.zip kernel_samsung_espresso10-b63365a2d60268a3988285d6c3c6003d7066f93a.tar.gz kernel_samsung_espresso10-b63365a2d60268a3988285d6c3c6003d7066f93a.tar.bz2 |
net: Fix disjunct computation of netdev features
My change
commit e2a6b85247aacc52d6ba0d9b37a99b8d1a3e0d83
net: Enable TSO if supported by at least one device
didn't do what was intended because the netdev_compute_features
function was designed for conjunctions. So what happened was that
it would simply take the TSO status of the last constituent device.
This patch extends it to support both conjunctions and disjunctions
under the new name of netdev_increment_features.
It also adds a new function netdev_fix_features which does the
sanity checking that usually occurs upon registration. This ensures
that the computation doesn't result in an illegal combination
since this checking is absent when the change is initiated via
ethtool.
The two users of netdev_compute_features have been converted.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_device.c')
-rw-r--r-- | net/bridge/br_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c index 22ba863..6c023f0 100644 --- a/net/bridge/br_device.c +++ b/net/bridge/br_device.c @@ -179,5 +179,5 @@ void br_dev_setup(struct net_device *dev) dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA | NETIF_F_GSO_MASK | NETIF_F_NO_CSUM | NETIF_F_LLTX | - NETIF_F_NETNS_LOCAL; + NETIF_F_NETNS_LOCAL | NETIF_F_GSO; } |