bonding: allow carrier and link status to determine link state

In a mixed environment it may be difficult to tell if your hardware
support carrier, if it does not it can always report true. With a new
use_carrier option of 2, we can check both carrier and link status
sequentially, instead of one or the other

Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Debabrata Banerjee
2018-05-14 14:48:10 -04:00
committed by David S. Miller
parent e79c105574
commit 1386c36b30
3 changed files with 14 additions and 9 deletions

View File

@@ -828,8 +828,8 @@ use_carrier
MII / ETHTOOL ioctl method to determine the link state.
A value of 1 enables the use of netif_carrier_ok(), a value of
0 will use the deprecated MII / ETHTOOL ioctls. The default
value is 1.
0 will use the deprecated MII / ETHTOOL ioctls. A value of 2
will check both. The default value is 1.
xmit_hash_policy