mlxsw: spectrum_router: Adjust RIF configuration for new firmware versions
authorIdo Schimmel <idosch@mellanox.com>
Tue, 23 May 2017 19:56:30 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 21:46:17 +0000 (17:46 -0400)
commit03ea01e9db82203e83b306b6c61d2cc9f0da4199
tree30d68958efad839b80acdb686c091eff6ea4b787
parent6b7421992b8d6ab8da5d5f3afae17fb5515fd633
mlxsw: spectrum_router: Adjust RIF configuration for new firmware versions

In new firmware versions, when configuring a {Port, VID} as a router
interface, the driver is responsible for enabling the STP filter and
disabling learning.  Otherwise, packets are discarded.

This change doesn't break existing firmware versions, but is required
for newer firmware versions.

Signed-off-by: Ido Schimmel <idosch@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_router.c