]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Merge branch 'bond-link-status-fixes'
authorDavid S. Miller <davem@davemloft.net>
Tue, 28 Mar 2017 04:11:50 +0000 (21:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Mar 2017 04:11:50 +0000 (21:11 -0700)
commit95ed0edd833fa07299d4ff38116c0496ce766364
tree20269c62b0a9d0ff31acb4421f54fedd9f2291cc
parent205ed44ec0676099fc17ba6d3195e48bea947147
parente292dcae1648cd5b5c80031a154f594aa590667f
Merge branch 'bond-link-status-fixes'

Mahesh Bandewar says:

====================
link-status fixes for mii-monitoring

The mii monitoring is divided into two phases - inspect and commit. The
inspect phase technically should not make any changes to the state and
defer it to the commit phase. However detected link state inconsistencies
on several machines and discovered that it's the result of some
inconsistent update to link states and assumption that you *always* get
rtnl-mutex. In reality when trylock() fails to acquire rtnl-mutex, the
commit phase is postponed until next mii-mon run. At the next round
because of the state change performed in the previous inspect-run, this
round does not detect any changes and would skip calling commit phase.
This would result in an inconsistent state until next link event happens
(if it ever happens).

During the the commit phase, it's always assumed that speed and duplex
fetch is always successful, but that's always not the case. However the
slave state is marked UP irrespective of speed / duplex fetch operation.
If the speed / duplex fetch operation results in insane values for either
of these two fields, then keeping internal link state UP is not going to
provide fruitful results either.

Please see into individual patches for more details.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>