mlxsw: spectrum: Break flood set func to be per table
authorNogah Frankel <nogahf@mellanox.com>
Thu, 9 Feb 2017 13:54:43 +0000 (14:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:46:39 +0000 (11:46 -0500)
commiteaa7df3c5afe257e59e03746cdf9800fcd2494d2
tree2ae17862846dcb790d8d1ac00716acc31f8455fc
parent6d5496483f5eb7b4da2e83c7b2149a21ad412d96
mlxsw: spectrum: Break flood set func to be per table

Currently, the flood set function can't operate on only one table, but
sets both uc_flood and mb_flood together.
This patch creates a function that sets the flood state per table.

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_switchdev.c