]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_fid: Add API to lookup 802.1Q FIDs without creating them
authorIdo Schimmel <idosch@mellanox.com>
Wed, 28 Nov 2018 20:06:59 +0000 (20:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:06:29 +0000 (17:06 -0800)
commita23ce4eefc5114da936d1c0cfa44ecbc5bf86dee
treefd719251426ceb7495e4c0f133a31e9bcf3842bf
parentdb3479bbc7a6c64b2b4177870f00a237e19bc497
mlxsw: spectrum_fid: Add API to lookup 802.1Q FIDs without creating them

In a similar fashion to commit 3ba68e0cf41a ("mlxsw: spectrum_fid: Add
APIs to lookup FID without creating it"), add a corresponding API to
lookup 802.1Q FIDs.

This is a prerequisite to VxLAN support with VLAN-aware bridges and will
allow us to resolve a 802.1Q FID by its VLAN when an FDB entry is added
on the bridge port of the VxLAN device.

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