/kernel/linux/linux-6.6/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 in mlx5e_mod_hdr_attach() [all...] |
H A D | mod_hdr.h | 15 int num_actions; member
|
/kernel/linux/linux-5.10/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() 76 int num_actions, actions_size, err; in mlx5e_mod_hdr_attach() local 81 num_actions = mod_hdr_acts->num_actions; in mlx5e_mod_hdr_attach() 82 actions_size = MLX5_MH_ACT_SZ * num_actions; in mlx5e_mod_hdr_attach() 85 key.num_actions in mlx5e_mod_hdr_attach() [all...] |
H A D | mod_hdr.h | 13 int num_actions; member
|
/kernel/linux/linux-6.6/lib/kunit/ |
H A D | kunit-test.c | 414 int num_actions = 0; in kunit_resource_test_action() local 416 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action() 417 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_action() 419 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action() 423 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action() 426 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action() 427 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action() 429 KUNIT_EXPECT_EQ(test, num_actions, 3); in kunit_resource_test_action() 433 int num_actions = 0; in kunit_resource_test_remove_action() local 435 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_remove_action() 444 int num_actions = 0; kunit_resource_test_release_action() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | fs_dr.c | 237 int num_actions = 0; in mlx5_cmd_dr_create_fte() local 296 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 304 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 318 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 329 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 333 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 343 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 353 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 357 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 380 actions[num_actions in mlx5_cmd_dr_create_fte() 570 mlx5_cmd_dr_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) mlx5_cmd_dr_modify_header_alloc() argument [all...] |
H A D | dr_rule.c | 543 size_t num_actions, in dr_rule_add_action_members() 549 for (i = 0; i < num_actions; i++) { in dr_rule_add_action_members() 1017 size_t num_actions, in dr_rule_create_rule_nic() 1062 num_actions, hw_ste_arr, in dr_rule_create_rule_nic() 1142 size_t num_actions, in dr_rule_create_rule_fdb() 1154 num_actions, actions); in dr_rule_create_rule_fdb() 1159 num_actions, actions); in dr_rule_create_rule_fdb() 1173 size_t num_actions, in dr_rule_create_rule() 1193 ret = dr_rule_add_action_members(rule, num_actions, actions); in dr_rule_create_rule() 1201 num_actions, action in dr_rule_create_rule() 542 dr_rule_add_action_members(struct mlx5dr_rule *rule, size_t num_actions, struct mlx5dr_action *actions[]) dr_rule_add_action_members() argument 1014 dr_rule_create_rule_nic(struct mlx5dr_rule *rule, struct mlx5dr_rule_rx_tx *nic_rule, struct mlx5dr_match_param *param, size_t num_actions, struct mlx5dr_action *actions[]) dr_rule_create_rule_nic() argument 1140 dr_rule_create_rule_fdb(struct mlx5dr_rule *rule, struct mlx5dr_match_param *param, size_t num_actions, struct mlx5dr_action *actions[]) dr_rule_create_rule_fdb() argument 1171 dr_rule_create_rule(struct mlx5dr_matcher *matcher, struct mlx5dr_match_parameters *value, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) dr_rule_create_rule() argument 1232 mlx5dr_rule_create(struct mlx5dr_matcher *matcher, struct mlx5dr_match_parameters *value, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) mlx5dr_rule_create() argument [all...] |
H A D | fs_dr.h | 25 int num_actions; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
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() 346 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 360 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 371 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 375 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 385 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 395 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte() 399 actions[num_actions++] = in mlx5_cmd_dr_create_fte() 422 actions[num_actions in mlx5_cmd_dr_create_fte() 684 mlx5_cmd_dr_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) 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() 595 for (i = 0; i < num_actions; i++) { in dr_rule_add_action_members() 1116 size_t num_actions, in dr_rule_create_rule_nic() 1174 num_actions, hw_ste_arr, in dr_rule_create_rule_nic() 1258 size_t num_actions, in dr_rule_create_rule_fdb() 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() 1309 ret = dr_rule_add_action_members(rule, num_actions, actions); in dr_rule_create_rule() 1317 num_actions, action in dr_rule_create_rule() 588 dr_rule_add_action_members(struct mlx5dr_rule *rule, size_t num_actions, struct mlx5dr_action *actions[]) dr_rule_add_action_members() argument 1113 dr_rule_create_rule_nic(struct mlx5dr_rule *rule, struct mlx5dr_rule_rx_tx *nic_rule, struct mlx5dr_match_param *param, size_t num_actions, struct mlx5dr_action *actions[]) dr_rule_create_rule_nic() argument 1256 dr_rule_create_rule_fdb(struct mlx5dr_rule *rule, struct mlx5dr_match_param *param, size_t num_actions, struct mlx5dr_action *actions[]) dr_rule_create_rule_fdb() argument 1287 dr_rule_create_rule(struct mlx5dr_matcher *matcher, struct mlx5dr_match_parameters *value, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) dr_rule_create_rule() argument 1350 mlx5dr_rule_create(struct mlx5dr_matcher *matcher, struct mlx5dr_match_parameters *value, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) mlx5dr_rule_create() argument [all...] |
H A D | fs_dr.h | 21 int num_actions; member
|
/kernel/linux/linux-6.6/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() 60 return mlx5dr_rule_create(matcher, &value, num_actions, actions, flow_source); in mlx5_smfs_rule_create() 51 mlx5_smfs_rule_create(struct mlx5dr_matcher *matcher, struct mlx5_flow_spec *spec, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) mlx5_smfs_rule_create() argument
|
H A D | smfs.h | 30 size_t num_actions, struct mlx5dr_action *actions[],
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | ct_fs_smfs.c | 304 int num_actions = 0, err; in mlx5_ct_fs_smfs_ct_rule_add() local 320 actions[num_actions++] = smfs_rule->count_action; in mlx5_ct_fs_smfs_ct_rule_add() 321 actions[num_actions++] = attr->modify_hdr->action.dr_action; in mlx5_ct_fs_smfs_ct_rule_add() 322 actions[num_actions++] = fs_smfs->fwd_action; in mlx5_ct_fs_smfs_ct_rule_add() 337 rule = mlx5_smfs_rule_create(smfs_matcher->dr_matcher, spec, num_actions, actions, in mlx5_ct_fs_smfs_ct_rule_add()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_tables_offload.c | 12 static struct nft_flow_rule *nft_flow_rule_alloc(int num_actions) in nft_flow_rule_alloc() argument 20 flow->rule = flow_rule_alloc(num_actions); in nft_flow_rule_alloc() 94 int num_actions = 0, err; in nft_flow_rule_create() local 101 num_actions++; in nft_flow_rule_create() 106 if (num_actions == 0) in nft_flow_rule_create() 109 flow = nft_flow_rule_alloc(num_actions); in nft_flow_rule_create()
|
H A D | nf_dup_netdev.c | 67 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_fwd_dup_netdev_offload()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/core/ |
H A D | flow_offload.c | 9 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc() argument 14 rule = kzalloc(struct_size(rule, action.entries, num_actions), in flow_rule_alloc() 19 rule->action.num_entries = num_actions; in flow_rule_alloc() 23 for (i = 0; i < num_actions; i++) in flow_rule_alloc()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_cmd.c | 126 u8 namespace, u8 num_actions, in mlx5_cmd_stub_modify_header_alloc() 757 u8 namespace, u8 num_actions, in mlx5_cmd_modify_header_alloc() 797 if (num_actions > max_actions) { in mlx5_cmd_modify_header_alloc() 799 num_actions, max_actions); in mlx5_cmd_modify_header_alloc() 803 actions_size = MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto) * num_actions; in mlx5_cmd_modify_header_alloc() 813 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc() 125 mlx5_cmd_stub_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) mlx5_cmd_stub_modify_header_alloc() argument 756 mlx5_cmd_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) mlx5_cmd_modify_header_alloc() argument
|
H A D | fs_cmd.h | 90 u8 namespace, u8 num_actions,
|
/kernel/linux/linux-6.6/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),
|
/kernel/linux/linux-5.10/drivers/counter/ |
H A D | counter.c | 574 const size_t num_actions = synapse->num_actions; in counter_action_store() local 581 for (action_index = 0; action_index < num_actions; action_index++) { in counter_action_store() 587 if (action_index >= num_actions) in counter_action_store() 601 size_t num_actions; member 613 for (i = 0; i < component->num_actions; i++) { in counter_synapse_action_available_show() 676 avail_comp->num_actions = synapse->num_actions; in counter_synapses_register()
|