]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Introduce emulated VLAN RIFs
authorIdo Schimmel <idosch@mellanox.com>
Sun, 25 Nov 2018 09:43:58 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 23:27:08 +0000 (15:27 -0800)
commit8260d169f2c8dd4ceab772ad2799f21a85a12847
tree40b7866ab4516208c10fc86e6fcc0ac9fc3994fa
parent9aa403b629efd8aba4ddef27fd86a2d9c4f1316e
mlxsw: spectrum_router: Introduce emulated VLAN RIFs

Router interfaces (RIFs) constructed on top of VLAN-aware bridges are of
"VLAN" type, whereas RIFs constructed on top of VLAN-unaware bridges of
"FID" type.

In other words, the RIF type is derived from the underlying FID type.
VLAN RIFs are used on top of 802.1Q FIDs, whereas FID RIFs are used on
top of 802.1D FIDs.

Since the previous patch emulated 802.1Q FIDs using 802.1D FIDs, this
patch emulates VLAN RIFs using FID RIFs.

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