Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/freescale/dpaa2/
A 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
77 { .position = 24, .trap_id = DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING }, in dpaa2_eth_dl_get_trap()
80 { .position = 31, .trap_id = DEVLINK_TRAP_GENERIC_ID_ARP_PARSING }, in dpaa2_eth_dl_get_trap()
83 { .position = 67, .trap_id = DEVLINK_TRAP_GENERIC_ID_GRE_PARSING }, in dpaa2_eth_dl_get_trap()
84 { .position = 71, .trap_id = DEVLINK_TRAP_GENERIC_ID_UDP_PARSING }, in dpaa2_eth_dl_get_trap()
85 { .position = 76, .trap_id = DEVLINK_TRAP_GENERIC_ID_TCP_PARSING }, in dpaa2_eth_dl_get_trap()
89 { .position = 88, .trap_id = DEVLINK_TRAP_GENERIC_ID_GTP_PARSING }, in dpaa2_eth_dl_get_trap()
90 { .position = 90, .trap_id = DEVLINK_TRAP_GENERIC_ID_ESP_PARSING }, in dpaa2_eth_dl_get_trap()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A 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()
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()
302 err = enable ? mlx5e_handle_action_trap(priv, trap_id) : in mlx5e_apply_trap()
[all …]
A Dfs.h205 int mlx5e_add_vlan_trap(struct mlx5e_priv *priv, int trap_id, int tir_num);
207 int mlx5e_add_mac_trap(struct mlx5e_priv *priv, int trap_id, int tir_num);
/linux/drivers/net/ethernet/mellanox/mlxsw/
A 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
A Dcore_acl_flex_actions.h61 int mlxsw_afa_block_append_trap(struct mlxsw_afa_block *block, u16 trap_id);
63 u16 trap_id);
A Dcore.c2146 rxl_a->trap_id == rxl_b->trap_id && in __is_rx_listener_equal()
2240 el_a->trap_id == el_b->trap_id); in __is_event_listener_equal()
2265 .trap_id = el->trap_id, in mlxsw_core_event_listener_register()
2302 .trap_id = el->trap_id, in mlxsw_core_event_listener_unregister()
2359 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_register()
2381 listener->trap_id, listener->dis_trap_group, in mlxsw_core_trap_unregister()
2406 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_state_set()
2650 rx_info->trap_id); in mlxsw_core_skb_receive()
2662 __func__, local_port, rx_info->trap_id); in mlxsw_core_skb_receive()
2664 if ((rx_info->trap_id >= MLXSW_TRAP_ID_MAX) || in mlxsw_core_skb_receive()
[all …]
A 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()
A Dspectrum_router.h119 u16 trap_id, u32 adjacency_index, u16 ecmp_size);
122 u16 trap_id, u16 local_erif);
A 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()
A Dreg.h6283 MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 10);
6309 mlxsw_reg_hpkt_trap_id_set(payload, trap_id); in mlxsw_reg_hpkt_pack()
6999 MLXSW_ITEM32(reg, ratr, trap_id, 0x0C, 0, 8);
7638 MLXSW_ITEM32(reg, ralue, trap_id, 0x20, 0, 9);
7737 u16 trap_id, u16 local_erif) in mlxsw_reg_ralue_act_local_pack() argument
7860 MLXSW_ITEM32(reg, rauht, trap_id, 0x60, 0, 9);
11217 enum mlxsw_reg_mtptpt_trap_id trap_id, in mlxsw_reg_mtptptp_pack() argument
11782 MLXSW_ITEM32(reg, tndem, trap_id, 0x08, 0, 9);
11786 u16 trap_id) in mlxsw_reg_tndem_pack() argument
11936 MLXSW_ITEM32(reg, tidem, trap_id, 0x08, 0, 9);
[all …]
A Dpci.c627 rx_info.trap_id = mlxsw_pci_cqe_trap_id_get(cqe); in mlxsw_pci_cqe_rdq_handle()
629 if (rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_INGRESS_ACL || in mlxsw_pci_cqe_rdq_handle()
630 rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_EGRESS_ACL) { in mlxsw_pci_cqe_rdq_handle()
636 } else if (rx_info.trap_id >= MLXSW_TRAP_ID_MIRROR_SESSION0 && in mlxsw_pci_cqe_rdq_handle()
637 rx_info.trap_id <= MLXSW_TRAP_ID_MIRROR_SESSION7 && in mlxsw_pci_cqe_rdq_handle()
641 } else if (rx_info.trap_id == MLXSW_TRAP_ID_PKT_SAMPLE && in mlxsw_pci_cqe_rdq_handle()
A Dpci_hw.h188 MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10);
A 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()
A Dspectrum_router.c5782 u16 trap_id, u32 adjacency_index, u16 ecmp_size) in mlxsw_sp_router_ll_basic_fib_entry_act_remote_pack() argument
5787 trap_id, adjacency_index, ecmp_size); in mlxsw_sp_router_ll_basic_fib_entry_act_remote_pack()
5793 u16 trap_id, u16 local_erif) in mlxsw_sp_router_ll_basic_fib_entry_act_local_pack() argument
5798 trap_id, local_erif); in mlxsw_sp_router_ll_basic_fib_entry_act_local_pack()
5870 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_remote() local
5888 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_remote()
5892 ll_ops->fib_entry_act_remote_pack(op_ctx, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5905 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_local() local
5913 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_local()
5955 u16 trap_id; in mlxsw_sp_fib_entry_op_unreachable() local
[all …]
A Dspectrum_trap.c1419 return listener->trap_id != 0; in mlxsw_sp_trap_listener_is_valid()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Ddevlink.c201 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
206 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id()
327 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb, in mlx5_devlink_trap_report() argument
333 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_trap_report()
335 mlx5_core_err(dev, "Devlink trap: Report on invalid trap id 0x%x", trap_id); in mlx5_devlink_trap_report()
340 mlx5_core_dbg(dev, "Devlink trap: Trap id %d has action %d", trap_id, in mlx5_devlink_trap_report()
359 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id, in mlx5_devlink_traps_get_action() argument
364 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_traps_get_action()
367 trap_id); in mlx5_devlink_traps_get_action()
A 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,
A 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()
A Den_rx.c2396 u16 trap_id; in mlx5e_trap_handle_rx_cqe() local
2399 trap_id = get_cqe_flow_tag(cqe); in mlx5e_trap_handle_rx_cqe()
2417 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, dl_port); in mlx5e_trap_handle_rx_cqe()
/linux/drivers/gpu/drm/amd/amdkfd/
A Dkfd_dbgdev.h115 uint32_t trap_id:3; member
A Dkfd_dbgdev.c564 reg_sq_cmd.bits.trap_id = wac_info->trapId; in dbgdev_wave_control_set_registers()
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_devlink.c552 prestera_devlink_trap_item_lookup(struct prestera_switch *sw, u16 trap_id) in prestera_devlink_trap_item_lookup() argument
558 if (prestera_trap_items_arr[i].trap.id == trap_id) in prestera_devlink_trap_item_lookup()
/linux/drivers/net/netdevsim/
A Ddev.c1047 nsim_dev_trap_item_lookup(struct nsim_dev *nsim_dev, u16 trap_id) in nsim_dev_trap_item_lookup() argument
1053 if (nsim_traps_arr[i].id == trap_id) in nsim_dev_trap_item_lookup()

Completed in 123 milliseconds