]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Split handling of FDB tunnel entries between address families
authorAmit Cohen <amcohen@nvidia.com>
Tue, 14 Dec 2021 14:25:47 +0000 (16:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Dec 2021 15:05:44 +0000 (15:05 +0000)
commita23067313a5fa065d244f29b31ae7110078ac64a
treec748c4c12b3a0854d246791d20752bf9185e7f18
parent394d2649e77dbf63c9e9bcee2e35579abad11571
mlxsw: Split handling of FDB tunnel entries between address families

Currently, the function which adds/removes unicast tunnel FDB entries is
shared between IPv4 and IPv6, while for IPv6 it warns because there is
no support for it.

The code for IPv6 will be more complicated because it needs to
allocate/release a KVDL pointer for the underlay IPv6 address.

As a preparation for IPv6 underlay support, split the code according to
address family.

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