aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2018-10-11 03:47:54 -0400
committerDavid S. Miller <davem@davemloft.net>2018-10-11 13:08:22 -0400
commit12066d612b22001829fa378ca127956ee72e13c1 (patch)
treeef16adba3285cfb50e6fce08e3b7bb69c24db0f7 /drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
parent9c73b1d120aadf26a3bbf34841ddac73b29c0326 (diff)
mlxsw: spectrum: Move L3 protocol and address definitions to global header file
The L3 protocol and address definitions are going to be used by the NVE code, so move them to the global header file from the one private to the router. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
index 354cb0834f3a..3dbafdeaab2b 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
@@ -7,17 +7,6 @@
7#include "spectrum.h" 7#include "spectrum.h"
8#include "reg.h" 8#include "reg.h"
9 9
10enum mlxsw_sp_l3proto {
11 MLXSW_SP_L3_PROTO_IPV4,
12 MLXSW_SP_L3_PROTO_IPV6,
13#define MLXSW_SP_L3_PROTO_MAX (MLXSW_SP_L3_PROTO_IPV6 + 1)
14};
15
16union mlxsw_sp_l3addr {
17 __be32 addr4;
18 struct in6_addr addr6;
19};
20
21struct mlxsw_sp_rif_ipip_lb; 10struct mlxsw_sp_rif_ipip_lb;
22struct mlxsw_sp_rif_ipip_lb_config { 11struct mlxsw_sp_rif_ipip_lb_config {
23 enum mlxsw_reg_ritr_loopback_ipip_type lb_ipipt; 12 enum mlxsw_reg_ritr_loopback_ipip_type lb_ipipt;