OSDN Git Service

mlxsw: spectrum: Separate bc and mc floods
authorNogah Frankel <nogahf@mellanox.com>
Thu, 9 Feb 2017 13:54:46 +0000 (14:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:46:40 +0000 (11:46 -0500)
commit71c365bdc4396893798c8e1c9247663096ff4829
tree3e64620d399cb4bfb3db580d40b67b180e307b65
parent63fe813c6008b5a10a06bffd64cee8da2984e716
mlxsw: spectrum: Separate bc and mc floods

Break the bm (broadcast-multicast) into two tables, one for broadcast
(and link local multicast that behaves like bc) and one for unknown
multicasts.
Add a bool into mlxsw_sp_port named mc_flood that reflect the value this
port should have in the mc flood table (currently, always 1);

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Yotam Gigi <yotamg@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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c