Commit 85d4ec59 authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller
Browse files

mlxsw: spectrum_trap: Move struct definition out of header file



'struct mlxsw_sp_trap_policer_item' is only used in one file, so move it
there.

Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 13f15b59
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12,6 +12,12 @@
#include "spectrum.h"
#include "spectrum_trap.h"

struct mlxsw_sp_trap_policer_item {
	u16 hw_id;
	u32 id;
	struct list_head list; /* Member of policer_item_list */
};

/* All driver-specific traps must be documented in
 * Documentation/networking/devlink/mlxsw.rst
 */
+0 −6
Original line number Diff line number Diff line
@@ -15,10 +15,4 @@ struct mlxsw_sp_trap {
	unsigned long policers_usage[]; /* Usage bitmap */
};

struct mlxsw_sp_trap_policer_item {
	u16 hw_id;
	u32 id;
	struct list_head list; /* Member of policer_item_list */
};

#endif