Home
last modified time | relevance | path

Searched refs:trap_ctx (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.c89 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
[all …]
Dcore.h394 const struct devlink_trap *trap, void *trap_ctx);
396 const struct devlink_trap *trap, void *trap_ctx);
Dspectrum.h1411 const struct devlink_trap *trap, void *trap_ctx);
1413 const struct devlink_trap *trap, void *trap_ctx);
Dcore.c1538 void *trap_ctx) in mlxsw_devlink_trap_init() argument
1545 return mlxsw_driver->trap_init(mlxsw_core, trap, trap_ctx); in mlxsw_devlink_trap_init()
1550 void *trap_ctx) in mlxsw_devlink_trap_fini() argument
1557 mlxsw_driver->trap_fini(mlxsw_core, trap, trap_ctx); in mlxsw_devlink_trap_fini()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c11 struct mlx5e_trap *trap_ctx = container_of(napi, struct mlx5e_trap, napi); in mlx5e_trap_napi_poll() local
12 struct mlx5e_ch_stats *ch_stats = trap_ctx->stats; in mlx5e_trap_napi_poll()
13 struct mlx5e_rq *rq = &trap_ctx->rq; in mlx5e_trap_napi_poll()
274 int mlx5e_handle_trap_event(struct mlx5e_priv *priv, struct mlx5_trap_ctx *trap_ctx) in mlx5e_handle_trap_event() argument
286 switch (trap_ctx->action) { in mlx5e_handle_trap_event()
288 err = mlx5e_handle_action_trap(priv, trap_ctx->id); in mlx5e_handle_trap_event()
291 err = mlx5e_handle_action_drop(priv, trap_ctx->id); in mlx5e_handle_trap_event()
295 trap_ctx->action); in mlx5e_handle_trap_event()
Dtrap.h34 int mlx5e_handle_trap_event(struct mlx5e_priv *priv, struct mlx5_trap_ctx *trap_ctx);
/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c123 void *trap_ctx; member
375 const struct devlink_trap *trap, void *trap_ctx);
547 devlink_trap_report(devlink, skb, trap_item->trap_ctx, in prestera_devlink_trap_report()
566 const struct devlink_trap *trap, void *trap_ctx) in prestera_trap_init() argument
575 trap_item->trap_ctx = trap_ctx; in prestera_trap_init()
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c118 void *trap_ctx) in dpaa2_eth_dl_trap_init() argument
128 dpaa2_eth_trap_item->trap_ctx = trap_ctx; in dpaa2_eth_dl_trap_init()
Ddpaa2-eth.h497 void *trap_ctx; member
Ddpaa2-eth.c663 devlink_trap_report(priv->devlink, skb, trap_item->trap_ctx, in dpaa2_eth_rx_err()
/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c226 void *trap_ctx) in mlx5_devlink_trap_init() argument
237 dl_trap->item = trap_ctx; in mlx5_devlink_trap_init()
250 void *trap_ctx) in mlx5_devlink_trap_fini() argument
/drivers/net/netdevsim/
Ddev.c645 void *trap_ctx; member
818 devlink_trap_report(devlink, skb, nsim_trap_item->trap_ctx, in nsim_dev_trap_report()
1064 void *trap_ctx) in nsim_dev_devlink_trap_init() argument
1073 nsim_trap_item->trap_ctx = trap_ctx; in nsim_dev_devlink_trap_init()