]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Don't reflect LINKDOWN nexthops
authorIdo Schimmel <idosch@mellanox.com>
Wed, 8 Feb 2017 13:36:49 +0000 (14:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:43:59 +0000 (15:43 -0500)
commit217d52c66dc773ee4f3bcbd2cd98208bcdb5a3f0
treebd7e7ffa683861b9d143a2bda8d20427c62aac23
parent2264bf6e0de9a5d2d79d5a967d56d9979adda7d0
mlxsw: spectrum_router: Don't reflect LINKDOWN nexthops

The kernel resolves the nexthops for a given route using
FIB_LOOKUP_IGNORE_LINKSTATE which means a notification can be sent for a
route with one of its nexthops being LINKDOWN.

In case IGNORE_ROUTES_WITH_LINKDOWN is set for the nexthop netdev, then
we shouldn't reflect the nexthop to the device's table.

Once the nexthop netdev's carrier goes up we'll be notified using NH_ADD
and reflect it to the device.

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