Searched refs:rule (Results 51 - 75 of 325) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Den_tc_tracepoint.h30 __dynamic_array(int, ids, f->rule ?
31 f->rule->action.num_entries : 0)
34 __entry->num = (f->rule ?
35 f->rule->action.num_entries : 0);
38 f->rule->action.entries,
39 f->rule->action.num_entries);
/linux-master/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,
/linux-master/sound/core/
H A Dpcm_drm_eld.c94 struct snd_pcm_hw_rule *rule)
96 struct snd_interval *r = hw_param_interval(params, rule->var);
99 const u8 *sad, *eld = rule->private;
122 struct snd_pcm_hw_rule *rule)
124 struct snd_interval *c = hw_param_interval(params, rule->var);
128 const u8 *sad, *eld = rule->private;
93 eld_limit_rates(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
121 eld_limit_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_matchall.c11 if (!flow_offload_has_one_action(&f->rule->action)) {
17 act = &f->rule->action.entries[0];
20 return lan966x_police_port_add(port, &f->rule->action, act,
/linux-master/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c1084 struct mvpp2_rfs_rule *rule)
1091 if (!flow_action_basic_hw_stats_check(&rule->flow->action, NULL))
1096 index = mvpp2_cls_c2_port_flow_index(port, rule->loc);
1101 act = &rule->flow->action.entries[0];
1103 rule->c2_index = c2.index;
1105 c2.tcam[3] = (rule->c2_tcam & 0xffff) |
1106 ((rule->c2_tcam_mask & 0xffff) << 16);
1107 c2.tcam[2] = ((rule->c2_tcam >> 16) & 0xffff) |
1108 (((rule->c2_tcam_mask >> 16) & 0xffff) << 16);
1109 c2.tcam[1] = ((rule
1083 mvpp2_port_c2_tcam_rule_add(struct mvpp2_port *port, struct mvpp2_rfs_rule *rule) argument
1174 mvpp2_port_c2_rfs_rule_insert(struct mvpp2_port *port, struct mvpp2_rfs_rule *rule) argument
1180 mvpp2_port_cls_rfs_rule_remove(struct mvpp2_port *port, struct mvpp2_rfs_rule *rule) argument
1205 mvpp2_port_flt_rfs_rule_insert(struct mvpp2_port *port, struct mvpp2_rfs_rule *rule) argument
1243 mvpp2_cls_c2_build_match(struct mvpp2_rfs_rule *rule) argument
1312 mvpp2_cls_rfs_parse_rule(struct mvpp2_rfs_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c922 struct iavf_fdir_fltr *rule = NULL; local
930 rule = iavf_find_fdir_fltr_by_loc(adapter, fsp->location);
931 if (!rule) {
936 fsp->flow_type = iavf_fltr_to_ethtool_flow(rule->flow_type);
945 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip;
946 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip;
947 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port;
948 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port;
949 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos;
950 fsp->m_u.tcp_ip4_spec.ip4src = rule
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dsmfs.h34 mlx5_smfs_rule_destroy(struct mlx5dr_rule *rule);
H A Dipsec_fs_roce.c13 struct mlx5_flow_handle *rule; member in struct:mlx5_ipsec_miss
19 struct mlx5_flow_handle *rule; member in struct:mlx5_ipsec_rx_roce
35 struct mlx5_flow_handle *rule; member in struct:mlx5_ipsec_tx_roce
138 struct mlx5_flow_handle *rule; local
156 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, &dst, 1);
157 if (IS_ERR(rule)) {
158 err = PTR_ERR(rule);
159 mlx5_core_err(mdev, "Fail to add RX RoCE IPsec rule err=%d\n",
164 roce->rule = rule;
211 struct mlx5_flow_handle *rule; local
237 struct mlx5_flow_handle *rule; local
[all...]
H A Dfs_ttc.c50 if (!IS_ERR_OR_NULL(ttc->rules[i].rule)) {
51 mlx5_del_flow_rules(ttc->rules[i].rule);
52 ttc->rules[i].rule = NULL;
269 struct mlx5_flow_handle *rule; local
300 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1);
301 if (IS_ERR(rule)) {
302 err = PTR_ERR(rule);
303 mlx5_core_err(dev, "%s: add rule failed\n", __func__);
307 return err ? ERR_PTR(err) : rule;
324 struct mlx5_ttc_rule *rule local
458 struct mlx5_flow_handle *rule; local
509 struct mlx5_ttc_rule *rule = &rules[tt]; local
[all...]
H A Dmacsec_fs.c67 struct mlx5_flow_handle *rule; member in struct:mlx5_roce_macsec_tx_rule
72 struct mlx5_flow_handle *rule; member in struct:mlx5_macsec_tx_rule
130 struct mlx5_flow_handle *rule[RX_NUM_OF_RULES_PER_SA]; member in struct:mlx5_macsec_rx_rule
136 struct mlx5_flow_handle *rule; member in struct:mlx5_macsec_miss
143 struct mlx5_flow_handle *rule; member in struct:mlx5_macsec_rx_roce
147 /* Flow table/rule in RDMA domain, to check dgid */
343 /* reserve entry for the match all miss group and rule */
402 struct mlx5_flow_handle *rule; local
446 /* Tx crypto table MKE rule - MKE packets shouldn't be offloaded */
453 rule
813 struct mlx5_flow_handle *rule; local
1148 struct mlx5_flow_handle *rule; local
1222 struct mlx5_flow_handle *rule; local
1330 struct mlx5_flow_handle *rule; local
1508 struct mlx5_flow_handle *rule; local
1742 struct mlx5_flow_handle *rule; local
[all...]
H A Dsmfs.c64 mlx5_smfs_rule_destroy(struct mlx5dr_rule *rule) argument
66 mlx5dr_rule_destroy(rule);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_vxlan.c22 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
26 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS))
29 flow_rule_match_enc_ports(rule, &enc_ports);
114 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
120 flow_rule_match_enc_opts(rule, &enc_opts);
163 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
171 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID))
174 flow_rule_match_enc_keyid(rule, &enc_keyid);
179 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) {
H A Dfs_tt_redirect.c58 void mlx5e_fs_tt_redirect_del_rule(struct mlx5_flow_handle *rule) argument
60 mlx5_del_flow_rules(rule);
86 struct mlx5_flow_handle *rule; local
103 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
106 if (IS_ERR(rule)) {
107 err = PTR_ERR(rule);
108 fs_err(fs, "%s: add %s rule failed, err %d\n",
111 return rule;
121 struct mlx5_flow_handle *rule; local
127 rule
371 struct mlx5_flow_handle *rule; local
403 struct mlx5_flow_handle *rule; local
[all...]
/linux-master/kernel/
H A Daudit_tree.c63 * time and used in AUDIT_TREE rule matching.
69 * tree.rules anchors rule.rlist audit_filter_mutex
526 struct audit_krule *rule)
536 audit_log_untrustedstring(ab, rule->tree->pathname);
537 audit_log_key(ab, rule->filterkey);
538 audit_log_format(ab, " list=%d res=1", rule->listnr);
544 struct audit_krule *rule, *next; local
547 list_for_each_entry_safe(rule, next, &tree->rules, rlist) {
548 entry = container_of(rule, struct audit_entry, rule);
525 audit_tree_log_remove_rule(struct audit_context *context, struct audit_krule *rule) argument
647 audit_remove_tree_rule(struct audit_krule *rule) argument
725 audit_make_tree(struct audit_krule *rule, char *pathname, u32 op) argument
800 audit_add_tree_rule(struct audit_krule *rule) argument
[all...]
H A Daudit.h52 struct audit_krule rule; member in struct:audit_entry
129 char *filterkey; /* key for rule that triggered record */
292 extern int audit_make_tree(struct audit_krule *rule, char *pathname, u32 op);
293 extern int audit_add_tree_rule(struct audit_krule *rule);
294 extern int audit_remove_tree_rule(struct audit_krule *rule);
323 #define audit_remove_tree_rule(rule) BUG()
324 #define audit_add_tree_rule(rule) -EINVAL
325 #define audit_make_tree(rule, str, op) -EINVAL
329 #define audit_tree_path(rule) "" /* never called */
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dindir_table.c103 struct mlx5_esw_indir_table_rule *rule; local
114 rule = kzalloc(sizeof(*rule), GFP_KERNEL);
115 if (!rule)
153 rule->handle = handle;
154 rule->mh = flow_act.modify_hdr;
155 refcount_set(&rule->refcnt, 1);
156 e->recirc_rule = rule;
167 kfree(rule);
174 struct mlx5_esw_indir_table_rule *rule local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c16 struct mlx5_flow_handle *rule; member in struct:mlx5_termtbl_handle
94 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act,
96 if (IS_ERR(tt->rule)) {
97 err = PTR_ERR(tt->rule);
98 esw_warn(dev, "Failed to create termination table rule, err %pe\n", tt->rule);
172 mlx5_del_flow_rules(tt->rule);
253 struct mlx5_flow_handle *rule = NULL; local
300 rule = mlx5_add_flow_rules(fdb, spec, flow_act, dest, num_dest);
301 if (IS_ERR(rule))
[all...]
/linux-master/net/netfilter/
H A Dnft_immediate.c102 struct nft_rule *rule; local
115 list_for_each_entry(rule, &chain->rules, list)
116 nft_rule_expr_activate(&chain_ctx, rule);
133 struct nft_rule *rule; local
138 list_for_each_entry(rule, &chain->rules, list)
139 nft_rule_expr_deactivate(&chain_ctx, rule, phase);
191 struct nft_rule *rule, *n; local
219 list_for_each_entry_safe(rule, n, &chain->rules, list) {
221 list_del(&rule->list);
222 nf_tables_rule_destroy(&chain_ctx, rule);
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_fs.c359 * the key otherwise to install a mcam rule more than one entry is
652 /* Ignore exact match bits for mcam entries except the first rule
653 * which is drop on hit. This first rule is configured explitcitly by
1065 struct rvu_npc_mcam_rule *rule)
1072 if (iter->entry > rule->entry)
1077 list_add(&rule->list, head);
1082 struct rvu_npc_mcam_rule *rule)
1087 if (!rule->has_cntr)
1091 free_req.cntr = rule->cntr;
1094 rule
1064 rvu_mcam_add_rule(struct npc_mcam *mcam, struct rvu_npc_mcam_rule *rule) argument
1081 rvu_mcam_remove_counter_from_rule(struct rvu *rvu, u16 pcifunc, struct rvu_npc_mcam_rule *rule) argument
1097 rvu_mcam_add_counter_to_rule(struct rvu *rvu, u16 pcifunc, struct rvu_npc_mcam_rule *rule, struct npc_install_flow_rsp *rsp) argument
1266 struct rvu_npc_mcam_rule *rule; local
1543 npc_delete_flow(struct rvu *rvu, struct rvu_npc_mcam_rule *rule, u16 pcifunc) argument
1612 npc_update_dmac_value(struct rvu *rvu, int npcblkaddr, struct rvu_npc_mcam_rule *rule, struct rvu_pfvf *pfvf) argument
1648 struct rvu_npc_mcam_rule *rule; local
1729 struct rvu_npc_mcam_rule *rule; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c150 mlx5_del_flow_rules(rx->status_drops.all.rule);
158 mlx5_del_flow_rules(rx->status.rule);
176 struct mlx5_flow_handle *rule; local
189 "Failed to add ipsec rx status drop rule counter, err=%d\n", err);
208 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
209 if (IS_ERR(rule)) {
210 err = PTR_ERR(rule);
212 "Failed to add ipsec rx status drop rule, err=%d\n", err);
215 sa_entry->ipsec_rule.auth.rule = rule;
258 struct mlx5_flow_handle *rule; local
317 struct mlx5_flow_handle *rule; local
385 struct mlx5_flow_handle *rule; local
1587 struct mlx5_flow_handle *rule; local
1706 struct mlx5_flow_handle *rule; local
1799 struct mlx5_flow_handle *rule; local
1883 struct mlx5_flow_handle *rule; local
[all...]
/linux-master/security/integrity/ima/
H A Dima_policy.c117 void *rule; /* LSM file metadata specific */ member in struct:ima_rule_entry::__anon3099
142 * The minimum rule set to allow for full TCB coverage. Measures all files
383 ima_filter_rule_free(entry->lsm[i].rule);
428 &nentry->lsm[i].rule);
429 if (!nentry->lsm[i].rule)
430 pr_warn("rule for LSM \'%s\' is undefined\n",
454 ima_filter_rule_free(entry->lsm[i].rule);
487 pr_err("lsm rule update error %d\n", result);
504 * ima_match_rule_data - determine whether func_data matches the policy rule
505 * @rule
511 ima_match_rule_data(struct ima_rule_entry *rule, const char *func_data, const struct cred *cred) argument
565 ima_match_rules(struct ima_rule_entry *rule, struct mnt_idmap *idmap, struct inode *inode, const struct cred *cred, u32 secid, enum ima_hooks func, int mask, const char *func_data) argument
693 get_subaction(struct ima_rule_entry *rule, enum ima_hooks func) argument
916 char rule[255]; local
1404 ima_parse_rule(char *rule, struct ima_rule_entry *entry) argument
1919 ima_parse_add_rule(char *rule) argument
[all...]
/linux-master/drivers/net/wireless/quantenna/qtnfmac/
H A Dqlink_util.c292 void qlink_utils_regrule_q2nl(struct ieee80211_reg_rule *rule, argument
295 rule->freq_range.start_freq_khz = le32_to_cpu(tlv->start_freq_khz);
296 rule->freq_range.end_freq_khz = le32_to_cpu(tlv->end_freq_khz);
297 rule->freq_range.max_bandwidth_khz =
299 rule->power_rule.max_antenna_gain = le32_to_cpu(tlv->max_antenna_gain);
300 rule->power_rule.max_eirp = le32_to_cpu(tlv->max_eirp);
301 rule->dfs_cac_ms = le32_to_cpu(tlv->dfs_cac_ms);
302 rule->flags = qtnf_reg_rule_flags_parse(le32_to_cpu(tlv->flags));
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.h33 struct mlx5_flow_handle *rule,
52 struct mlx5_flow_handle *rule,
51 mlx5e_tc_sample_unoffload(struct mlx5e_tc_psample *tc_psample, struct mlx5_flow_handle *rule, struct mlx5_flow_attr *attr) argument
/linux-master/include/linux/
H A Dmroute.h24 bool ipmr_rule_default(const struct fib_rule *rule);
54 static inline bool ipmr_rule_default(const struct fib_rule *rule) argument
/linux-master/tools/perf/tests/shell/
H A Dstat_metrics_values.sh16 # Add -debug, save data file and full rule file
19 $PYTHON $pythonvalidator -rule $rulefile -output_dir $tmpdir -wl "${workload}"

Completed in 351 milliseconds

1234567891011>>