mlxsw: spectrum_router: Publish mlxsw_sp_l3proto

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>
tirimbino
Petr Machata 7 years ago committed by David S. Miller
parent 89e419828f
commit ff1f06ce9d
  1. 5
      drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
  2. 5
      drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h

@ -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;

@ -37,6 +37,11 @@
#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,

Loading…
Cancel
Save