]> 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)
commit864965e7c4d8ebd28063ca1a47ec25b7d794eaf6
treed3468c423e7c9a0f3223286485be059bb0622372
parentff7ae798a3ef8d4330d777e46c53d6ed4c75964e
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