]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Remove unnecessary checks
authorIdo Schimmel <idosch@mellanox.com>
Thu, 26 Dec 2019 16:41:13 +0000 (18:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 21:13:22 +0000 (13:13 -0800)
commitd56fa8748af500d39faf398237e8b272183540ba
treefeac598120f97c2067ed119a8d7e3ee1492be4d5
parentd6e85fbff7fdf3e6ee6238abd19b9200590e9775
mlxsw: spectrum_router: Remove unnecessary checks

Now that the networking stack takes care of only notifying the routes of
interest, we do not need to maintain a list of identical routes.

Remove the check that tests if the route is the first route in the FIB
node.

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