OSDN Git Service

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)
commit1fd85416e3b5c9e53bf729c9d2a3922cdf3e3267
treec748c4c12b3a0854d246791d20752bf9185e7f18
parent720d683cbe8b14bbdb00ea65354a77a8e80a2844
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