]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Remove FIB entry list from FIB node
authorIdo Schimmel <idosch@mellanox.com>
Thu, 26 Dec 2019 16:41:17 +0000 (18:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 21:13:22 +0000 (13:13 -0800)
commit002b80946a6fe248d28b342ab8b13187345908c0
treef143996f80a751ed9298dc283bedf65dd9cb769a
parent774f9fb5640511eec38fefe88f6fa0d80673d1a6
mlxsw: spectrum_router: Remove FIB entry list from FIB node

As explained in previous patches, the driver no longer needs to maintain
a list of identical FIB entries (i.e, same {tb_id, prefix, prefix
length}) and therefore each FIB node can only store one FIB entry.

Remove the FIB entry list and simplify the code.

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