Home
last modified time | relevance | path

Searched refs:trap_id (Results 1 – 23 of 23) sorted by relevance

/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c55 dpaa2_eth_dl_trap_item_lookup(struct dpaa2_eth_priv *priv, u16 trap_id) in dpaa2_eth_dl_trap_item_lookup() argument
61 if (dpaa2_eth_traps_arr[i].id == trap_id) in dpaa2_eth_dl_trap_item_lookup()
73 enum devlink_trap_generic_id trap_id; in dpaa2_eth_dl_get_trap() member
75 { .position = 5, .trap_id = DEVLINK_TRAP_GENERIC_ID_VXLAN_PARSING }, in dpaa2_eth_dl_get_trap()
76 { .position = 20, .trap_id = DEVLINK_TRAP_GENERIC_ID_LLC_SNAP_PARSING }, in dpaa2_eth_dl_get_trap()
77 { .position = 24, .trap_id = DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING }, in dpaa2_eth_dl_get_trap()
78 { .position = 26, .trap_id = DEVLINK_TRAP_GENERIC_ID_PPPOE_PPP_PARSING }, in dpaa2_eth_dl_get_trap()
79 { .position = 29, .trap_id = DEVLINK_TRAP_GENERIC_ID_MPLS_PARSING }, in dpaa2_eth_dl_get_trap()
80 { .position = 31, .trap_id = DEVLINK_TRAP_GENERIC_ID_ARP_PARSING }, in dpaa2_eth_dl_get_trap()
81 { .position = 52, .trap_id = DEVLINK_TRAP_GENERIC_ID_IP_1_PARSING }, in dpaa2_eth_dl_get_trap()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c210 static int mlx5e_handle_action_trap(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_trap() argument
223 switch (trap_id) { in mlx5e_handle_action_trap()
225 err = mlx5e_add_vlan_trap(priv, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap()
230 err = mlx5e_add_mac_trap(priv, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap()
235 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_trap()
247 static int mlx5e_handle_action_drop(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_drop() argument
249 switch (trap_id) { in mlx5e_handle_action_drop()
257 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_drop()
293 static int mlx5e_apply_trap(struct mlx5e_priv *priv, int trap_id, bool enable) in mlx5e_apply_trap() argument
298 err = mlx5_devlink_traps_get_action(priv->mdev, trap_id, &action); in mlx5e_apply_trap()
[all …]
Dfs.h207 int mlx5e_add_vlan_trap(struct mlx5e_priv *priv, int trap_id, int tir_num);
209 int mlx5e_add_mac_trap(struct mlx5e_priv *priv, int trap_id, int tir_num);
/drivers/net/ethernet/mellanox/mlxsw/
Dcore.h91 u16 trap_id; member
97 enum mlxsw_event_trap_id trap_id; member
101 u16 trap_id; member
121 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
127 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
154 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
158 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
214 int trap_id; member
Dcore_acl_flex_actions.h61 int mlxsw_afa_block_append_trap(struct mlxsw_afa_block *block, u16 trap_id);
63 u16 trap_id);
Dcore.c2163 rxl_a->trap_id == rxl_b->trap_id && in __is_rx_listener_equal()
2257 el_a->trap_id == el_b->trap_id); in __is_event_listener_equal()
2282 .trap_id = el->trap_id, in mlxsw_core_event_listener_register()
2319 .trap_id = el->trap_id, in mlxsw_core_event_listener_unregister()
2376 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_register()
2398 listener->trap_id, listener->dis_trap_group, in mlxsw_core_trap_unregister()
2423 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_state_set()
2667 rx_info->trap_id); in mlxsw_core_skb_receive()
2679 __func__, local_port, rx_info->trap_id); in mlxsw_core_skb_receive()
2681 if ((rx_info->trap_id >= MLXSW_TRAP_ID_MAX) || in mlxsw_core_skb_receive()
[all …]
Dcore_acl_flex_actions.c1201 MLXSW_ITEM32(afa, trap, trap_id, 0x04, 0, 9);
1226 u16 trap_id) in mlxsw_afa_trap_pack() argument
1230 mlxsw_afa_trap_trap_id_set(payload, trap_id); in mlxsw_afa_trap_pack()
1237 u16 trap_id, u32 user_def_val) in mlxsw_afa_trapwu_pack() argument
1239 mlxsw_afa_trap_pack(payload, trap_action, forward_action, trap_id); in mlxsw_afa_trapwu_pack()
1323 int mlxsw_afa_block_append_trap(struct mlxsw_afa_block *block, u16 trap_id) in mlxsw_afa_block_append_trap() argument
1332 MLXSW_AFA_TRAP_FORWARD_ACTION_DISCARD, trap_id); in mlxsw_afa_block_append_trap()
1338 u16 trap_id) in mlxsw_afa_block_append_trap_and_forward() argument
1347 MLXSW_AFA_TRAP_FORWARD_ACTION_FORWARD, trap_id); in mlxsw_afa_block_append_trap_and_forward()
Dspectrum_router.h116 u16 trap_id, u32 adjacency_index, u16 ecmp_size);
119 u16 trap_id, u16 local_erif);
Dspectrum_router_xm.c201 u16 trap_id, u32 adjacency_index, u16 ecmp_size) in mlxsw_sp_router_ll_xm_fib_entry_act_remote_pack() argument
206 trap_action, trap_id, adjacency_index, ecmp_size); in mlxsw_sp_router_ll_xm_fib_entry_act_remote_pack()
212 u16 trap_id, u16 local_erif) in mlxsw_sp_router_ll_xm_fib_entry_act_local_pack() argument
217 trap_action, trap_id, local_erif); in mlxsw_sp_router_ll_xm_fib_entry_act_local_pack()
Dreg.h6158 MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 10);
6176 static inline void mlxsw_reg_hpkt_pack(char *payload, u8 action, u16 trap_id, in mlxsw_reg_hpkt_pack() argument
6184 mlxsw_reg_hpkt_trap_id_set(payload, trap_id); in mlxsw_reg_hpkt_pack()
6851 MLXSW_ITEM32(reg, ratr, trap_id, 0x0C, 0, 8);
7484 MLXSW_ITEM32(reg, ralue, trap_id, 0x20, 0, 9);
7570 u16 trap_id, u32 adjacency_index, u16 ecmp_size) in mlxsw_reg_ralue_act_remote_pack() argument
7575 mlxsw_reg_ralue_trap_id_set(payload, trap_id); in mlxsw_reg_ralue_act_remote_pack()
7583 u16 trap_id, u16 local_erif) in mlxsw_reg_ralue_act_local_pack() argument
7588 mlxsw_reg_ralue_trap_id_set(payload, trap_id); in mlxsw_reg_ralue_act_local_pack()
7706 MLXSW_ITEM32(reg, rauht, trap_id, 0x60, 0, 9);
[all …]
Dpci.c631 rx_info.trap_id = mlxsw_pci_cqe_trap_id_get(cqe); in mlxsw_pci_cqe_rdq_handle()
633 if (rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_INGRESS_ACL || in mlxsw_pci_cqe_rdq_handle()
634 rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_EGRESS_ACL) { in mlxsw_pci_cqe_rdq_handle()
640 } else if (rx_info.trap_id >= MLXSW_TRAP_ID_MIRROR_SESSION0 && in mlxsw_pci_cqe_rdq_handle()
641 rx_info.trap_id <= MLXSW_TRAP_ID_MIRROR_SESSION7 && in mlxsw_pci_cqe_rdq_handle()
645 } else if (rx_info.trap_id == MLXSW_TRAP_ID_PKT_SAMPLE && in mlxsw_pci_cqe_rdq_handle()
Dpci_hw.h188 MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10);
Dspectrum_ptp.c693 enum mlxsw_reg_mtptpt_trap_id trap_id, in mlxsw_sp_ptp_mtptpt_set() argument
698 mlxsw_reg_mtptptp_pack(mtptpt_pl, trap_id, message_type); in mlxsw_sp_ptp_mtptpt_set()
Dspectrum_router.c5651 u16 trap_id, u32 adjacency_index, u16 ecmp_size) in mlxsw_sp_router_ll_basic_fib_entry_act_remote_pack() argument
5656 trap_id, adjacency_index, ecmp_size); in mlxsw_sp_router_ll_basic_fib_entry_act_remote_pack()
5662 u16 trap_id, u16 local_erif) in mlxsw_sp_router_ll_basic_fib_entry_act_local_pack() argument
5667 trap_id, local_erif); in mlxsw_sp_router_ll_basic_fib_entry_act_local_pack()
5774 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_remote() local
5796 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_remote()
5800 ll_ops->fib_entry_act_remote_pack(op_ctx, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5813 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_local() local
5821 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_local()
5825 ll_ops->fib_entry_act_local_pack(op_ctx, trap_action, trap_id, rif_index); in mlxsw_sp_fib_entry_op_local()
[all …]
Dspectrum_trap.c1419 return listener->trap_id != 0; in mlxsw_sp_trap_listener_is_valid()
/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c196 static struct mlx5_devlink_trap *mlx5_find_trap_by_id(struct mlx5_core_dev *dev, int trap_id) in mlx5_find_trap_by_id() argument
201 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id()
322 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb, in mlx5_devlink_trap_report() argument
328 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_trap_report()
330 mlx5_core_err(dev, "Devlink trap: Report on invalid trap id 0x%x", trap_id); in mlx5_devlink_trap_report()
335 mlx5_core_dbg(dev, "Devlink trap: Trap id %d has action %d", trap_id, in mlx5_devlink_trap_report()
354 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id, in mlx5_devlink_traps_get_action() argument
359 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_traps_get_action()
362 trap_id); in mlx5_devlink_traps_get_action()
Ddevlink.h28 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb,
31 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id,
Den_fs.c335 mlx5e_add_trap_rule(struct mlx5_flow_table *ft, int trap_id, int tir_num) in mlx5e_add_trap_rule() argument
346 spec->flow_context.flow_tag = trap_id; in mlx5e_add_trap_rule()
355 int mlx5e_add_vlan_trap(struct mlx5e_priv *priv, int trap_id, int tir_num) in mlx5e_add_vlan_trap() argument
361 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num); in mlx5e_add_vlan_trap()
381 int mlx5e_add_mac_trap(struct mlx5e_priv *priv, int trap_id, int tir_num) in mlx5e_add_mac_trap() argument
387 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num); in mlx5e_add_mac_trap()
Den_rx.c1832 u16 trap_id; in mlx5e_trap_handle_rx_cqe() local
1835 trap_id = get_cqe_flow_tag(cqe); in mlx5e_trap_handle_rx_cqe()
1853 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, dl_port); in mlx5e_trap_handle_rx_cqe()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_dbgdev.h115 uint32_t trap_id:3; member
Dkfd_dbgdev.c564 reg_sq_cmd.bits.trap_id = wac_info->trapId; in dbgdev_wave_control_set_registers()
/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c576 prestera_devlink_trap_item_lookup(struct prestera_switch *sw, u16 trap_id) in prestera_devlink_trap_item_lookup() argument
582 if (prestera_trap_items_arr[i].trap.id == trap_id) in prestera_devlink_trap_item_lookup()
/drivers/net/netdevsim/
Ddev.c966 nsim_dev_trap_item_lookup(struct nsim_dev *nsim_dev, u16 trap_id) in nsim_dev_trap_item_lookup() argument
972 if (nsim_traps_arr[i].id == trap_id) in nsim_dev_trap_item_lookup()