Lines Matching refs:nsim_trap_item
644 struct nsim_trap_item { struct
651 struct nsim_trap_item *trap_items_arr; argument
794 struct nsim_trap_item *nsim_trap_item; in nsim_dev_trap_report() local
801 nsim_trap_item = &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_report()
802 if (nsim_trap_item->action == DEVLINK_TRAP_ACTION_DROP) in nsim_dev_trap_report()
818 devlink_trap_report(devlink, skb, nsim_trap_item->trap_ctx, in nsim_dev_trap_report()
872 sizeof(struct nsim_trap_item), in nsim_dev_traps_init()
1048 static struct nsim_trap_item *
1067 struct nsim_trap_item *nsim_trap_item; in nsim_dev_devlink_trap_init() local
1069 nsim_trap_item = nsim_dev_trap_item_lookup(nsim_dev, trap->id); in nsim_dev_devlink_trap_init()
1070 if (WARN_ON(!nsim_trap_item)) in nsim_dev_devlink_trap_init()
1073 nsim_trap_item->trap_ctx = trap_ctx; in nsim_dev_devlink_trap_init()
1074 nsim_trap_item->action = trap->init_action; in nsim_dev_devlink_trap_init()
1086 struct nsim_trap_item *nsim_trap_item; in nsim_dev_devlink_trap_action_set() local
1088 nsim_trap_item = nsim_dev_trap_item_lookup(nsim_dev, trap->id); in nsim_dev_devlink_trap_action_set()
1089 if (WARN_ON(!nsim_trap_item)) in nsim_dev_devlink_trap_action_set()
1093 nsim_trap_item->action = action; in nsim_dev_devlink_trap_action_set()