mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 04:53:09 -04:00
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: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
13f15b59ad
commit
85d4ec5925
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user