OSDN Git Service

mlxsw: spectrum_router: Create common function for fib_entry_type_unset() code
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Sep 2021 12:36:47 +0000 (15:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2021 09:26:51 +0000 (10:26 +0100)
commit45bce5c99d462bf5a6dfbb83681bab53c7b4fe2c
tree935eaf5d58a1f72c12c9459ff26c1ea2701b02fb
parent2fcd14d0f78090f57aecd7f424e2b0373cd631a7
mlxsw: spectrum_router: Create common function for fib_entry_type_unset() code

mlxsw_sp_fib4_entry_type_unset() is not specific for IPv4 FIB entry,
move the code to mlxsw_sp_fib_entry_type_unset(), and call this function
from mlxsw_sp_fib4_entry_type_unset() so then it will be used for IPv6
also.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@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_router.c