mlxsw: spectrum_switchdev: Do not treat static FDB entries as sticky
authorIdo Schimmel <idosch@mellanox.com>
Fri, 18 Jan 2019 15:58:01 +0000 (15:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 23:12:16 +0000 (15:12 -0800)
commit64254a2054611205798e6bde634639bc704573ac
tree7a40fa206077e92ae6b4f086b20c3c7babf3bf6a
parent710ae72877378e7cde611efd30fe90502a6e5b30
mlxsw: spectrum_switchdev: Do not treat static FDB entries as sticky

The driver currently treats static FDB entries as both static and
sticky. This is incorrect and prevents such entries from being roamed to
a different port via learning.

Fix this by configuring static entries with ageing disabled and roaming
enabled.

In net-next we can add proper support for the newly introduced 'sticky'
flag.

Fixes: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Alexander Petrovskiy <alexpe@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c