Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-devlink.c46 dpaa2_eth_dl_trap_item_lookup(struct dpaa2_eth_priv *priv, u16 trap_id) in dpaa2_eth_dl_trap_item_lookup() argument
52 if (dpaa2_eth_traps_arr[i].id == trap_id) in dpaa2_eth_dl_trap_item_lookup()
64 enum devlink_trap_generic_id trap_id; in dpaa2_eth_dl_get_trap() member
66 { .position = 5, .trap_id = DEVLINK_TRAP_GENERIC_ID_VXLAN_PARSING }, in dpaa2_eth_dl_get_trap()
67 { .position = 20, .trap_id = DEVLINK_TRAP_GENERIC_ID_LLC_SNAP_PARSING }, in dpaa2_eth_dl_get_trap()
68 { .position = 24, .trap_id = DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING }, in dpaa2_eth_dl_get_trap()
69 { .position = 26, .trap_id = DEVLINK_TRAP_GENERIC_ID_PPPOE_PPP_PARSING }, in dpaa2_eth_dl_get_trap()
70 { .position = 29, .trap_id = DEVLINK_TRAP_GENERIC_ID_MPLS_PARSING }, in dpaa2_eth_dl_get_trap()
71 { .position = 31, .trap_id = DEVLINK_TRAP_GENERIC_ID_ARP_PARSING }, in dpaa2_eth_dl_get_trap()
72 { .position = 52, .trap_id = DEVLINK_TRAP_GENERIC_ID_IP_1_PARSING }, in dpaa2_eth_dl_get_trap()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtrap.c217 static int mlx5e_handle_action_trap(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_trap() argument
230 switch (trap_id) { in mlx5e_handle_action_trap()
232 err = mlx5e_add_vlan_trap(priv->fs, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap()
237 err = mlx5e_add_mac_trap(priv->fs, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap()
242 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_trap()
254 static int mlx5e_handle_action_drop(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_drop() argument
256 switch (trap_id) { in mlx5e_handle_action_drop()
264 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_drop()
300 static int mlx5e_apply_trap(struct mlx5e_priv *priv, int trap_id, bool enable) in mlx5e_apply_trap() argument
305 err = mlx5_devlink_traps_get_action(priv->mdev, trap_id, &action); in mlx5e_apply_trap()
[all …]
H A Dfs.h181 int mlx5e_add_vlan_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num);
183 int mlx5e_add_mac_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddevlink.c234 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
239 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id()
355 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb, in mlx5_devlink_trap_report() argument
361 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_trap_report()
363 mlx5_core_err(dev, "Devlink trap: Report on invalid trap id 0x%x", trap_id); in mlx5_devlink_trap_report()
368 mlx5_core_dbg(dev, "Devlink trap: Trap id %d has action %d", trap_id, in mlx5_devlink_trap_report()
387 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id, in mlx5_devlink_traps_get_action() argument
392 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_traps_get_action()
395 trap_id); in mlx5_devlink_traps_get_action()
H A Ddevlink.h44 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb,
47 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id,
H A Den_fs.c368 mlx5e_add_trap_rule(struct mlx5_flow_table *ft, int trap_id, int tir_num) in mlx5e_add_trap_rule() argument
379 spec->flow_context.flow_tag = trap_id; in mlx5e_add_trap_rule()
388 int mlx5e_add_vlan_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num) in mlx5e_add_vlan_trap() argument
394 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num); in mlx5e_add_vlan_trap()
413 int mlx5e_add_mac_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num) in mlx5e_add_mac_trap() argument
419 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num); in mlx5e_add_mac_trap()
H A Den_rx.c2742 u16 trap_id; in mlx5e_trap_handle_rx_cqe() local
2745 trap_id = get_cqe_flow_tag(cqe); in mlx5e_trap_handle_rx_cqe()
2762 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, in mlx5e_trap_handle_rx_cqe()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore.h101 u16 trap_id; member
107 enum mlxsw_event_trap_id trap_id; member
111 u16 trap_id; member
131 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
137 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
164 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
168 .trap_id = MLXSW_TRAP_ID_##_trap_id, \
241 int trap_id; member
H A Dcore_acl_flex_actions.h61 int mlxsw_afa_block_append_trap(struct mlxsw_afa_block *block, u16 trap_id);
63 u16 trap_id);
H A Dcore.c2417 rxl_a->trap_id == rxl_b->trap_id && in __is_rx_listener_equal()
2511 el_a->trap_id == el_b->trap_id); in __is_event_listener_equal()
2536 .trap_id = el->trap_id, in mlxsw_core_event_listener_register()
2573 .trap_id = el->trap_id, in mlxsw_core_event_listener_unregister()
2633 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_register()
2658 listener->trap_id, listener->dis_trap_group, in mlxsw_core_trap_unregister()
2722 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_state_set()
3017 rx_info->trap_id); in mlxsw_core_skb_receive()
3029 __func__, local_port, rx_info->trap_id); in mlxsw_core_skb_receive()
3031 if ((rx_info->trap_id >= MLXSW_TRAP_ID_MAX) || in mlxsw_core_skb_receive()
[all …]
H A Dcore_acl_flex_actions.c1202 MLXSW_ITEM32(afa, trap, trap_id, 0x04, 0, 9);
1227 u16 trap_id) in mlxsw_afa_trap_pack() argument
1231 mlxsw_afa_trap_trap_id_set(payload, trap_id); in mlxsw_afa_trap_pack()
1238 u16 trap_id, u32 user_def_val) in mlxsw_afa_trapwu_pack() argument
1240 mlxsw_afa_trap_pack(payload, trap_action, forward_action, trap_id); in mlxsw_afa_trapwu_pack()
1324 int mlxsw_afa_block_append_trap(struct mlxsw_afa_block *block, u16 trap_id) in mlxsw_afa_block_append_trap() argument
1333 MLXSW_AFA_TRAP_FORWARD_ACTION_DISCARD, trap_id); in mlxsw_afa_block_append_trap()
1339 u16 trap_id) in mlxsw_afa_block_append_trap_and_forward() argument
1348 MLXSW_AFA_TRAP_FORWARD_ACTION_FORWARD, trap_id); in mlxsw_afa_block_append_trap_and_forward()
H A Dpci.c661 rx_info.trap_id = mlxsw_pci_cqe_trap_id_get(cqe); in mlxsw_pci_cqe_rdq_handle()
663 if (rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_INGRESS_ACL || in mlxsw_pci_cqe_rdq_handle()
664 rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_EGRESS_ACL) { in mlxsw_pci_cqe_rdq_handle()
670 } else if (rx_info.trap_id >= MLXSW_TRAP_ID_MIRROR_SESSION0 && in mlxsw_pci_cqe_rdq_handle()
671 rx_info.trap_id <= MLXSW_TRAP_ID_MIRROR_SESSION7 && in mlxsw_pci_cqe_rdq_handle()
675 } else if (rx_info.trap_id == MLXSW_TRAP_ID_PKT_SAMPLE && in mlxsw_pci_cqe_rdq_handle()
H A Dreg.h6590 MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 10);
6608 static inline void mlxsw_reg_hpkt_pack(char *payload, u8 action, u16 trap_id, in mlxsw_reg_hpkt_pack() argument
6616 mlxsw_reg_hpkt_trap_id_set(payload, trap_id); in mlxsw_reg_hpkt_pack()
7334 MLXSW_ITEM32(reg, ratr, trap_id, 0x0C, 0, 8);
7973 MLXSW_ITEM32(reg, ralue, trap_id, 0x20, 0, 9);
8057 u16 trap_id, u32 adjacency_index, u16 ecmp_size) in mlxsw_reg_ralue_act_remote_pack() argument
8062 mlxsw_reg_ralue_trap_id_set(payload, trap_id); in mlxsw_reg_ralue_act_remote_pack()
8070 u16 trap_id, u16 local_erif) in mlxsw_reg_ralue_act_local_pack() argument
8075 mlxsw_reg_ralue_trap_id_set(payload, trap_id); in mlxsw_reg_ralue_act_local_pack()
8193 MLXSW_ITEM32(reg, rauht, trap_id, 0x60, 0, 9);
[all …]
H A Dpci_hw.h185 MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10);
H A Dspectrum_ptp.c873 enum mlxsw_reg_mtptpt_trap_id trap_id, in mlxsw_sp_ptp_mtptpt_set() argument
878 mlxsw_reg_mtptpt_pack(mtptpt_pl, trap_id, message_type); in mlxsw_sp_ptp_mtptpt_set()
H A Dspectrum_router.c5964 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_remote() local
5983 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_remote()
5987 mlxsw_reg_ralue_act_remote_pack(ralue_pl, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5999 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_local() local
6007 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_local()
6011 mlxsw_reg_ralue_act_local_pack(ralue_pl, trap_action, trap_id, in mlxsw_sp_fib_entry_op_local()
6047 u16 trap_id; in mlxsw_sp_fib_entry_op_unreachable() local
6050 trap_id = MLXSW_TRAP_ID_RTR_INGRESS1; in mlxsw_sp_fib_entry_op_unreachable()
6053 mlxsw_reg_ralue_act_local_pack(ralue_pl, trap_action, trap_id, 0); in mlxsw_sp_fib_entry_op_unreachable()
H A Dspectrum_trap.c1443 return listener->trap_id != 0; in mlxsw_sp_trap_listener_is_valid()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c530 prestera_devlink_trap_item_lookup(struct prestera_switch *sw, u16 trap_id) in prestera_devlink_trap_item_lookup() argument
536 if (prestera_trap_items_arr[i].trap.id == trap_id) in prestera_devlink_trap_item_lookup()
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_device_queue_manager.h53 uint32_t trap_id:3; member
/openbmc/linux/arch/arm64/kvm/
H A Demulate-nested.c457 #define SR_RANGE_TRAP(sr_start, sr_end, trap_id) \ argument
462 .cgt = trap_id, \
467 #define SR_TRAP(sr, trap_id) SR_RANGE_TRAP(sr, sr, trap_id) argument
/openbmc/linux/drivers/net/netdevsim/
H A Ddev.c1049 nsim_dev_trap_item_lookup(struct nsim_dev *nsim_dev, u16 trap_id) in nsim_dev_trap_item_lookup() argument
1055 if (nsim_traps_arr[i].id == trap_id) in nsim_dev_trap_item_lookup()
/openbmc/u-boot/arch/arm/include/asm/arch-mx7/
H A Dimx-regs.h1024 u32 trap_id[4]; /* Trap ID */ member