]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Consolidate identical functions
authorIdo Schimmel <idosch@mellanox.com>
Thu, 26 Dec 2019 16:41:16 +0000 (18:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 21:13:22 +0000 (13:13 -0800)
commitd3ec71bd219ce7eb50674039d91ea2e051b7e169
tree7f8a0b1e794b850df354fa7b9fcf9a3551370307
parent823c056c08571a6be13b064e60a66ddfbbc423e5
mlxsw: spectrum_router: Consolidate identical functions

After the last patch mlxsw_sp_fib{4,6}_node_entry_link() and
mlxsw_sp_fib{4,6}_node_entry_unlink() are identical and can therefore be
consolidated into the same common function.

Perform the consolidation.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c