OSDN Git Service

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)
commit7c4a7ec8558dfc770c27931b43f01aede613faac
treef143996f80a751ed9298dc283bedf65dd9cb769a
parentb04720aee9a61b0b2f03a81d575fdcfb84c43c34
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