/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-devlink.c | 46 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 …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | trap.c | 220 static int mlx5e_handle_action_trap(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_trap() argument 233 switch (trap_id) { in mlx5e_handle_action_trap() 235 err = mlx5e_add_vlan_trap(priv->fs, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap() 240 err = mlx5e_add_mac_trap(priv->fs, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap() 245 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_trap() 257 static int mlx5e_handle_action_drop(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_drop() argument 259 switch (trap_id) { in mlx5e_handle_action_drop() 267 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_drop() 303 static int mlx5e_apply_trap(struct mlx5e_priv *priv, int trap_id, bool enable) in mlx5e_apply_trap() argument 308 err = mlx5_devlink_traps_get_action(priv->mdev, trap_id, &action); in mlx5e_apply_trap() [all …]
|
D | fs.h | 193 int mlx5e_add_vlan_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num); 195 int mlx5e_add_mac_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num);
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | devlink.c | 223 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 228 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id() 344 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb, in mlx5_devlink_trap_report() argument 350 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_trap_report() 352 mlx5_core_err(dev, "Devlink trap: Report on invalid trap id 0x%x", trap_id); in mlx5_devlink_trap_report() 357 mlx5_core_dbg(dev, "Devlink trap: Trap id %d has action %d", trap_id, in mlx5_devlink_trap_report() 376 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id, in mlx5_devlink_traps_get_action() argument 381 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_traps_get_action() 384 trap_id); in mlx5_devlink_traps_get_action()
|
D | devlink.h | 44 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,
|
D | en_fs.c | 368 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()
|
D | en_rx.c | 2728 u16 trap_id; in mlx5e_trap_handle_rx_cqe() local 2731 trap_id = get_cqe_flow_tag(cqe); in mlx5e_trap_handle_rx_cqe() 2748 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, in mlx5e_trap_handle_rx_cqe()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.h | 105 u16 trap_id; member 111 enum mlxsw_event_trap_id trap_id; member 115 u16 trap_id; member 135 .trap_id = MLXSW_TRAP_ID_##_trap_id, \ 141 .trap_id = MLXSW_TRAP_ID_##_trap_id, \ 168 .trap_id = MLXSW_TRAP_ID_##_trap_id, \ 172 .trap_id = MLXSW_TRAP_ID_##_trap_id, \ 245 int trap_id; member
|
D | core_acl_flex_actions.h | 61 int mlxsw_afa_block_append_trap(struct mlxsw_afa_block *block, u16 trap_id); 63 u16 trap_id);
|
D | core.c | 2354 rxl_a->trap_id == rxl_b->trap_id && in __is_rx_listener_equal() 2448 el_a->trap_id == el_b->trap_id); in __is_event_listener_equal() 2473 .trap_id = el->trap_id, in mlxsw_core_event_listener_register() 2510 .trap_id = el->trap_id, in mlxsw_core_event_listener_unregister() 2570 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_register() 2595 listener->trap_id, listener->dis_trap_group, in mlxsw_core_trap_unregister() 2659 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_state_set() 2954 rx_info->trap_id); in mlxsw_core_skb_receive() 2966 __func__, local_port, rx_info->trap_id); in mlxsw_core_skb_receive() 2968 if ((rx_info->trap_id >= MLXSW_TRAP_ID_MAX) || in mlxsw_core_skb_receive() [all …]
|
D | core_acl_flex_actions.c | 1202 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()
|
D | reg.h | 6665 MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 10); 6683 static inline void mlxsw_reg_hpkt_pack(char *payload, u8 action, u16 trap_id, in mlxsw_reg_hpkt_pack() argument 6691 mlxsw_reg_hpkt_trap_id_set(payload, trap_id); in mlxsw_reg_hpkt_pack() 7409 MLXSW_ITEM32(reg, ratr, trap_id, 0x0C, 0, 8); 8048 MLXSW_ITEM32(reg, ralue, trap_id, 0x20, 0, 9); 8132 u16 trap_id, u32 adjacency_index, u16 ecmp_size) in mlxsw_reg_ralue_act_remote_pack() argument 8137 mlxsw_reg_ralue_trap_id_set(payload, trap_id); in mlxsw_reg_ralue_act_remote_pack() 8145 u16 trap_id, u16 local_erif) in mlxsw_reg_ralue_act_local_pack() argument 8150 mlxsw_reg_ralue_trap_id_set(payload, trap_id); in mlxsw_reg_ralue_act_local_pack() 8268 MLXSW_ITEM32(reg, rauht, trap_id, 0x60, 0, 9); [all …]
|
D | pci_hw.h | 185 MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10);
|
D | pci.c | 790 rx_info.trap_id = mlxsw_pci_cqe_trap_id_get(cqe); in mlxsw_pci_cqe_rdq_handle() 792 if (rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_INGRESS_ACL || in mlxsw_pci_cqe_rdq_handle() 793 rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_EGRESS_ACL) { in mlxsw_pci_cqe_rdq_handle() 799 } else if (rx_info.trap_id >= MLXSW_TRAP_ID_MIRROR_SESSION0 && in mlxsw_pci_cqe_rdq_handle() 800 rx_info.trap_id <= MLXSW_TRAP_ID_MIRROR_SESSION7 && in mlxsw_pci_cqe_rdq_handle() 804 } else if (rx_info.trap_id == MLXSW_TRAP_ID_PKT_SAMPLE && in mlxsw_pci_cqe_rdq_handle()
|
D | spectrum_ptp.c | 873 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()
|
D | spectrum_router.c | 6210 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_remote() local 6229 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_remote() 6233 mlxsw_reg_ralue_act_remote_pack(ralue_pl, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote() 6245 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_local() local 6253 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_local() 6257 mlxsw_reg_ralue_act_local_pack(ralue_pl, trap_action, trap_id, in mlxsw_sp_fib_entry_op_local() 6293 u16 trap_id; in mlxsw_sp_fib_entry_op_unreachable() local 6296 trap_id = MLXSW_TRAP_ID_RTR_INGRESS1; in mlxsw_sp_fib_entry_op_unreachable() 6299 mlxsw_reg_ralue_act_local_pack(ralue_pl, trap_action, trap_id, 0); in mlxsw_sp_fib_entry_op_unreachable()
|
D | spectrum_trap.c | 1443 return listener->trap_id != 0; in mlxsw_sp_trap_listener_is_valid()
|
/linux-6.12.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.c | 530 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()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_device_queue_manager.h | 53 uint32_t trap_id:3; member
|
/linux-6.12.1/drivers/net/netdevsim/ |
D | dev.c | 1049 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()
|
/linux-6.12.1/arch/arm64/kvm/ |
D | emulate-nested.c | 549 #define SR_RANGE_TRAP(sr_start, sr_end, trap_id) \ argument 554 .cgt = trap_id, \ 559 #define SR_TRAP(sr, trap_id) SR_RANGE_TRAP(sr, sr, trap_id) argument
|