]> 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)
commit61c60e0b8009aa22ce2b5b350fd6bd1b925720da
treec748c4c12b3a0854d246791d20752bf9185e7f18
parent1191aaef5cfd832149baffcc4001d1f1dd651dda
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