]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Start using new IPv4 route notifications
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Dec 2019 15:53:14 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:14:43 +0000 (16:14 -0800)
commitad69caaa7d634f3d0e5c1413a5ef655e8201fb73
treed3468c423e7c9a0f3223286485be059bb0622372
parentedee4043c7333d91cd2bc9de2e55dccbdd0314d6
mlxsw: spectrum_router: Start using new IPv4 route notifications

With the new notifications mlxsw does not need to handle identical
routes itself, as this is taken care of by the core IPv4 code.

Instead, mlxsw only needs to take care of inserting and removing routes
from the device.

Convert mlxsw to use the new IPv4 route notifications and simplify the
code.

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