]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Allocate FID according to PVID
authorPetr Machata <petrm@mellanox.com>
Mon, 25 Jun 2018 07:48:14 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 09:05:21 +0000 (18:05 +0900)
commit857f9508b8c84e80d778cf99cf26cf79ee4533ca
tree243380b69cb48f1d7b968566c889cdb60e53eb28
parentd241b48fdc36697e29064bea4fb667815f145e8b
mlxsw: spectrum_router: Allocate FID according to PVID

For bridge netdevices, instead of assuming that the router traffic is on
VLAN 1, look at the bridge PVID.

This patch assumes that the PVID doesn't change after the router
interface is created (i.e. after the IP address is assigned).

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c