]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_nve: Keep track of IPv6 addresses used by FDB entries
authorAmit Cohen <amcohen@nvidia.com>
Tue, 14 Dec 2021 14:25:49 +0000 (16:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Dec 2021 15:05:44 +0000 (15:05 +0000)
commita990edb55a72cd06db5cd9a22b669c165b7b060c
tree05a298d5deb2a17677be7f65c415a75ad127cf9b
parent2047c65a368ffbdcdba4802c1c1dd0453cc7dc5a
mlxsw: spectrum_nve: Keep track of IPv6 addresses used by FDB entries

FDB entries that perform VxLAN encapsulation with an IPv6 underlay hold
a reference on a resource. Namely, the KVDL entry where the IPv6
underlay destination IP is stored. When such an FDB entry is deleted, it
needs to drop the reference from the corresponding KVDL entry.

To that end, maintain a hash table that maps an FDB entry (i.e., {MAC,
FID}) to the IPv6 address used by it.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.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
drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.h