Lines Matching refs:trap_ctx
89 void *trap_ctx) in mlxsw_sp_rx_drop_listener() argument
97 mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_drop_listener()
108 devlink_trap_report(devlink, skb, trap_ctx, in_devlink_port, NULL); in mlxsw_sp_rx_drop_listener()
113 void *trap_ctx) in mlxsw_sp_rx_acl_drop_listener() argument
123 mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_acl_drop_listener()
136 devlink_trap_report(devlink, skb, trap_ctx, in_devlink_port, fa_cookie); in mlxsw_sp_rx_acl_drop_listener()
142 void *trap_ctx) in __mlxsw_sp_rx_no_mark_listener() argument
150 mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in __mlxsw_sp_rx_no_mark_listener()
161 devlink_trap_report(devlink, skb, trap_ctx, in_devlink_port, NULL); in __mlxsw_sp_rx_no_mark_listener()
168 void *trap_ctx) in mlxsw_sp_rx_no_mark_listener() argument
172 err = __mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_no_mark_listener()
180 void *trap_ctx) in mlxsw_sp_rx_mark_listener() argument
183 mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_mark_listener()
187 void *trap_ctx) in mlxsw_sp_rx_l3_mark_listener() argument
191 mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_l3_mark_listener()
195 void *trap_ctx) in mlxsw_sp_rx_ptp_listener() argument
197 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_ptp_listener()
200 err = __mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_ptp_listener()
261 void *trap_ctx) in mlxsw_sp_rx_sample_listener() argument
263 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_listener()
270 err = __mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_sample_listener()
297 void *trap_ctx) in mlxsw_sp_rx_sample_tx_listener() argument
300 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_tx_listener()
313 err = __mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_sample_tx_listener()
347 void *trap_ctx) in mlxsw_sp_rx_sample_acl_listener() argument
349 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_acl_listener()
358 err = __mlxsw_sp_rx_no_mark_listener(skb, local_port, trap_ctx); in mlxsw_sp_rx_sample_acl_listener()
1544 const struct devlink_trap *trap, void *trap_ctx) in mlxsw_sp_trap_init() argument
1561 err = mlxsw_core_trap_register(mlxsw_core, listener, trap_ctx); in mlxsw_sp_trap_init()
1570 const struct devlink_trap *trap, void *trap_ctx) in mlxsw_sp_trap_fini() argument
1586 mlxsw_core_trap_unregister(mlxsw_core, listener, trap_ctx); in mlxsw_sp_trap_fini()