Home
last modified time | relevance | path

Searched refs:rule (Results 226 - 250 of 1002) sorted by relevance

12345678910>>...41

/kernel/linux/linux-5.10/kernel/
H A Daudit_watch.c278 oentry = container_of(r, struct audit_entry, rule); in audit_update_watch()
279 list_del(&oentry->rule.rlist); in audit_update_watch()
282 nentry = audit_dupe_rule(&oentry->rule); in audit_update_watch()
284 list_del(&oentry->rule.list); in audit_update_watch()
290 * nentry->rule.watch == oentry->rule.watch so in audit_update_watch()
294 audit_put_watch(nentry->rule.watch); in audit_update_watch()
296 nentry->rule.watch = nwatch; in audit_update_watch()
297 list_add(&nentry->rule.rlist, &nwatch->rules); in audit_update_watch()
299 list_replace(&oentry->rule in audit_update_watch()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/
H A Dmain.h180 * @flow: Linked flow rule
269 * @stats_lock: Lock for flower rule stats updates
270 * @stats_ctx_table: Hash table to map stats contexts to its flow rule
561 struct flow_rule *rule);
571 struct flow_rule *rule);
575 struct flow_rule *rule,
580 struct flow_rule *rule);
584 struct flow_rule *rule);
587 struct nfp_flower_ipv4 *msk, struct flow_rule *rule);
590 struct nfp_flower_ipv6 *msk, struct flow_rule *rule);
[all...]
/kernel/linux/linux-6.6/kernel/
H A Daudit_watch.c279 oentry = container_of(r, struct audit_entry, rule); in audit_update_watch()
280 list_del(&oentry->rule.rlist); in audit_update_watch()
283 nentry = audit_dupe_rule(&oentry->rule); in audit_update_watch()
285 list_del(&oentry->rule.list); in audit_update_watch()
291 * nentry->rule.watch == oentry->rule.watch so in audit_update_watch()
295 audit_put_watch(nentry->rule.watch); in audit_update_watch()
297 nentry->rule.watch = nwatch; in audit_update_watch()
298 list_add(&nentry->rule.rlist, &nwatch->rules); in audit_update_watch()
300 list_replace(&oentry->rule in audit_update_watch()
[all...]
/third_party/python/Lib/email/mime/
H A Daudio.py71 def rule(rulefunc): function
76 @rule
86 @rule
94 @rule
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_dbg.c71 void mlx5dr_dbg_rule_add(struct mlx5dr_rule *rule) in mlx5dr_dbg_rule_add() argument
73 struct mlx5dr_domain *dmn = rule->matcher->tbl->dmn; in mlx5dr_dbg_rule_add()
76 list_add_tail(&rule->dbg_node, &rule->matcher->dbg_rule_list); in mlx5dr_dbg_rule_add()
80 void mlx5dr_dbg_rule_del(struct mlx5dr_rule *rule) in mlx5dr_dbg_rule_del() argument
82 struct mlx5dr_domain *dmn = rule->matcher->tbl->dmn; in mlx5dr_dbg_rule_del()
85 list_del(&rule->dbg_node); in mlx5dr_dbg_rule_del()
308 static int dr_dump_rule(struct seq_file *file, struct mlx5dr_rule *rule) in dr_dump_rule() argument
311 const u64 rule_id = DR_DBG_PTR_TO_ID(rule); in dr_dump_rule()
312 struct mlx5dr_rule_rx_tx *rx = &rule in dr_dump_rule()
468 struct mlx5dr_rule *rule; dr_dump_matcher_all() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c243 struct flow_rule *rule = flow_cls_offload_flow_rule(f); in mtk_flow_offload_replace() local
259 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { in mtk_flow_offload_replace()
262 flow_rule_match_meta(rule, &match); in mtk_flow_offload_replace()
267 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in mtk_flow_offload_replace()
270 flow_rule_match_control(rule, &match); in mtk_flow_offload_replace()
276 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in mtk_flow_offload_replace()
279 flow_rule_match_basic(rule, &match); in mtk_flow_offload_replace()
288 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in mtk_flow_offload_replace()
291 flow_rule_match_eth_addrs(rule, &match); in mtk_flow_offload_replace()
298 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLA in mtk_flow_offload_replace()
[all...]
/kernel/linux/linux-5.10/security/selinux/include/
H A Daudit.h16 * selinux_audit_rule_init - alloc/init an selinux audit rule structure.
17 * @field: the field this rule refers to
18 * @op: the operater the rule uses
19 * @rulestr: the text "target" of the rule
20 * @rule: pointer to the new rule structure returned via this
22 * Returns 0 if successful, -errno if not. On success, the rule structure
26 int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, void **rule);
29 * selinux_audit_rule_free - free an selinux audit rule structure.
30 * @rule
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c163 struct flow_rule *rule, in cxgb4_process_flow_match()
168 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in cxgb4_process_flow_match()
171 flow_rule_match_control(rule, &match); in cxgb4_process_flow_match()
173 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in cxgb4_process_flow_match()
175 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in cxgb4_process_flow_match()
179 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in cxgb4_process_flow_match()
183 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match()
204 flow_rule_match_ipv4_addrs(rule, &match); in cxgb4_process_flow_match()
219 flow_rule_match_ipv6_addrs(rule, &match); in cxgb4_process_flow_match()
237 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORT in cxgb4_process_flow_match()
162 cxgb4_process_flow_match(struct net_device *dev, struct flow_rule *rule, struct ch_filter_specification *fs) cxgb4_process_flow_match() argument
308 cxgb4_validate_flow_match(struct net_device *dev, struct flow_rule *rule) cxgb4_validate_flow_match() argument
855 cxgb4_flow_rule_replace(struct net_device *dev, struct flow_rule *rule, u32 tc_prio, struct netlink_ext_ack *extack, struct ch_filter_specification *fs, u32 *tid) cxgb4_flow_rule_replace() argument
929 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); cxgb4_tc_flower_replace() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c163 struct flow_rule *rule, in cxgb4_process_flow_match()
168 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in cxgb4_process_flow_match()
171 flow_rule_match_control(rule, &match); in cxgb4_process_flow_match()
173 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in cxgb4_process_flow_match()
175 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in cxgb4_process_flow_match()
179 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in cxgb4_process_flow_match()
183 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match()
204 flow_rule_match_ipv4_addrs(rule, &match); in cxgb4_process_flow_match()
219 flow_rule_match_ipv6_addrs(rule, &match); in cxgb4_process_flow_match()
237 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORT in cxgb4_process_flow_match()
162 cxgb4_process_flow_match(struct net_device *dev, struct flow_rule *rule, struct ch_filter_specification *fs) cxgb4_process_flow_match() argument
308 cxgb4_validate_flow_match(struct net_device *dev, struct flow_rule *rule) cxgb4_validate_flow_match() argument
855 cxgb4_flow_rule_replace(struct net_device *dev, struct flow_rule *rule, u32 tc_prio, struct netlink_ext_ack *extack, struct ch_filter_specification *fs, u32 *tid) cxgb4_flow_rule_replace() argument
929 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); cxgb4_tc_flower_replace() local
[all...]
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_rule.cpp41 // When system status is changed,traverse uidPolicyRules_ to calculate the rule and netsys. in TransPolicyToRule()
122 auto rule = MoveToRuleBit(conditionValue & POLICY_TRANS_RULE_MASK); in TransConditionToRuleAndNetsys() local
123 NETMGR_LOG_D("NetPolicyRule->uid:[%{public}u] policy:[%{public}u] rule:[%{public}u] policyCondition[%{public}u]", in TransConditionToRuleAndNetsys()
124 uid, policy, rule, policyCondition); in TransConditionToRuleAndNetsys()
137 if (policyRuleNetsys.rule_ == rule) { in TransConditionToRuleAndNetsys()
138 NETMGR_LOG_D("Same rule and uid ,don't need to do others.uid is:[%{public}u] rule is:[%{public}u]", uid, rule); in TransConditionToRuleAndNetsys()
142 policyRuleNetsys.rule_ = rule; in TransConditionToRuleAndNetsys()
143 GetCbInst()->NotifyNetUidRuleChangeAsync(uid, rule); in TransConditionToRuleAndNetsys()
247 uint32_t rule = NetUidRule::NET_RULE_NONE; IsUidNetAllowed() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A Dprestera_acl.h158 void prestera_acl_rule_priority_set(struct prestera_acl_rule *rule,
160 void prestera_acl_rule_destroy(struct prestera_acl_rule *rule);
165 struct prestera_acl_rule *rule);
167 struct prestera_acl_rule *rule);
169 struct prestera_acl_rule *rule,
201 prestera_acl_rule_keymask_pcl_id_set(struct prestera_acl_rule *rule,
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c941 struct igc_nfc_rule *rule = NULL; in igc_ethtool_get_nfc_rule() local
947 rule = igc_get_nfc_rule(adapter, fsp->location); in igc_ethtool_get_nfc_rule()
948 if (!rule) in igc_ethtool_get_nfc_rule()
952 fsp->ring_cookie = rule->action; in igc_ethtool_get_nfc_rule()
954 if (rule->filter.match_flags & IGC_FILTER_FLAG_ETHER_TYPE) { in igc_ethtool_get_nfc_rule()
955 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype); in igc_ethtool_get_nfc_rule()
959 if (rule->filter.match_flags & IGC_FILTER_FLAG_VLAN_TCI) { in igc_ethtool_get_nfc_rule()
961 fsp->h_ext.vlan_tci = htons(rule->filter.vlan_tci); in igc_ethtool_get_nfc_rule()
965 if (rule->filter.match_flags & IGC_FILTER_FLAG_DST_MAC_ADDR) { in igc_ethtool_get_nfc_rule()
967 rule in igc_ethtool_get_nfc_rule()
989 struct igc_nfc_rule *rule; igc_ethtool_get_nfc_rules() local
1181 igc_ethtool_init_nfc_rule(struct igc_nfc_rule *rule, const struct ethtool_rx_flow_spec *fsp) igc_ethtool_init_nfc_rule() argument
1230 igc_ethtool_check_nfc_rule(struct igc_adapter *adapter, struct igc_nfc_rule *rule) igc_ethtool_check_nfc_rule() argument
1265 struct igc_nfc_rule *rule, *old_rule; igc_ethtool_add_nfc_rule() local
1328 struct igc_nfc_rule *rule; igc_ethtool_del_nfc_rule() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c118 struct ice_fdir_fltr *rule; in ice_get_ethtool_fdir_entry() local
126 rule = ice_fdir_find_fltr_by_idx(hw, fsp->location); in ice_get_ethtool_fdir_entry()
128 if (!rule || fsp->location != rule->fltr_id) { in ice_get_ethtool_fdir_entry()
133 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry()
142 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header; in ice_get_ethtool_fdir_entry()
143 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos; in ice_get_ethtool_fdir_entry()
144 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
145 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
146 fsp->m_u.usr_ip4_spec.ip4src = rule in ice_get_ethtool_fdir_entry()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c119 struct ice_fdir_fltr *rule; in ice_get_ethtool_fdir_entry() local
127 rule = ice_fdir_find_fltr_by_idx(hw, fsp->location); in ice_get_ethtool_fdir_entry()
129 if (!rule || fsp->location != rule->fltr_id) { in ice_get_ethtool_fdir_entry()
134 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type); in ice_get_ethtool_fdir_entry()
143 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header; in ice_get_ethtool_fdir_entry()
144 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos; in ice_get_ethtool_fdir_entry()
145 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
146 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
147 fsp->m_u.usr_ip4_spec.ip4src = rule in ice_get_ethtool_fdir_entry()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_flower.c235 const struct flow_action *action = &f->rule->action; in ocelot_flower_parse_action()
245 if (!flow_action_basic_hw_stats_check(&f->rule->action, in ocelot_flower_parse_action()
524 struct flow_rule *rule = flow_cls_offload_flow_rule(f); in ocelot_flower_parse_indev() local
532 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_indev()
576 struct flow_rule *rule = flow_cls_offload_flow_rule(f); in ocelot_flower_parse_key() local
577 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key()
595 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) { in ocelot_flower_parse_key()
598 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_key()
612 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in ocelot_flower_parse_key()
615 flow_rule_match_control(rule, in ocelot_flower_parse_key()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_rx.c14 struct mlx5_flow_handle *rule; member
47 struct accel_rule rule; member
107 struct mlx5_flow_handle *rule; in accel_rule_handle_work() local
110 priv_rx = container_of(accel_rule, struct mlx5e_ktls_offload_context_rx, rule); in accel_rule_handle_work()
114 rule = mlx5e_accel_fs_add_sk(accel_rule->priv->fs, priv_rx->sk, in accel_rule_handle_work()
117 if (!IS_ERR_OR_NULL(rule)) in accel_rule_handle_work()
118 accel_rule->rule = rule; in accel_rule_handle_work()
123 static void accel_rule_init(struct accel_rule *rule, struct mlx5e_priv *priv) in accel_rule_init() argument
125 INIT_WORK(&rule in accel_rule_init()
588 struct accel_rule *rule = &priv_rx->rule; mlx5e_ktls_handle_ctx_completion() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_core.c361 /* Delete rule (destination) is special case that
611 "%s can't del rule fg id=%d fte_index=%d\n", in modify_fte()
618 struct mlx5_flow_rule *rule; in del_sw_hw_rule() local
621 fs_get_obj(rule, node); in del_sw_hw_rule()
622 fs_get_obj(fte, rule->node.parent); in del_sw_hw_rule()
623 trace_mlx5_fs_del_rule(rule); in del_sw_hw_rule()
624 if (is_fwd_next_action(rule->sw_action)) { in del_sw_hw_rule()
625 mutex_lock(&rule->dest_attr.ft->lock); in del_sw_hw_rule()
626 list_del(&rule->next_ft); in del_sw_hw_rule()
627 mutex_unlock(&rule in del_sw_hw_rule()
1106 _mlx5_modify_rule_destination(struct mlx5_flow_rule *rule, struct mlx5_flow_destination *dest) _mlx5_modify_rule_destination() argument
1427 struct mlx5_flow_rule *rule; alloc_rule() local
1479 struct mlx5_flow_rule *rule = NULL; create_flow_handle() local
1703 struct mlx5_flow_rule *rule; find_flow_rule() local
1964 struct mlx5_flow_handle *rule; try_add_to_existing_fg() local
2062 struct mlx5_flow_handle *rule; _mlx5_add_flow_rules() local
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DPluralRules.java68 * keyword "other" by the default rule.
75 * This illustrates that the same keyword can be defined multiple times. Each rule is examined in order, and the first
76 * keyword whose condition passes is the one returned. Also notes that a modulus is applied to n in the last rule. Thus
93 * rules = rule (';' rule)*
94 * rule = keyword ':' condition
320 * for values to which no other form in the rule applies. It
374 * @param description the rule description.
388 * @param description the rule description.
1519 * rule
[all...]
H A DNFSubstitution.java22 * is a section of a rule that inserts text into the rule's rule text
32 * The substitution's position in the rule text of the rule that owns it
37 * The rule set this substitution uses to format its result, or null.
55 * @param pos The substitution's position in the rule text of the
56 * rule that owns it.
57 * @param rule The rule containin
70 makeSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, RuleBasedNumberFormat formatter, String description) makeSubstitution() argument
683 MultiplierSubstitution(int pos, NFRule rule, NFRuleSet ruleSet, String description) MultiplierSubstitution() argument
843 ModulusSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, String description) ModulusSubstitution() argument
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DNFSubstitution.java21 * is a section of a rule that inserts text into the rule's rule text
31 * The substitution's position in the rule text of the rule that owns it
36 * The rule set this substitution uses to format its result, or null.
54 * @param pos The substitution's position in the rule text of the
55 * rule that owns it.
56 * @param rule The rule containin
69 makeSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, RuleBasedNumberFormat formatter, String description) makeSubstitution() argument
682 MultiplierSubstitution(int pos, NFRule rule, NFRuleSet ruleSet, String description) MultiplierSubstitution() argument
842 ModulusSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, String description) ModulusSubstitution() argument
[all...]
/kernel/linux/linux-5.10/security/smack/
H A Dsmackfs.c54 SMK_PTRACE = 21, /* set ptrace rule */
112 * Ptrace current rule
145 * SMK_DIGITLEN: Length of a digit field in a rule.
146 * SMK_CIPSOMIN: Minimum possible cipso rule length.
147 * SMK_CIPSOMAX: Maximum possible cipso rule length.
156 * SMK_ACCESSLEN: Maximum length for a rule access field
157 * SMK_LOADLEN: Smack rule length
198 * smk_set_access - add a rule to the rule list or replace an old rule
314 smk_fill_rule(const char *subject, const char *object, const char *access1, const char *access2, struct smack_parsed_rule *rule, int import, int len) smk_fill_rule() argument
367 smk_parse_rule(const char *data, struct smack_parsed_rule *rule, int import) smk_parse_rule() argument
387 smk_parse_long_rule(char *data, struct smack_parsed_rule *rule, int import, int tokens) smk_parse_long_rule() argument
448 struct smack_parsed_rule rule; smk_write_rules_list() local
841 char *rule; smk_set_cipso() local
2292 struct smack_parsed_rule rule; smk_user_access() local
[all...]
/kernel/linux/linux-6.6/security/smack/
H A Dsmackfs.c55 SMK_PTRACE = 21, /* set ptrace rule */
113 * Ptrace current rule
146 * SMK_DIGITLEN: Length of a digit field in a rule.
147 * SMK_CIPSOMIN: Minimum possible cipso rule length.
148 * SMK_CIPSOMAX: Maximum possible cipso rule length.
157 * SMK_ACCESSLEN: Maximum length for a rule access field
158 * SMK_LOADLEN: Smack rule length
199 * smk_set_access - add a rule to the rule list or replace an old rule
315 smk_fill_rule(const char *subject, const char *object, const char *access1, const char *access2, struct smack_parsed_rule *rule, int import, int len) smk_fill_rule() argument
368 smk_parse_rule(const char *data, struct smack_parsed_rule *rule, int import) smk_parse_rule() argument
388 smk_parse_long_rule(char *data, struct smack_parsed_rule *rule, int import, int tokens) smk_parse_long_rule() argument
449 struct smack_parsed_rule rule; smk_write_rules_list() local
842 char *rule; smk_set_cipso() local
2304 struct smack_parsed_rule rule; smk_user_access() local
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/ecological_rule/
H A Dability_ecological_rule_mgr_service.cpp132 const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) in QueryStartExperience()
142 int32_t res = ecologicalRuleMgrServiceProxy_->QueryStartExperience(want, callerInfo, rule); in QueryStartExperience()
143 if (rule.replaceWant != nullptr) { in QueryStartExperience()
144 rule.replaceWant->SetParam(ERMS_ORIGINAL_TARGET, want.ToString()); in QueryStartExperience()
147 rule.resultCode, rule.sceneCode.c_str(), (*(rule.replaceWant)).ToString().c_str()); in QueryStartExperience()
245 const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) in QueryStartExperience()
286 rule = *sptrRule; in QueryStartExperience()
131 QueryStartExperience(const OHOS::AAFwk::Want &want, const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) QueryStartExperience() argument
244 QueryStartExperience(const Want &want, const AbilityCallerInfo &callerInfo, AbilityExperienceRule &rule) QueryStartExperience() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_geneve.c25 struct flow_rule *rule = flow_cls_offload_flow_rule(f); in mlx5e_tc_tun_check_udp_dport_geneve() local
29 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS)) in mlx5e_tc_tun_check_udp_dport_geneve()
32 flow_rule_match_enc_ports(rule, &enc_ports); in mlx5e_tc_tun_check_udp_dport_geneve()
127 struct flow_rule *rule = flow_cls_offload_flow_rule(f); in mlx5e_tc_tun_parse_geneve_vni() local
135 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) in mlx5e_tc_tun_parse_geneve_vni()
138 flow_rule_match_enc_keyid(rule, &enc_keyid); in mlx5e_tc_tun_parse_geneve_vni()
161 struct flow_rule *rule = flow_cls_offload_flow_rule(f); in mlx5e_tc_tun_parse_geneve_options() local
174 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) in mlx5e_tc_tun_parse_geneve_options()
177 flow_rule_match_enc_opts(rule, &enc_opts); in mlx5e_tc_tun_parse_geneve_options()
243 /* data can't be all 0 - fail to offload such rule */ in mlx5e_tc_tun_parse_geneve_options()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c16 struct mlx5_flow_handle *rule; member
93 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act, in mlx5_eswitch_termtbl_create()
95 if (IS_ERR(tt->rule)) { in mlx5_eswitch_termtbl_create()
96 esw_warn(dev, "Failed to create termination table rule\n"); in mlx5_eswitch_termtbl_create()
171 mlx5_del_flow_rules(tt->rule); in mlx5_eswitch_termtbl_put()
249 struct mlx5_flow_handle *rule = NULL; in mlx5_eswitch_add_termtbl_rule() local
296 rule = mlx5_add_flow_rules(fdb, spec, flow_act, dest, num_dest); in mlx5_eswitch_add_termtbl_rule()
297 if (IS_ERR(rule)) in mlx5_eswitch_add_termtbl_rule()
304 * and fall-back to the original rule actions in mlx5_eswitch_add_termtbl_rule()
328 rule in mlx5_eswitch_add_termtbl_rule()
[all...]

Completed in 30 milliseconds

12345678910>>...41