]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mlxsw: spectrum_trap: Move struct definition out of header file
authorIdo Schimmel <idosch@mellanox.com>
Sat, 16 May 2020 22:43:05 +0000 (01:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 23:42:31 +0000 (16:42 -0700)
'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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.h

index fbf714d027d826408ee1370b4a5420c70dedcf4d..634e695b89fa72e107954a12482041ceb4f498a3 100644 (file)
 #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
  */
index 8c54897ba173d2d856a9eef589ea5f08fb3f43a2..8a11a2b973f85b520563317081b5a54adee823f4 100644 (file)
@@ -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