/linux/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/lib/kunit/ |
H A D | kunit-test.c | 461 int num_actions = 0; in kunit_resource_test_action() local 463 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action() 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() 473 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action() 474 kunit_add_action(test, increment_int, &num_actions); 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 482 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_remove_action() [all …]
|
/linux/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/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()
|
/linux/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()
|
H A D | nft_immediate.c | 282 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_immediate_offload_verdict()
|
/linux/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 | microchip-tcb-capture.c | 58 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions), 63 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
|
H A D | i8254.c | 342 .num_actions = ARRAY_SIZE(i8254_clk_actions), \ 347 .num_actions = ARRAY_SIZE(i8254_gate_actions), \
|
H A D | stm32-lptimer-cnt.c | 376 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions), 381 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
|
H A D | ti-eqep.c | 405 .num_actions = ARRAY_SIZE(ti_eqep_position_synapse_actions), 410 .num_actions = ARRAY_SIZE(ti_eqep_position_synapse_actions),
|
H A D | ti-ecap-capture.c | 405 .num_actions = ARRAY_SIZE(ecap_cnt_clock_actions), 410 .num_actions = ARRAY_SIZE(ecap_cnt_input_actions),
|
H A D | interrupt-cnt.c | 206 priv->synapses.num_actions = ARRAY_SIZE(interrupt_cnt_synapse_actions); in interrupt_cnt_probe()
|
H A D | 104-quad-8.c | 1121 .num_actions = ARRAY_SIZE(quad8_synapse_actions_list), \ 1126 .num_actions = ARRAY_SIZE(quad8_synapse_actions_list), \ 1131 .num_actions = ARRAY_SIZE(quad8_index_actions_list), \
|
H A D | intel-qep.c | 165 .num_actions = ARRAY_SIZE(intel_qep_synapse_actions), \
|
H A D | counter-sysfs.c | 257 synapse->num_actions, buf, in counter_comp_u32_store() 520 synapse->num_actions, in counter_comp_available_show()
|
/linux/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/include/net/netfilter/ |
H A D | nf_tables_offload.h | 33 unsigned int num_actions; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_cmd.h | 88 u8 namespace, u8 num_actions,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | indir_table.c | 131 mod_acts.num_actions, mod_acts.actions); in mlx5_esw_indir_table_rule_get()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | sample.c | 245 mod_acts->num_actions, in sample_modify_hdr_get()
|