| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | mod_hdr.c | 10 int num_actions; member 30 key->num_actions * MLX5_MH_ACT_SZ, 0); in hash_mod_hdr_info() 35 if (a->num_actions != b->num_actions) in cmp_mod_hdr_info() 39 a->num_actions * MLX5_MH_ACT_SZ); in cmp_mod_hdr_info() 77 int num_actions, actions_size, err; in mlx5e_mod_hdr_attach() local 82 num_actions = mod_hdr_acts->num_actions; in mlx5e_mod_hdr_attach() 83 actions_size = MLX5_MH_ACT_SZ * num_actions; in mlx5e_mod_hdr_attach() 86 key.num_actions = num_actions; in mlx5e_mod_hdr_attach() 111 mh->key.num_actions = num_actions; in mlx5e_mod_hdr_attach() 119 mh->key.num_actions, in mlx5e_mod_hdr_attach() [all …]
|
| H A D | mod_hdr.h | 15 int num_actions; member
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | fs_dr.c | 270 int num_actions = 0; in mlx5_cmd_dr_create_fte() local 330 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 347 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 361 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 372 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 388 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 398 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 424 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 601 num_actions, in mlx5_cmd_dr_create_fte() 691 u8 namespace, u8 num_actions, in mlx5_cmd_dr_modify_header_alloc() argument [all …]
|
| H A D | dr_rule.c | 589 size_t num_actions, in dr_rule_add_action_members() argument 1116 size_t num_actions, in dr_rule_create_rule_nic() argument 1174 num_actions, hw_ste_arr, in dr_rule_create_rule_nic() 1258 size_t num_actions, in dr_rule_create_rule_fdb() argument 1270 num_actions, actions); in dr_rule_create_rule_fdb() 1275 num_actions, actions); in dr_rule_create_rule_fdb() 1289 size_t num_actions, in dr_rule_create_rule() argument 1317 num_actions, actions); in dr_rule_create_rule() 1322 num_actions, actions); in dr_rule_create_rule() 1328 num_actions, actions); in dr_rule_create_rule() [all …]
|
| H A D | fs_dr.h | 21 int num_actions; member
|
| /linux-6.15/lib/kunit/ |
| H A D | kunit-test.c | 461 int num_actions = 0; in kunit_resource_test_action() local 464 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_action() 466 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action() 470 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action() 476 KUNIT_EXPECT_EQ(test, num_actions, 3); in kunit_resource_test_action() 480 int num_actions = 0; in kunit_resource_test_remove_action() local 483 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_remove_action() 487 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_remove_action() 491 int num_actions = 0; in kunit_resource_test_release_action() local 494 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_release_action() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | fs_hws.c | 760 int num_actions = 0; in mlx5_fs_fte_get_hws_actions() local 813 (*ractions)[num_actions++].action = in mlx5_fs_fte_get_hws_actions() 816 (*ractions)[num_actions++].action = in mlx5_fs_fte_get_hws_actions() 845 (*ractions)[num_actions++].action = in mlx5_fs_fte_get_hws_actions() 855 (*ractions)[num_actions].push_vlan.vlan_hdr = in mlx5_fs_fte_get_hws_actions() 866 (*ractions)[num_actions].push_vlan.vlan_hdr = in mlx5_fs_fte_get_hws_actions() 875 (*ractions)[num_actions++].action = in mlx5_fs_fte_get_hws_actions() 899 (*ractions)[num_actions].counter.offset = in mlx5_fs_fte_get_hws_actions() 934 (*ractions)[num_actions].aso_meter.offset = in mlx5_fs_fte_get_hws_actions() 1049 (*ractions)[num_actions++].action = tmp_action; in mlx5_fs_fte_get_hws_actions() [all …]
|
| H A D | pat_arg.c | 525 void mlx5hws_pat_calc_nope(__be64 *pattern, size_t num_actions, in mlx5hws_pat_calc_nope() argument 534 *new_size = num_actions; in mlx5hws_pat_calc_nope() 537 if (num_actions == 1) in mlx5hws_pat_calc_nope() 540 for (i = 0, j = 0; i < num_actions; i++, j++) { in mlx5hws_pat_calc_nope() 570 *new_size = num_actions; in mlx5hws_pat_calc_nope()
|
| H A D | fs_hws_pools.c | 388 int num_actions, i; in mlx5_fs_hws_mh_pool_match() local 396 num_actions = pattern->sz / MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto); in mlx5_fs_hws_mh_pool_match() 397 for (i = 0; i < num_actions; i++) { in mlx5_fs_hws_mh_pool_match()
|
| H A D | pat_arg.h | 99 void mlx5hws_pat_calc_nope(__be64 *pattern, size_t num_actions, size_t max_actions,
|
| H A D | action.c | 1190 u16 num_actions, max_mh_actions = 0; in hws_action_create_modify_header_hws() local 1247 num_actions = pattern[i].sz / MLX5HWS_MODIFY_ACTION_SIZE; in hws_action_create_modify_header_hws() 1252 mlx5hws_pat_require_reparse(pattern[i].data, num_actions); in hws_action_create_modify_header_hws() 1254 if (num_actions == 1) { in hws_action_create_modify_header_hws() 2476 for (i = 0; i < at->num_actions; i++) { in mlx5hws_action_template_process() 2619 u8 num_actions = 0; in mlx5hws_action_template_create() local 2626 while (action_type[num_actions++] != MLX5HWS_ACTION_TYP_LAST) in mlx5hws_action_template_create() 2629 at->num_actions = num_actions - 1; in mlx5hws_action_template_create() 2630 at->action_type_arr = kcalloc(num_actions, sizeof(*action_type), GFP_KERNEL); in mlx5hws_action_template_create() 2634 for (i = 0; i < num_actions; i++) in mlx5hws_action_template_create()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | smfs.c | 52 size_t num_actions, struct mlx5dr_action *actions[], in mlx5_smfs_rule_create() argument 60 return mlx5dr_rule_create(matcher, &value, num_actions, actions, flow_source); in mlx5_smfs_rule_create()
|
| H A D | smfs.h | 30 size_t num_actions, struct mlx5dr_action *actions[],
|
| /linux-6.15/net/core/ |
| H A D | flow_offload.c | 10 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc() argument 15 rule = kzalloc(struct_size(rule, action.entries, num_actions), in flow_rule_alloc() 20 rule->action.num_entries = num_actions; in flow_rule_alloc() 24 for (i = 0; i < num_actions; i++) in flow_rule_alloc() 31 struct flow_offload_action *offload_action_alloc(unsigned int num_actions) in offload_action_alloc() argument 36 fl_action = kzalloc(struct_size(fl_action, action.entries, num_actions), in offload_action_alloc() 41 fl_action->action.num_entries = num_actions; in offload_action_alloc() 45 for (i = 0; i < num_actions; i++) in offload_action_alloc()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | ct_fs_smfs.c | 231 int num_actions = 0, err; in mlx5_ct_fs_smfs_ct_rule_add() local 247 actions[num_actions++] = smfs_rule->count_action; in mlx5_ct_fs_smfs_ct_rule_add() 248 actions[num_actions++] = attr->modify_hdr->fs_dr_action.dr_action; in mlx5_ct_fs_smfs_ct_rule_add() 249 actions[num_actions++] = fs_smfs->fwd_action; in mlx5_ct_fs_smfs_ct_rule_add() 264 rule = mlx5_smfs_rule_create(smfs_matcher->dr_matcher, spec, num_actions, actions, in mlx5_ct_fs_smfs_ct_rule_add()
|
| /linux-6.15/net/netfilter/ |
| H A D | nf_tables_offload.c | 10 static struct nft_flow_rule *nft_flow_rule_alloc(int num_actions) in nft_flow_rule_alloc() argument 18 flow->rule = flow_rule_alloc(num_actions); in nft_flow_rule_alloc() 93 int num_actions = 0, err; in nft_flow_rule_create() local 100 num_actions++; in nft_flow_rule_create() 105 if (num_actions == 0) in nft_flow_rule_create() 108 flow = nft_flow_rule_alloc(num_actions); in nft_flow_rule_create()
|
| H A D | nf_dup_netdev.c | 84 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_fwd_dup_netdev_offload()
|
| /linux-6.15/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_tc_u32.c | 94 unsigned int num_actions = 0; in fill_action_fields() local 105 if (num_actions) in fill_action_fields() 111 num_actions++; in fill_action_fields() 138 num_actions++; in fill_action_fields()
|
| /linux-6.15/drivers/counter/ |
| H A D | rz-mtu3-cnt.c | 720 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions), 725 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions), 733 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions), 738 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions), 743 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions), 748 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
|
| H A D | stm32-timer-cnt.c | 581 .num_actions = ARRAY_SIZE(stm32_synapse_actions), 586 .num_actions = ARRAY_SIZE(stm32_synapse_actions), 591 .num_actions = ARRAY_SIZE(stm32_clock_synapse_actions), 596 .num_actions = ARRAY_SIZE(stm32_synapse_actions), 601 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
|
| H A D | ftm-quaddec.c | 230 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions), 235 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
|
| H A D | stm32-lptimer-cnt.c | 382 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions), 387 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_cmd.c | 129 u8 namespace, u8 num_actions, in mlx5_cmd_stub_modify_header_alloc() argument 948 u8 namespace, u8 num_actions, in mlx5_cmd_modify_header_alloc() argument 990 if (num_actions > max_actions) { in mlx5_cmd_modify_header_alloc() 992 num_actions, max_actions); in mlx5_cmd_modify_header_alloc() 996 actions_size = MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto) * num_actions; in mlx5_cmd_modify_header_alloc() 1006 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
|
| H A D | fs_cmd.h | 88 u8 namespace, u8 num_actions,
|
| /linux-6.15/include/net/netfilter/ |
| H A D | nf_tables_offload.h | 33 unsigned int num_actions; member
|