Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
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
68 { .position = 24, .trap_id = DEVLINK_TRAP_GENERIC_ID_VLAN_PARSING }, in dpaa2_eth_dl_get_trap()
71 { .position = 31, .trap_id = DEVLINK_TRAP_GENERIC_ID_ARP_PARSING }, in dpaa2_eth_dl_get_trap()
74 { .position = 67, .trap_id = DEVLINK_TRAP_GENERIC_ID_GRE_PARSING }, in dpaa2_eth_dl_get_trap()
75 { .position = 71, .trap_id = DEVLINK_TRAP_GENERIC_ID_UDP_PARSING }, in dpaa2_eth_dl_get_trap()
76 { .position = 76, .trap_id = DEVLINK_TRAP_GENERIC_ID_TCP_PARSING }, in dpaa2_eth_dl_get_trap()
80 { .position = 88, .trap_id = DEVLINK_TRAP_GENERIC_ID_GTP_PARSING }, in dpaa2_eth_dl_get_trap()
81 { .position = 90, .trap_id = DEVLINK_TRAP_GENERIC_ID_ESP_PARSING }, in dpaa2_eth_dl_get_trap()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtrap.c218 static int mlx5e_handle_action_trap(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_trap() argument
231 switch (trap_id) { in mlx5e_handle_action_trap()
238 err = mlx5e_add_mac_trap(priv->fs, trap_id, mlx5e_trap_get_tirn(priv->en_trap)); in mlx5e_handle_action_trap()
243 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_trap()
255 static int mlx5e_handle_action_drop(struct mlx5e_priv *priv, int trap_id) in mlx5e_handle_action_drop() argument
257 switch (trap_id) { in mlx5e_handle_action_drop()
265 netdev_warn(priv->netdev, "%s: Unknown trap id %d\n", __func__, trap_id); in mlx5e_handle_action_drop()
301 static int mlx5e_apply_trap(struct mlx5e_priv *priv, int trap_id, bool enable) in mlx5e_apply_trap() argument
306 err = mlx5_devlink_traps_get_action(priv->mdev, trap_id, &action); in mlx5e_apply_trap()
310 err = enable ? mlx5e_handle_action_trap(priv, trap_id) : in mlx5e_apply_trap()
[all …]
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);
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Ddevlink.h34 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb,
37 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id,
A Ddevlink.c216 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
221 if (dl_trap->trap.id == trap_id) in mlx5_find_trap_by_id()
346 void mlx5_devlink_trap_report(struct mlx5_core_dev *dev, int trap_id, struct sk_buff *skb, in mlx5_devlink_trap_report() argument
352 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_trap_report()
354 mlx5_core_err(dev, "Devlink trap: Report on invalid trap id 0x%x", trap_id); in mlx5_devlink_trap_report()
359 mlx5_core_dbg(dev, "Devlink trap: Trap id %d has action %d", trap_id, in mlx5_devlink_trap_report()
378 int mlx5_devlink_traps_get_action(struct mlx5_core_dev *dev, int trap_id, in mlx5_devlink_traps_get_action() argument
383 dl_trap = mlx5_find_trap_by_id(dev, trap_id); in mlx5_devlink_traps_get_action()
386 trap_id); in mlx5_devlink_traps_get_action()
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()
414 int mlx5e_add_mac_trap(struct mlx5e_flow_steering *fs, int trap_id, int tir_num) in mlx5e_add_mac_trap() argument
420 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num); in mlx5e_add_mac_trap()
A Den_rx.c2575 u16 trap_id; in mlx5e_trap_handle_rx_cqe() local
2578 trap_id = get_cqe_flow_tag(cqe); in mlx5e_trap_handle_rx_cqe()
2595 mlx5_devlink_trap_report(rq->mdev, trap_id, skb, in mlx5e_trap_handle_rx_cqe()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
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
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.c2419 rxl_a->trap_id == rxl_b->trap_id && in __is_rx_listener_equal()
2513 el_a->trap_id == el_b->trap_id); in __is_event_listener_equal()
2538 .trap_id = el->trap_id, in mlxsw_core_event_listener_register()
2575 .trap_id = el->trap_id, in mlxsw_core_event_listener_unregister()
2635 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_register()
2660 listener->trap_id, listener->dis_trap_group, in mlxsw_core_trap_unregister()
2724 mlxsw_reg_hpkt_pack(hpkt_pl, action, listener->trap_id, in mlxsw_core_trap_state_set()
3019 rx_info->trap_id); in mlxsw_core_skb_receive()
3031 __func__, local_port, rx_info->trap_id); in mlxsw_core_skb_receive()
3033 if ((rx_info->trap_id >= MLXSW_TRAP_ID_MAX) || in mlxsw_core_skb_receive()
[all …]
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()
A Dpci.c657 rx_info.trap_id = mlxsw_pci_cqe_trap_id_get(cqe); in mlxsw_pci_cqe_rdq_handle()
659 if (rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_INGRESS_ACL || in mlxsw_pci_cqe_rdq_handle()
660 rx_info.trap_id == MLXSW_TRAP_ID_DISCARD_EGRESS_ACL) { in mlxsw_pci_cqe_rdq_handle()
666 } else if (rx_info.trap_id >= MLXSW_TRAP_ID_MIRROR_SESSION0 && in mlxsw_pci_cqe_rdq_handle()
667 rx_info.trap_id <= MLXSW_TRAP_ID_MIRROR_SESSION7 && in mlxsw_pci_cqe_rdq_handle()
671 } else if (rx_info.trap_id == MLXSW_TRAP_ID_PKT_SAMPLE && in mlxsw_pci_cqe_rdq_handle()
A Dpci_hw.h185 MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10);
A Dreg.h6527 MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 10);
6553 mlxsw_reg_hpkt_trap_id_set(payload, trap_id); in mlxsw_reg_hpkt_pack()
7271 MLXSW_ITEM32(reg, ratr, trap_id, 0x0C, 0, 8);
7910 MLXSW_ITEM32(reg, ralue, trap_id, 0x20, 0, 9);
8007 u16 trap_id, u16 local_erif) in mlxsw_reg_ralue_act_local_pack() argument
8130 MLXSW_ITEM32(reg, rauht, trap_id, 0x60, 0, 9);
10962 enum mlxsw_reg_mtptpt_trap_id trap_id, in mlxsw_reg_mtptpt_pack() argument
12180 MLXSW_ITEM32(reg, tndem, trap_id, 0x08, 0, 9);
12184 u16 trap_id) in mlxsw_reg_tndem_pack() argument
12334 MLXSW_ITEM32(reg, tidem, trap_id, 0x08, 0, 9);
[all …]
A Dspectrum_ptp.c872 enum mlxsw_reg_mtptpt_trap_id trap_id, in mlxsw_sp_ptp_mtptpt_set() argument
877 mlxsw_reg_mtptpt_pack(mtptpt_pl, trap_id, message_type); in mlxsw_sp_ptp_mtptpt_set()
A Dspectrum_router.c5743 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_remote() local
5761 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_remote()
5765 mlxsw_reg_ralue_act_remote_pack(ralue_pl, trap_action, trap_id, in mlxsw_sp_fib_entry_op_remote()
5777 u16 trap_id = 0; in mlxsw_sp_fib_entry_op_local() local
5785 trap_id = MLXSW_TRAP_ID_RTR_INGRESS0; in mlxsw_sp_fib_entry_op_local()
5789 mlxsw_reg_ralue_act_local_pack(ralue_pl, trap_action, trap_id, in mlxsw_sp_fib_entry_op_local()
5825 u16 trap_id; in mlxsw_sp_fib_entry_op_unreachable() local
5828 trap_id = MLXSW_TRAP_ID_RTR_INGRESS1; in mlxsw_sp_fib_entry_op_unreachable()
5831 mlxsw_reg_ralue_act_local_pack(ralue_pl, trap_action, trap_id, 0); in mlxsw_sp_fib_entry_op_unreachable()
A Dspectrum_trap.c1443 return listener->trap_id != 0; in mlxsw_sp_trap_listener_is_valid()
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
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()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_device_queue_manager.h52 uint32_t trap_id:3; member
/linux-6.3-rc2/drivers/net/netdevsim/
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()

Completed in 99 milliseconds