]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-ERSPAN-Take-LACP-state-into-consideration'
authorDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:10:20 +0000 (23:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:10:20 +0000 (23:10 -0700)
commit24846dd0f603373b018007f611be01e4cf9b8a1c
tree65612105eca58cee46fa24ce4f5bee81ef05984b
parent2cf84c090e78e5fa4a53a2b49b9b96abdc71d64a
parent67e226c6022977e2cfa75056f01652f5f2234cd0
Merge branch 'mlxsw-ERSPAN-Take-LACP-state-into-consideration'

Ido Schimmel says:

====================
mlxsw: ERSPAN: Take LACP state into consideration

Petr says:

When offloading mirror-to-gretap, mlxsw needs to preroute the path that
the encapsulated packet will take. That path may include a LAG device
above a front panel port. So far, mlxsw resolved the path to the first
up front panel slave of the LAG interface, but that only reflects
administrative state of the port. It neglects to consider whether the
port actually has a carrier, and what the LACP state is. This patch set
aims to address these problems.

Patch #1 publishes team_port_get_rcu().

Then in patch #2, a new function is introduced,
mlxsw_sp_port_dev_check(). That returns, for a given netdevice that is a
slave of a LAG device, whether that device is "txable", i.e. whether the
LAG master would send traffic through it. Since there's no good place to
put LAG-wide helpers, introduce a new header include/net/lag.h.

Finally in patch #3, fix the slave selection logic to take into
consideration whether a given slave has a carrier and whether it is
txable.
====================

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