summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h
diff options
context:
space:
mode:
authorArkadi Sharshevsky2017-09-25 10:32:26 +0200
committerDavid S. Miller2017-09-27 05:04:35 +0200
commitc538adb3c6e77e0f6563b71923a81de182b5132c (patch)
treeac207f749f0fdbb593d6eb60b3c9226fa35800cd /drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h
parentmlxsw: spectrum_router: Add helpers for nexthop access (diff)
downloadkernel-qcow2-linux-c538adb3c6e77e0f6563b71923a81de182b5132c.tar.gz
kernel-qcow2-linux-c538adb3c6e77e0f6563b71923a81de182b5132c.tar.xz
kernel-qcow2-linux-c538adb3c6e77e0f6563b71923a81de182b5132c.zip
mlxsw: spectrum_dpipe: Add initial support for the router adjacency table
Add initial support for router adjacency table. The table does lookup based on the nexthop-group index and the local nexthop offset. After locating the nexthop entry it sets the destination MAC address and the egress RIF. Signed-off-by: Arkadi Sharshevsky <arkadis@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_dpipe.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h
index 283fde4e6783..815d543cf114 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h
@@ -56,5 +56,6 @@ static inline void mlxsw_sp_dpipe_fini(struct mlxsw_sp *mlxsw_sp)
#define MLXSW_SP_DPIPE_TABLE_NAME_ERIF "mlxsw_erif"
#define MLXSW_SP_DPIPE_TABLE_NAME_HOST4 "mlxsw_host4"
#define MLXSW_SP_DPIPE_TABLE_NAME_HOST6 "mlxsw_host6"
+#define MLXSW_SP_DPIPE_TABLE_NAME_ADJ "mlxsw_adj"
#endif /* _MLXSW_PIPELINE_H_*/