Skip to content

Commit ff1f06c

Browse files
pmachatadavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 89e4198 commit ff1f06c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,6 @@ struct mlxsw_sp_rt6 {
405405
struct rt6_info *rt;
406406
};
407407

408-
enum mlxsw_sp_l3proto {
409-
MLXSW_SP_L3_PROTO_IPV4,
410-
MLXSW_SP_L3_PROTO_IPV6,
411-
};
412-
413408
struct mlxsw_sp_lpm_tree {
414409
u8 id; /* tree ID */
415410
unsigned int ref_count;

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737

3838
#include "spectrum.h"
3939

40+
enum mlxsw_sp_l3proto {
41+
MLXSW_SP_L3_PROTO_IPV4,
42+
MLXSW_SP_L3_PROTO_IPV6,
43+
};
44+
4045
enum mlxsw_sp_rif_counter_dir {
4146
MLXSW_SP_RIF_COUNTER_INGRESS,
4247
MLXSW_SP_RIF_COUNTER_EGRESS,

0 commit comments

Comments
 (0)