OSDN Git Service

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)
commitb6a1d871d37a8a1beffb5432631ca77ca3712c84
treed3468c423e7c9a0f3223286485be059bb0622372
parent20d1565203e68cd32d5db3e293e7323173ad7a0d
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