]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Adjust FDB notifications for VLAN devices
authorIdo Schimmel <idosch@mellanox.com>
Tue, 15 Dec 2015 15:03:42 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 16:58:22 +0000 (11:58 -0500)
commit9410f1c4df9c301cdb92042dc72efd3d56812365
tree1c3f35c84b52343972d1d2c688d20a472d7f96a0
parenta25771d8f0d8a73809813e2c7e82f36d2dc008a6
mlxsw: spectrum: Adjust FDB notifications for VLAN devices

FDB notifications contain the FID and port (or LAG ID) on which the MAC
was learned. In the case of the 802.1Q bridge one can easily derive the
matching VID - as FID equals VID - and generate the appropriate
notification for the software bridge. With VLAN devices this is no
longer the case, as these are associated with a vFID.

Solve that by converting the FID to a vFID and lookup the matching VLAN
device. From that derive the VID and whether learning (and learning
sync) should occur.

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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c