]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_nve: Add API to resolve learned IP addresses
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Nov 2018 08:02:46 +0000 (08:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 01:10:31 +0000 (17:10 -0800)
commit86a4cf4f3476eef582d4d66587c6da23727f7717
tree7524fbfcfcef67207f12d3a7966558b27c1970b7
parent64b8e60b13a43784b5d0046c2a3709538faae094
mlxsw: spectrum_nve: Add API to resolve learned IP addresses

FDB notifications for entries learned from an NVE tunnel contain the IP
address of the remote VTEP. In the case of IPv4 underlay, the IP address
is specified as-is. IPv6 addresses on the other hand, are specified as
handles which then need to be used to query the actual address from the
device.

Only IPv4 underlay is currently supported, so we cannot receive
notifications for IPv6 addresses and therefore an error is returned when
one tries to resolve such an address.

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_nve.c