]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_fid: Add APIs to lookup FID without creating it
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Oct 2018 08:53:05 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:07 +0000 (17:45 -0700)
commit3ba68e0cf41aedcfb244e4b0184ca3e6e8b68d38
tree468430e30845c212019d82d2dbdedc8ed33259ed
parentf8f9703bf7038f76f7ec57697e13b20fe3b25690
mlxsw: spectrum_fid: Add APIs to lookup FID without creating it

Current APIs only allow looking for a FID and creating it in case it
does not exist.

With VxLAN, in case the bridge to which the VxLAN device was enslaved
does not already have a corresponding FID, then it means that something
went wrong that we need to be aware of.

Add an API to look up a FID, but without creating it in order to catch
above-mentioned situation.

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