Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Drule.c33 hws_rule_update_copy_tag(struct mlx5hws_rule *rule, in hws_rule_update_copy_tag() argument
39 if (!mlx5hws_matcher_is_resizable(rule->matcher)) { in hws_rule_update_copy_tag()
40 tag = &rule->tag; in hws_rule_update_copy_tag()
43 (struct mlx5hws_wqe_gta_data_seg_ste *)(void *)rule->resize_info->data_seg; in hws_rule_update_copy_tag()
54 struct mlx5hws_rule *rule, in hws_rule_init_dep_wqe() argument
58 struct mlx5hws_matcher *matcher = rule->matcher; in hws_rule_init_dep_wqe()
62 dep_wqe->rule = rule; in hws_rule_init_dep_wqe()
93 static void hws_rule_move_get_rtc(struct mlx5hws_rule *rule, in hws_rule_move_get_rtc() argument
96 struct mlx5hws_matcher *dst_matcher = rule->matcher->resize_dst; in hws_rule_move_get_rtc()
98 if (rule->resize_info->rtc_0) { in hws_rule_move_get_rtc()
[all …]
H A Dsend.c45 ste_attr.send_attr.rule = dep_wqe->rule; in mlx5hws_send_all_dep_wqe()
51 ste_attr.used_id_rtc_0 = &dep_wqe->rule->rtc_0; in mlx5hws_send_all_dep_wqe()
52 ste_attr.used_id_rtc_1 = &dep_wqe->rule->rtc_1; in mlx5hws_send_all_dep_wqe()
162 sq->wr_priv[idx].rule = attr->rule; in mlx5hws_send_engine_post_end()
166 if (attr->rule) { in mlx5hws_send_engine_post_end()
167 sq->wr_priv[idx].rule->pending_wqes++; in mlx5hws_send_engine_post_end()
262 send_attr.rule = priv->rule; in hws_send_engine_retry_post_send()
384 struct mlx5hws_rule *rule = priv->rule; hws_send_engine_dump_error_cqe() local
1316 struct mlx5hws_rule *rule = send_attr->rule; mlx5hws_send_stes_fw() local
[all...]
/linux/net/core/
H A Dfib_rules.c38 bool fib_rule_matchall(const struct fib_rule *rule) in fib_rule_matchall() argument
40 if (READ_ONCE(rule->iifindex) || READ_ONCE(rule->oifindex) || in fib_rule_matchall()
41 rule->mark || rule->tun_id || rule->flags) in fib_rule_matchall()
43 if (rule->suppress_ifgroup != -1 || rule->suppress_prefixlen != -1) in fib_rule_matchall()
45 if (!uid_eq(rule->uid_range.start, fib_kuid_range_unset.start) || in fib_rule_matchall()
46 !uid_eq(rule->uid_range.end, fib_kuid_range_unset.end)) in fib_rule_matchall()
48 if (fib_rule_port_range_set(&rule->sport_range)) in fib_rule_matchall()
50 if (fib_rule_port_range_set(&rule->dport_range)) in fib_rule_matchall()
84 struct fib_rule *rule; in fib_default_rule_pref() local
89 rule = list_entry(pos->next, struct fib_rule, list); in fib_default_rule_pref()
[all …]
H A Dflow_offload.c12 struct flow_rule *rule; in flow_rule_alloc() local
15 rule = kzalloc_flex(*rule, action.entries, num_actions); in flow_rule_alloc()
16 if (!rule) in flow_rule_alloc()
19 rule->action.num_entries = num_actions; in flow_rule_alloc()
24 rule->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in flow_rule_alloc()
26 return rule; in flow_rule_alloc()
56 void flow_rule_match_meta(const struct flow_rule *rule, in flow_rule_match_meta() argument
59 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_META, out); in flow_rule_match_meta()
63 void flow_rule_match_basic(const struct flow_rule *rule, in flow_rule_match_basic() argument
66 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_BASIC, out); in flow_rule_match_basic()
[all …]
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c9 struct tsnep_rxnfc_rule *rule) in tsnep_enable_rule() argument
15 rx_assign |= (rule->queue_index << TSNEP_RX_ASSIGN_QUEUE_SHIFT) & in tsnep_enable_rule()
19 TSNEP_RX_ASSIGN_ETHER_TYPE_OFFSET * rule->location; in tsnep_enable_rule()
20 iowrite16(rule->filter.ether_type, addr); in tsnep_enable_rule()
24 TSNEP_RX_ASSIGN_OFFSET * rule->location; in tsnep_enable_rule()
29 struct tsnep_rxnfc_rule *rule) in tsnep_disable_rule() argument
34 TSNEP_RX_ASSIGN_OFFSET * rule->location; in tsnep_disable_rule()
41 struct tsnep_rxnfc_rule *rule; in tsnep_get_rule() local
43 list_for_each_entry(rule, &adapter->rxnfc_rules, list) { in tsnep_get_rule()
44 if (rule->location == location) in tsnep_get_rule()
[all …]
/linux/scripts/gendwarfksyms/
H A Dkabi.c82 struct rule { struct
98 static inline unsigned int rule_hash(const struct rule *rule) in rule_hash() argument
100 return rule_values_hash(rule->type, rule->target); in rule_hash()
210 struct rule *rule; in kabi_read_rules() local
231 rule = xmalloc(sizeof(*rule)); in kabi_read_rules()
233 rule->type = type; in kabi_read_rules()
234 rule->target = xstrdup(get_rule_field(&rule_str, &left)); in kabi_read_rules()
235 rule->value = xstrdup(get_rule_field(&rule_str, &left)); in kabi_read_rules()
237 hash_add(rules, &rule->hash, rule_hash(rule)); in kabi_read_rules()
240 rule->target, rule->value); in kabi_read_rules()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c25 struct flow_rule *rule) in nfp_flower_compile_tci() argument
29 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_compile_tci()
32 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_tci()
54 struct flow_rule *rule, u8 key_type, bool qinq_sup) in nfp_flower_compile_meta_tci() argument
62 nfp_flower_compile_tci(ext, msk, rule); in nfp_flower_compile_meta_tci()
97 struct flow_rule *rule) in nfp_flower_compile_mac() argument
99 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in nfp_flower_compile_mac()
104 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
121 struct flow_rule *rule, in nfp_flower_compile_mpls() argument
124 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) { in nfp_flower_compile_mpls()
[all …]
H A Dconntrack.c26 static struct flow_action_entry *get_flow_act(struct flow_rule *rule,
58 struct flow_rule *rule = flow_cls_offload_flow_rule(flow); in is_pre_ct_flow() local
59 struct flow_dissector *dissector = rule->match.dissector; in is_pre_ct_flow()
65 flow_rule_match_ct(rule, &ct); in is_pre_ct_flow()
73 flow_action_for_each(i, act, &flow->rule->action) { in is_pre_ct_flow()
75 /* The pre_ct rule only have the ct or ct nat action, cannot in is_pre_ct_flow()
90 struct flow_rule *rule = flow_cls_offload_flow_rule(flow); in is_post_ct_flow() local
91 struct flow_dissector *dissector = rule->match.dissector; in is_post_ct_flow()
98 flow_rule_match_ct(rule, &ct); in is_post_ct_flow()
103 flow_action_for_each(i, act, &flow->rule in is_post_ct_flow()
135 get_mangled_key(struct flow_rule * rule,void * buf,u32 offset,size_t key_sz,enum flow_action_mangle_base htype) get_mangled_key() argument
172 get_mangled_tos_ttl(struct flow_rule * rule,void * buf,bool is_v6) get_mangled_tos_ttl() argument
484 nfp_ct_check_vlan_merge(struct flow_action_entry * a_in,struct flow_rule * rule) nfp_ct_check_vlan_merge() argument
1401 get_netdev_from_rule(struct flow_rule * rule) get_netdev_from_rule() argument
1735 get_flow_act_ct(struct flow_rule * rule) get_flow_act_ct() argument
1751 get_flow_act(struct flow_rule * rule,enum flow_action_id act_id) get_flow_act() argument
1885 struct flow_rule *rule = flow_cls_offload_flow_rule(flow); nfp_fl_ct_handle_post_ct() local
[all...]
/linux/security/safesetid/
H A Dsecurityfs.c32 struct setid_rule *rule) in parse_policy_line() argument
53 if (rule->type == UID){ in parse_policy_line()
54 rule->src_id.uid = make_kuid(file->f_cred->user_ns, parsed_parent); in parse_policy_line()
55 rule->dst_id.uid = make_kuid(file->f_cred->user_ns, parsed_child); in parse_policy_line()
56 if (!uid_valid(rule->src_id.uid) || !uid_valid(rule->dst_id.uid)) in parse_policy_line()
58 } else if (rule->type == GID){ in parse_policy_line()
59 rule->src_id.gid = make_kgid(file->f_cred->user_ns, parsed_parent); in parse_policy_line()
60 rule->dst_id.gid = make_kgid(file->f_cred->user_ns, parsed_child); in parse_policy_line()
61 if (!gid_valid(rule->src_id.gid) || !gid_valid(rule->dst_id.gid)) in parse_policy_line()
75 struct setid_rule *rule; in __release_ruleset() local
[all …]
/linux/drivers/pnp/
H A Dmanager.c23 unsigned char rule, in pnp_find_resource() argument
32 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource()
38 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port() argument
42 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port()
51 res->flags = rule->flags | IORESOURCE_AUTO; in pnp_assign_port()
55 if (!rule->size) { in pnp_assign_port()
61 res->start = rule->min; in pnp_assign_port()
62 res->end = res->start + rule->size - 1; in pnp_assign_port()
65 res->start += rule->align; in pnp_assign_port()
66 res->end = res->start + rule->size - 1; in pnp_assign_port()
[all …]
/linux/kernel/
H A Dauditfilter.c86 struct audit_krule *erule = &e->rule; in audit_free_rule()
120 entry->rule.fields = fields; in audit_init_entry()
211 static int audit_match_signal(const struct audit_krule *rule) in audit_match_signal()
213 struct audit_field *arch = rule->arch_f; in audit_match_signal()
219 rule->mask) && in audit_match_signal()
221 rule->mask)); in audit_match_signal()
227 rule->mask)); in audit_match_signal()
230 rule->mask)); in audit_match_signal()
236 static bool audit_rule_counts_syscalls(const struct audit_krule *rule)
238 switch (rule argument
1106 audit_log_rule_change(char * action,struct audit_krule * rule,int res) audit_log_rule_change() argument
[all...]
/linux/include/net/
H A Dfib_rules.h57 struct fib_rule *rule; member
108 struct fib_rule *rule; member
111 static inline void fib_rule_get(struct fib_rule *rule) in fib_rule_get() argument
113 refcount_inc(&rule->refcnt); in fib_rule_get()
116 static inline bool fib_rule_get_safe(struct fib_rule *rule) in fib_rule_get_safe() argument
118 return refcount_inc_not_zero(&rule->refcnt); in fib_rule_get_safe()
121 static inline void fib_rule_put(struct fib_rule *rule) in fib_rule_put() argument
123 if (refcount_dec_and_test(&rule->refcnt)) in fib_rule_put()
124 kfree_rcu(rule, rcu); in fib_rule_put()
128 static inline u32 fib_rule_get_table(struct fib_rule *rule, in fib_rule_get_table() argument
[all …]
/linux/net/ipv4/
H A Dfib_rules.c52 static bool fib4_rule_matchall(const struct fib_rule *rule) in fib4_rule_matchall() argument
54 struct fib4_rule *r = container_of(rule, struct fib4_rule, common); in fib4_rule_matchall()
58 return fib_rule_matchall(rule); in fib4_rule_matchall()
61 bool fib4_rule_default(const struct fib_rule *rule) in fib4_rule_default() argument
63 if (!fib4_rule_matchall(rule) || rule->action != FR_ACT_TO_TBL || in fib4_rule_default()
64 rule->l3mdev) in fib4_rule_default()
66 if (rule->table != RT_TABLE_LOCAL && rule->table != RT_TABLE_MAIN && in fib4_rule_default()
67 rule->table != RT_TABLE_DEFAULT) in fib4_rule_default()
98 if (arg.rule) in __fib_lookup()
99 res->tclassid = ((struct fib4_rule *)arg.rule)->tclassid; in __fib_lookup()
[all …]
/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c12 struct gve_adminq_queried_flow_rule *rule) in gve_fill_ethtool_flow_spec() argument
14 struct gve_adminq_flow_rule *flow_rule = &rule->flow_rule; in gve_fill_ethtool_flow_spec()
107 struct gve_adminq_flow_rule *rule) in gve_generate_flow_rule() argument
129 rule->action = cpu_to_be16(fsp->ring_cookie); in gve_generate_flow_rule()
135 rule->flow_type = cpu_to_be16(flow_type_lut[flow_type]); in gve_generate_flow_rule()
141 rule->key.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in gve_generate_flow_rule()
142 rule->key.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in gve_generate_flow_rule()
143 rule->key.src_port = fsp->h_u.tcp_ip4_spec.psrc; in gve_generate_flow_rule()
144 rule->key.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in gve_generate_flow_rule()
145 rule in gve_generate_flow_rule()
201 struct gve_adminq_queried_flow_rule *rule = NULL; gve_get_flow_rule_entry() local
266 struct gve_adminq_flow_rule *rule = NULL; gve_add_flow_rule() local
[all...]
/linux/net/ipv6/
H A Dfib6_rules.c36 static bool fib6_rule_matchall(const struct fib_rule *rule) in fib6_rule_matchall() argument
38 struct fib6_rule *r = container_of(rule, struct fib6_rule, common); in fib6_rule_matchall()
42 return fib_rule_matchall(rule); in fib6_rule_matchall()
45 bool fib6_rule_default(const struct fib_rule *rule) in fib6_rule_default() argument
47 if (!fib6_rule_matchall(rule) || rule->action != FR_ACT_TO_TBL || in fib6_rule_default()
48 rule->l3mdev) in fib6_rule_default()
50 if (rule->table != RT6_TABLE_LOCAL && rule->table != RT6_TABLE_MAIN) in fib6_rule_default()
140 static int fib6_rule_saddr(struct net *net, struct fib_rule *rule, in argument
165 fib6_rule_action_alt(struct fib_rule * rule,struct flowi * flp,int flags,struct fib_lookup_arg * arg) fib6_rule_action_alt() argument
203 __fib6_rule_action(struct fib_rule * rule,struct flowi * flp,int flags,struct fib_lookup_arg * arg) __fib6_rule_action() argument
271 fib6_rule_action(struct fib_rule * rule,struct flowi * flp,int flags,struct fib_lookup_arg * arg) fib6_rule_action() argument
281 fib6_rule_suppress(struct fib_rule * rule,int flags,struct fib_lookup_arg * arg) fib6_rule_suppress() argument
315 fib6_rule_match(struct fib_rule * rule,struct flowi * fl,int flags) fib6_rule_match() argument
426 fib6_rule_configure(struct fib_rule * rule,struct sk_buff * skb,struct fib_rule_hdr * frh,struct nlattr ** tb,struct netlink_ext_ack * extack) fib6_rule_configure() argument
484 fib6_rule_delete(struct fib_rule * rule) fib6_rule_delete() argument
493 fib6_rule_compare(struct fib_rule * rule,struct fib_rule_hdr * frh,struct nlattr ** tb) fib6_rule_compare() argument
544 fib6_rule_fill(struct fib_rule * rule,struct sk_buff * skb,struct fib_rule_hdr * frh) fib6_rule_fill() argument
579 fib6_rule_nlmsg_payload(struct fib_rule * rule) fib6_rule_nlmsg_payload() argument
[all...]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_client.h165 void vcap_free_rule(struct vcap_rule *rule);
167 int vcap_val_rule(struct vcap_rule *rule, u16 l3_proto);
169 int vcap_add_rule(struct vcap_rule *rule);
173 struct vcap_rule *vcap_copy_rule(struct vcap_rule *rule);
177 int vcap_mod_rule(struct vcap_rule *rule);
180 int vcap_set_rule_set_keyset(struct vcap_rule *rule,
183 int vcap_set_rule_set_actionset(struct vcap_rule *rule,
186 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id);
189 int vcap_rule_add_key_bit(struct vcap_rule *rule, enum vcap_key_field key,
191 int vcap_rule_add_key_u32(struct vcap_rule *rule, enum vcap_key_field key,
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c35 struct prestera_acl_rule *rule, in prestera_flower_parse_goto_action() argument
45 if (rule->re_arg.jump.valid) in prestera_flower_parse_goto_action()
53 rule->re_arg.jump.valid = 1; in prestera_flower_parse_goto_action()
54 rule->re_arg.jump.i.index = prestera_acl_ruleset_index_get(ruleset); in prestera_flower_parse_goto_action()
56 rule->jump_ruleset = ruleset; in prestera_flower_parse_goto_action()
62 struct prestera_acl_rule *rule, in prestera_flower_parse_actions() argument
82 rule->re_arg.count.valid = true; in prestera_flower_parse_actions()
84 &rule->re_arg.count.client); in prestera_flower_parse_actions()
95 if (rule->re_arg.accept.valid) in prestera_flower_parse_actions()
98 rule->re_arg.accept.valid = 1; in prestera_flower_parse_actions()
[all …]
H A Dprestera_acl.c383 struct prestera_acl_rule *rule; in prestera_acl_ruleset_prio_refresh() local
388 list_for_each_entry(rule, &acl->rules, list) { in prestera_acl_ruleset_prio_refresh()
389 if (ruleset->ingress != rule->ruleset->ingress) in prestera_acl_ruleset_prio_refresh()
391 if (ruleset->ht_key.chain_index != rule->chain_index) in prestera_acl_ruleset_prio_refresh()
394 ruleset->prio.min = min(ruleset->prio.min, rule->priority); in prestera_acl_ruleset_prio_refresh()
395 ruleset->prio.max = max(ruleset->prio.max, rule->priority); in prestera_acl_ruleset_prio_refresh()
400 prestera_acl_rule_keymask_pcl_id_set(struct prestera_acl_rule *rule, u16 pcl_id) in prestera_acl_rule_keymask_pcl_id_set() argument
402 struct prestera_acl_match *r_match = &rule->re_key.match; in prestera_acl_rule_keymask_pcl_id_set()
439 struct prestera_acl_rule *rule; in prestera_acl_rule_create() local
441 rule = kzalloc_obj(*rule); in prestera_acl_rule_create()
[all …]
/linux/Documentation/networking/
H A Dtls-offload-reorder-bad.svg1 …rule="nonzero"/></clipPath><g clip-path="url(#p.0)"><path fill="#000000" fill-opacity="0.0" d="m0 …
H A Dtls-offload-reorder-good.svg1 …rule="nonzero"/></clipPath><g clip-path="url(#p.0)"><path fill="#000000" fill-opacity="0.0" d="m0 …
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_rule.c394 dr_rule_rehash_htbl(struct mlx5dr_rule *rule, in dr_rule_rehash_htbl() argument
402 struct mlx5dr_matcher *matcher = rule->matcher; in dr_rule_rehash_htbl()
515 static struct mlx5dr_ste_htbl *dr_rule_rehash(struct mlx5dr_rule *rule, in dr_rule_rehash() argument
521 struct mlx5dr_domain *dmn = rule->matcher->tbl->dmn; in dr_rule_rehash()
530 return dr_rule_rehash_htbl(rule, nic_rule, cur_htbl, ste_location, in dr_rule_rehash()
576 static void dr_rule_remove_action_members(struct mlx5dr_rule *rule) in dr_rule_remove_action_members() argument
581 list_for_each_entry_safe(action_mem, tmp, &rule->rule_actions_list, list) { in dr_rule_remove_action_members()
588 static int dr_rule_add_action_members(struct mlx5dr_rule *rule, in dr_rule_add_action_members() argument
602 list_add_tail(&action_mem->list, &rule->rule_actions_list); in dr_rule_add_action_members()
609 dr_rule_remove_action_members(rule); in dr_rule_add_action_members()
[all …]
/linux/security/apparmor/
H A Daudit.c245 struct aa_audit_rule *rule = vrule; in aa_audit_rule_free() local
247 if (rule) { in aa_audit_rule_free()
248 if (!IS_ERR(rule->label)) in aa_audit_rule_free()
249 aa_put_label(rule->label); in aa_audit_rule_free()
250 kfree(rule); in aa_audit_rule_free()
256 struct aa_audit_rule *rule; in aa_audit_rule_init() local
267 rule = kzalloc_obj(struct aa_audit_rule, gfp); in aa_audit_rule_init()
269 if (!rule) in aa_audit_rule_init()
273 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
275 if (IS_ERR(rule->label)) { in aa_audit_rule_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_dmfs.c13 struct mlx5_flow_handle *rule; member
41 dmfs_rule->rule = mlx5_tc_rule_insert(priv, spec, attr); in mlx5_ct_fs_dmfs_ct_rule_add()
42 if (IS_ERR(dmfs_rule->rule)) { in mlx5_ct_fs_dmfs_ct_rule_add()
43 err = PTR_ERR(dmfs_rule->rule); in mlx5_ct_fs_dmfs_ct_rule_add()
64 mlx5_tc_rule_delete(netdev_priv(fs->netdev), dmfs_rule->rule, dmfs_rule->attr); in mlx5_ct_fs_dmfs_ct_rule_del()
75 struct mlx5_flow_handle *rule; in mlx5_ct_fs_dmfs_ct_rule_update() local
77 rule = mlx5_tc_rule_insert(priv, spec, attr); in mlx5_ct_fs_dmfs_ct_rule_update()
78 if (IS_ERR(rule)) in mlx5_ct_fs_dmfs_ct_rule_update()
79 return PTR_ERR(rule); in mlx5_ct_fs_dmfs_ct_rule_update()
80 mlx5_tc_rule_delete(priv, dmfs_rule->rule, dmfs_rule->attr); in mlx5_ct_fs_dmfs_ct_rule_update()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc.c226 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_##_name)) { \
229 flow_rule_match_##_tcget(rule, &fm); \
239 struct flow_rule *rule, in efx_tc_flower_parse_match() argument
243 struct flow_dissector *dissector = rule->match.dissector; in efx_tc_flower_parse_match()
252 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in efx_tc_flower_parse_match()
255 flow_rule_match_control(rule, &fm); in efx_tc_flower_parse_match()
321 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in efx_tc_flower_parse_match()
324 flow_rule_match_vlan(rule, &fm); in efx_tc_flower_parse_match()
335 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in efx_tc_flower_parse_match()
338 flow_rule_match_cvlan(rule, in efx_tc_flower_parse_match()
743 efx_tc_delete_rule(struct efx_nic * efx,struct efx_tc_flow_rule * rule) efx_tc_delete_rule() argument
971 efx_tc_flower_handle_lhs_actions(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct net_device * net_dev,struct efx_tc_lhs_rule * rule) efx_tc_flower_handle_lhs_actions() argument
1459 struct efx_tc_lhs_rule *rule, *old; efx_tc_flower_replace_foreign_lhs_ar() local
1563 struct efx_tc_lhs_rule *rule, *old; efx_tc_flower_replace_foreign_lhs() local
1674 struct efx_tc_flow_rule *rule = NULL, *old = NULL; efx_tc_flower_replace_foreign() local
1999 struct efx_tc_lhs_rule *rule, *old; efx_tc_flower_replace_lhs() local
2074 struct efx_tc_flow_rule *rule = NULL, *old; efx_tc_flower_replace() local
2558 struct efx_tc_flow_rule *rule; efx_tc_flower_destroy() local
2666 efx_tc_configure_default_rule(struct efx_nic * efx,u32 ing_port,u32 eg_port,struct efx_tc_flow_rule * rule) efx_tc_configure_default_rule() argument
2705 struct efx_tc_flow_rule *rule = &efx->tc->dflt.pf; efx_tc_configure_default_rule_pf() local
2715 struct efx_tc_flow_rule *rule = &efx->tc->dflt.wire; efx_tc_configure_default_rule_wire() local
2725 struct efx_tc_flow_rule *rule = &efv->dflt; efx_tc_configure_default_rule_rep() local
2735 efx_tc_deconfigure_default_rule(struct efx_nic * efx,struct efx_tc_flow_rule * rule) efx_tc_deconfigure_default_rule() argument
2945 struct efx_tc_lhs_rule *rule = ptr; efx_tc_lhs_free() local
2971 struct efx_tc_flow_rule *rule = ptr; efx_tc_flow_free() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl.c827 struct mlxsw_sp_acl_rule *rule; in mlxsw_sp_acl_rule_create() local
831 rule = kzalloc(sizeof(*rule) + ops->rule_priv_size, in mlxsw_sp_acl_rule_create()
833 if (!rule) { in mlxsw_sp_acl_rule_create()
837 rule->cookie = cookie; in mlxsw_sp_acl_rule_create()
838 rule->ruleset = ruleset; in mlxsw_sp_acl_rule_create()
840 rule->rulei = mlxsw_sp_acl_rulei_create(mlxsw_sp->acl, afa_block); in mlxsw_sp_acl_rule_create()
841 if (IS_ERR(rule->rulei)) { in mlxsw_sp_acl_rule_create()
842 err = PTR_ERR(rule->rulei); in mlxsw_sp_acl_rule_create()
846 return rule; in mlxsw_sp_acl_rule_create()
849 kfree(rule); in mlxsw_sp_acl_rule_create()
[all …]

12345678910>>...18