mlxsw: spectrum_router: Add the nexthop neigh activity update
authorYotam Gigi <yotamg@mellanox.com>
Tue, 5 Jul 2016 09:27:51 +0000 (11:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 16:06:30 +0000 (09:06 -0700)
commitb2157149b0b0f2cdaad9b82ed3bb1b84f82aa7f1
tree7d258f9a3ed9cf61ea4bb2744a0544924b6aaf7c
parenta7ff87acd995e3c024f3262bf90c8682c99b1f6b
mlxsw: spectrum_router: Add the nexthop neigh activity update

For nexthop neighbours we need to make kernel to think there is a traffic
flowing to them preventing it from going to stale state. Otherwise
kernel would stale it and eventually the neigh would be removed from HW
and nexthop as well. That would reduce ECMP group in HW.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c