remarkable-linux/drivers/net/bonding
Herbert Xu b63365a2d6 net: Fix disjunct computation of netdev features
My change

    commit e2a6b85247
    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>
2008-10-23 01:11:29 -07:00
..
bond_3ad.c bonding: refactor mii monitor 2008-08-07 03:59:53 -04:00
bond_3ad.h
bond_alb.c bonding: Do not tx-balance some IPv6 packets on ALB/TLB bonds 2008-09-24 18:49:01 -04:00
bond_alb.h
bond_main.c net: Fix disjunct computation of netdev features 2008-10-23 01:11:29 -07:00
bond_sysfs.c bonding: Don't destroy bonding master when removing slave via sysfs 2008-08-07 03:59:56 -04:00
bonding.h drivers/net/bonding: sparse fixes for exported tables 2008-09-24 22:12:57 -04:00
Makefile