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 4e47d45..f866ac5 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 87a04af..67c6c1d 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,