OSDN Git Service

Merge branch 'mlxsw-Offload-bridge-device-mrouter'
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:18:12 +0000 (10:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:18:12 +0000 (10:18 -0700)
commit905618437da4d166e296fb24d66e8e7b79f541ef
tree7dbb7fb51d137a8f01d30c72352fe1c4c028be75
parent31070e7fa0d9d2ae1d5d16a5ba980529fac7b6f9
parent593bc28ae211b864e7e0720ffc65a14cc5cff101
Merge branch 'mlxsw-Offload-bridge-device-mrouter'

Jiri Pirko says:

====================
mlxsw: Offload bridge device mrouter

Yotam says:

Similarly to a bridged port, the bridge device itself can be configured by
the user to be an mrouter port. In this case, all multicast traffic should
be forwarded to it. Make the mlxsw Spectrum driver offload these directives
to the Spectrum hardware.

Patches 1 and 2 add a new switchdev notification for bridge device mrouter
port status and make the bridge module notify about it.

Patches 3-5 change the mlxsw Spectrum driver to handle these notifications
by adding the Spectrum router port to the bridge MDB entries.

v1->v2:
 - patch1:
   - Don't add the MDB_RTR_TYPE_TEMP state and use the timer_pending to
     distinguish between learning-on and learning-off states
====================

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