summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
diff options
context:
space:
mode:
authorYotam Gigi2016-07-05 11:27:51 +0200
committerDavid S. Miller2016-07-05 18:06:30 +0200
commitb2157149b0b0f2cdaad9b82ed3bb1b84f82aa7f1 (patch)
tree7d258f9a3ed9cf61ea4bb2744a0544924b6aaf7c /drivers/net/ethernet/mellanox/mlxsw/spectrum.h
parentmlxsw: spectrum_router: Implement next-hop routing (diff)
downloadkernel-qcow2-linux-b2157149b0b0f2cdaad9b82ed3bb1b84f82aa7f1.tar.gz
kernel-qcow2-linux-b2157149b0b0f2cdaad9b82ed3bb1b84f82aa7f1.tar.xz
kernel-qcow2-linux-b2157149b0b0f2cdaad9b82ed3bb1b84f82aa7f1.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
index 0fe6051ab195..ff5b8593b21a 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
@@ -223,6 +223,7 @@ struct mlxsw_sp_router {
unsigned long interval; /* ms */
} neighs_update;
struct list_head nexthop_group_list;
+ struct list_head nexthop_neighs_list;
};
struct mlxsw_sp {