mlxsw: spectrum_router: Publish mlxsw_sp_l3proto
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Sep 2017 21:49:16 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:23:25 +0000 (20:23 -0700)
The spectrum_ipip module that will be introduced in the follow-up
patches needs to know the data type.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-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
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h

index 4e47d45ab1bb6652256be0aae728b433ee6f48cf..f866ac5fa37d6863fc23fcb8e8ea114e085e0125 100644 (file)
@@ -405,11 +405,6 @@ struct mlxsw_sp_rt6 {
        struct rt6_info *rt;
 };
 
-enum mlxsw_sp_l3proto {
-       MLXSW_SP_L3_PROTO_IPV4,
-       MLXSW_SP_L3_PROTO_IPV6,
-};
-
 struct mlxsw_sp_lpm_tree {
        u8 id; /* tree ID */
        unsigned int ref_count;
index 87a04afee138572cadaf586c6304783ee160820a..67c6c1d5ac93a251b5ba0abe0498e50b3c3b6e12 100644 (file)
 
 #include "spectrum.h"
 
+enum mlxsw_sp_l3proto {
+       MLXSW_SP_L3_PROTO_IPV4,
+       MLXSW_SP_L3_PROTO_IPV6,
+};
+
 enum mlxsw_sp_rif_counter_dir {
        MLXSW_SP_RIF_COUNTER_INGRESS,
        MLXSW_SP_RIF_COUNTER_EGRESS,