Home
last modified time | relevance | path

Searched refs:parse_state (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
A Dct.c17 if (parse_state->ct && !clear_action) { in tc_act_can_offload_ct()
35 if (clear_action && parse_state->ct_clear) in tc_act_parse_ct()
40 act, parse_state->extack); in tc_act_parse_ct()
45 if (mlx5e_is_eswitch_flow(parse_state->flow)) in tc_act_parse_ct()
49 parse_state->ct_clear = true; in tc_act_parse_ct()
52 flow_flag_set(parse_state->flow, CT); in tc_act_parse_ct()
53 parse_state->ct = true; in tc_act_parse_ct()
68 if (parse_state->ct) in tc_act_post_parse_ct()
71 if (parse_state->ct_clear) { in tc_act_post_parse_ct()
74 NL_SET_ERR_MSG_MOD(parse_state->extack, in tc_act_post_parse_ct()
[all …]
A Dmirred.c129 if (parse_state->eth_pop && !parse_state->mpls_push) { in tc_act_can_offload_mirred()
134 if (flow_flag_test(parse_state->flow, L3_TO_L2_DECAP) && !parse_state->eth_push) { in tc_act_can_offload_mirred()
156 if (parse_state->encap || in tc_act_can_offload_mirred()
191 parse_state->encap = false; in parse_mirred_encap()
193 if (parse_state->mpls_push) { in parse_mirred_encap()
195 &parse_state->mpls_info, sizeof(parse_state->mpls_info)); in parse_mirred_encap()
196 parse_state->mpls_push = false; in parse_mirred_encap()
225 ifindexes = parse_state->ifindexes; in parse_mirred()
226 if_count = parse_state->if_count; in parse_mirred()
232 parse_state->if_count++; in parse_mirred()
[all …]
A Dmpls.c9 tc_act_can_offload_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mpls_push() argument
14 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mpls_push()
15 struct mlx5e_priv *priv = parse_state->flow->priv; in tc_act_can_offload_mpls_push()
37 tc_act_parse_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mpls_push() argument
42 parse_state->mpls_push = true; in tc_act_parse_mpls_push()
43 copy_mpls_info(&parse_state->mpls_info, act); in tc_act_parse_mpls_push()
49 tc_act_can_offload_mpls_pop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mpls_pop() argument
54 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mpls_pop()
65 if ((act_index == 1 && !parse_state->decap) || act_index > 1) { in tc_act_can_offload_mpls_pop()
79 tc_act_parse_mpls_pop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mpls_pop() argument
[all …]
A Dtun.c9 tc_act_can_offload_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_tun_encap() argument
15 NL_SET_ERR_MSG_MOD(parse_state->extack, in tc_act_can_offload_tun_encap()
24 tc_act_parse_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_tun_encap() argument
29 parse_state->tun_info = act->tunnel; in tc_act_parse_tun_encap()
30 parse_state->encap = true; in tc_act_parse_tun_encap()
36 tc_act_can_offload_tun_decap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_tun_decap() argument
45 tc_act_parse_tun_decap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_tun_decap() argument
50 parse_state->decap = true; in tc_act_parse_tun_decap()
A Dgoto.c60 tc_act_can_offload_goto(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_goto() argument
65 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_goto()
66 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_goto()
75 tc_act_parse_goto(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_goto() argument
87 tc_act_post_parse_goto(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_post_parse_goto() argument
92 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_post_parse_goto()
93 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_post_parse_goto()
98 if (parse_state->decap) { in tc_act_post_parse_goto()
A Dact.c74 mlx5e_tc_act_init_parse_state(struct mlx5e_tc_act_parse_state *parse_state, in mlx5e_tc_act_init_parse_state() argument
79 memset(parse_state, 0, sizeof(*parse_state)); in mlx5e_tc_act_init_parse_state()
80 parse_state->flow = flow; in mlx5e_tc_act_init_parse_state()
81 parse_state->extack = extack; in mlx5e_tc_act_init_parse_state()
82 parse_state->flow_action = flow_action; in mlx5e_tc_act_init_parse_state()
106 mlx5e_tc_act_post_parse(struct mlx5e_tc_act_parse_state *parse_state, in mlx5e_tc_act_post_parse() argument
116 priv = parse_state->flow->priv; in mlx5e_tc_act_post_parse()
123 err = tc_act->post_parse(parse_state, priv, attr); in mlx5e_tc_act_post_parse()
A Dvlan.c38 struct mlx5e_tc_act_parse_state *parse_state) in parse_tc_vlan_action() argument
72 parse_state->eth_pop = true; in parse_tc_vlan_action()
75 if (!flow_flag_test(parse_state->flow, L3_TO_L2_DECAP)) in parse_tc_vlan_action()
77 parse_state->eth_push = true; in parse_tc_vlan_action()
145 tc_act_can_offload_vlan(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_vlan() argument
154 tc_act_parse_vlan(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_vlan() argument
168 parse_state->extack); in tc_act_parse_vlan()
171 parse_state->extack, parse_state); in tc_act_parse_vlan()
183 tc_act_post_parse_vlan(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_post_parse_vlan() argument
188 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_post_parse_vlan()
A Dmirred_nic.c8 tc_act_can_offload_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mirred_nic() argument
13 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mirred_nic()
14 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_mirred_nic()
36 tc_act_parse_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mirred_nic() argument
42 flow_flag_set(parse_state->flow, HAIRPIN); in tc_act_parse_mirred_nic()
A Dsample.c10 tc_act_can_offload_sample(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_sample() argument
15 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_sample()
20 if (flow_flag_test(parse_state->flow, CT) && ct_nat) { in tc_act_can_offload_sample()
29 tc_act_parse_sample(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_sample() argument
43 flow_flag_set(parse_state->flow, SAMPLE); in tc_act_parse_sample()
A Dptype.c8 tc_act_can_offload_ptype(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_ptype() argument
17 tc_act_parse_ptype(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_ptype() argument
22 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_parse_ptype()
29 parse_state->ptype_host = true; in tc_act_parse_ptype()
A Dcsum.c39 tc_act_can_offload_csum(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_csum() argument
44 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_csum()
47 act->csum_flags, parse_state->extack); in tc_act_can_offload_csum()
51 tc_act_parse_csum(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_csum() argument
A Dredirect_ingress.c8 tc_act_can_offload_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_redirect_ingress() argument
13 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_redirect_ingress()
36 if (!parse_state->ptype_host) { in tc_act_can_offload_redirect_ingress()
52 tc_act_parse_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_redirect_ingress() argument
A Dact.h41 bool (*can_offload)(struct mlx5e_tc_act_parse_state *parse_state,
46 int (*parse_action)(struct mlx5e_tc_act_parse_state *parse_state,
51 int (*post_parse)(struct mlx5e_tc_act_parse_state *parse_state,
108 mlx5e_tc_act_init_parse_state(struct mlx5e_tc_act_parse_state *parse_state,
118 mlx5e_tc_act_post_parse(struct mlx5e_tc_act_parse_state *parse_state,
A Dmark.c8 tc_act_can_offload_mark(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mark() argument
14 NL_SET_ERR_MSG_MOD(parse_state->extack, "Bad flow mark, only 16 bit supported"); in tc_act_can_offload_mark()
22 tc_act_parse_mark(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mark() argument
A Dvlan_mangle.c54 tc_act_can_offload_vlan_mangle(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_vlan_mangle() argument
63 tc_act_parse_vlan_mangle(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_vlan_mangle() argument
71 ns_type = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_vlan_mangle()
73 &attr->action, parse_state->extack); in tc_act_parse_vlan_mangle()
A Dpedit.c82 tc_act_can_offload_pedit(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_pedit() argument
91 tc_act_parse_pedit(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_pedit() argument
97 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_parse_pedit()
104 parse_state->extack); in tc_act_parse_pedit()
A Dpolice.c41 tc_act_can_offload_police(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_police() argument
48 err = police_act_validate(act, parse_state->extack); in tc_act_can_offload_police()
52 return !!mlx5e_get_flow_meters(parse_state->flow->priv->mdev); in tc_act_can_offload_police()
79 tc_act_parse_police(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_police() argument
84 enum mlx5_flow_namespace_type ns = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_police()
A Ddrop.c8 tc_act_can_offload_drop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_drop() argument
17 tc_act_parse_drop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_drop() argument
/linux-6.3-rc2/tools/perf/util/
A Dparse-events-hybrid.c76 static int pmu_cmp(struct parse_events_state *parse_state, in pmu_cmp() argument
79 if (parse_state->evlist && parse_state->evlist->hybrid_pmu_name) in pmu_cmp()
82 if (parse_state->hybrid_pmu_name) in pmu_cmp()
83 return strcmp(parse_state->hybrid_pmu_name, pmu->name); in pmu_cmp()
88 static int add_hw_hybrid(struct parse_events_state *parse_state, in add_hw_hybrid() argument
99 if (pmu_cmp(parse_state, pmu)) in add_hw_hybrid()
104 &parse_state->idx, list, attr, name, in add_hw_hybrid()
145 if (pmu_cmp(parse_state, pmu)) in add_raw_hybrid()
149 ret = create_raw_event_hybrid(&parse_state->idx, list, attr, in add_raw_hybrid()
189 struct parse_events_state *parse_state) in parse_events__add_cache_hybrid() argument
[all …]
A Dparse-events.y53 struct parse_events_state *parse_state) in inc_group_count() argument
57 parse_state->nr_groups++; in inc_group_count()
146 struct parse_events_state *parse_state = _parse_state; variable
149 parse_events_update_lists($1, &parse_state->list);
292 struct parse_events_state *parse_state = _parse_state; variable
293 struct parse_events_error *error = parse_state->error;
495 parse_state);
517 parse_state);
538 parse_state);
758 if (parse_state->terms) {
[all …]
A Dparse-events.c437 &hybrid, parse_state); in parse_events_add_cache()
611 struct parse_events_state *parse_state = param->parse_state; in add_bpf_event() local
629 event, parse_state->error, in add_bpf_event()
1546 if (!parse_state->fake_pmu && perf_pmu__config(pmu, &attr, head_config, parse_state->error)) { in parse_events_add_pmu()
1565 if (parse_state->fake_pmu) in parse_events_add_pmu()
1634 if (parse_state->fake_pmu) { in parse_events_multi_pmu_add()
1729 parse_state->nr_groups--; in parse_events__set_leader_for_uncore_aliase()
1760 parse_state->nr_groups += nr_pmu - 1; in parse_events__set_leader_for_uncore_aliase()
2212 zfree(&parse_state.terms); in parse_events_terms()
2238 parse_state->idx = ps.idx; in parse_events__with_hybrid_pmu()
[all …]
A Dparse-events.h158 int parse_events_load_bpf(struct parse_events_state *parse_state,
165 int parse_events_load_bpf_obj(struct parse_events_state *parse_state,
169 int parse_events_add_numeric(struct parse_events_state *parse_state,
173 int parse_events_add_tool(struct parse_events_state *parse_state,
180 struct parse_events_state *parse_state);
183 int parse_events_add_pmu(struct parse_events_state *parse_state,
193 int parse_events_multi_pmu_add(struct parse_events_state *parse_state,
204 struct parse_events_state *parse_state);
207 void parse_events_evlist_error(struct parse_events_state *parse_state,
A Dparse-events-hybrid.h11 int parse_events__add_numeric_hybrid(struct parse_events_state *parse_state,
23 struct parse_events_state *parse_state);
/linux-6.3-rc2/tools/perf/tests/
A Dbpf.c119 struct parse_events_state parse_state; in do_test() local
123 bzero(&parse_state, sizeof(parse_state)); in do_test()
124 parse_state.error = &parse_error; in do_test()
125 INIT_LIST_HEAD(&parse_state.list); in do_test()
127 err = parse_events_load_bpf_obj(&parse_state, &parse_state.list, obj, NULL); in do_test()
133 if (err || list_empty(&parse_state.list)) { in do_test()
155 evlist__splice_list_tail(evlist, &parse_state.list); in do_test()
156 evlist->core.nr_groups = parse_state.nr_groups; in do_test()
/linux-6.3-rc2/drivers/cpuidle/
A Ddt_idle_genpd.c25 int (*parse_state)(struct device_node *, u32 *), in pd_parse_state_nodes()
32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes()
55 int (*parse_state)(struct device_node *, u32 *), in pd_parse_states()
67 ret = pd_parse_state_nodes(parse_state, *states, *state_count); in pd_parse_states()
92 int (*parse_state)(struct device_node *, u32 *)) in dt_idle_pd_alloc()
110 ret = pd_parse_states(np, parse_state, &states, &state_count); in dt_idle_pd_alloc()

Completed in 44 milliseconds

12