mlxsw: spectrum_switchdev: Add support for router port in SMID entries
authorYotam Gigi <yotamg@mellanox.com>
Mon, 9 Oct 2017 09:15:34 +0000 (11:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:18:11 +0000 (10:18 -0700)
commitc4db953f00f09003519ac1fb078f3b5f57b32e3c
tree1e68e73094171fb3bf0fb5f5ad676908ab7c665d
parentb35750f19102271485af9092b800863164dd4be0
mlxsw: spectrum_switchdev: Add support for router port in SMID entries

In Spectrum, MDB entries point to MID entries, that indicate which ports a
packet should be forwarded to. Add the support in creating MID entries that
forward the packet to the Spectrum router port.

This will be later used to handle the bridge mrouter port switchdev
notifications.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c