Searched refs:rule (Results 76 - 100 of 325) sorted by relevance

1234567891011>>

/linux-master/kernel/
H A Daudit_watch.c279 oentry = container_of(r, struct audit_entry, rule);
280 list_del(&oentry->rule.rlist);
283 nentry = audit_dupe_rule(&oentry->rule);
285 list_del(&oentry->rule.list);
291 * nentry->rule.watch == oentry->rule.watch so
295 audit_put_watch(nentry->rule.watch);
297 nentry->rule.watch = nwatch;
298 list_add(&nentry->rule.rlist, &nwatch->rules);
300 list_replace(&oentry->rule
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c163 struct flow_rule *rule,
168 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) {
171 flow_rule_match_control(rule, &match);
173 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) {
175 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) {
179 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
183 flow_rule_match_basic(rule, &match);
204 flow_rule_match_ipv4_addrs(rule, &match);
219 flow_rule_match_ipv6_addrs(rule, &match);
237 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORT
162 cxgb4_process_flow_match(struct net_device *dev, struct flow_rule *rule, struct ch_filter_specification *fs) argument
308 cxgb4_validate_flow_match(struct netlink_ext_ack *extack, struct flow_rule *rule) 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) argument
928 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-flower.c14 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
15 struct flow_dissector *dissector = rule->match.dissector;
36 if (flow_rule_match_has_control_flags(rule, extack))
39 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
42 flow_rule_match_basic(rule, &match);
49 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
52 flow_rule_match_eth_addrs(rule, &match);
59 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
62 flow_rule_match_vlan(rule, &match);
74 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDR
496 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
540 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
651 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); local
[all...]
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api.c33 /* Moving a rule in the VCAP address space */
363 /* Read key data from a VCAP address and discover if there are any rule keysets
532 vcap_copy_from_client_keyfield(struct vcap_rule *rule, argument
536 struct vcap_rule_internal *ri = to_intrule(rule);
587 vcap_copy_from_client_actionfield(struct vcap_rule *rule, argument
591 struct vcap_rule_internal *ri = to_intrule(rule);
666 /* Iterate over the keyfields (key, mask) in the rule
670 pr_err("%s:%d: no keyfields in the rule\n", __func__, __LINE__);
825 /* Iterate over the actionfields in the rule
829 pr_warn("%s:%d: no actionfields in the rule\
884 vcap_set_rule_set_keyset(struct vcap_rule *rule, enum vcap_keyfield_set keyset) argument
904 vcap_set_rule_set_actionset(struct vcap_rule *rule, enum vcap_actionfield_set actionset) argument
1711 vcap_add_type_keyfield(struct vcap_rule *rule) argument
1744 vcap_add_type_actionfield(struct vcap_rule *rule) argument
1908 vcap_rule_find_keysets(struct vcap_rule *rule, struct vcap_keyset_list *matches) argument
1987 vcap_val_rule(struct vcap_rule *rule, u16 l3_proto) argument
2258 vcap_add_rule(struct vcap_rule *rule) argument
2385 vcap_free_rule(struct vcap_rule *rule) argument
2437 struct vcap_rule *rule; local
2455 vcap_mod_rule(struct vcap_rule *rule) argument
2609 vcap_find_keyfield(struct vcap_rule *rule, enum vcap_key_field key) argument
2621 vcap_lookup_keyfield(struct vcap_rule *rule, enum vcap_key_field key) argument
2639 vcap_keyfield_unique(struct vcap_rule *rule, enum vcap_key_field key) argument
2652 vcap_keyfield_match_keyset(struct vcap_rule *rule, enum vcap_key_field key) argument
2670 vcap_rule_add_key(struct vcap_rule *rule, enum vcap_key_field key, enum vcap_field_type ftype, struct vcap_client_keyfield_data *data) argument
2721 vcap_rule_add_key_bit(struct vcap_rule *rule, enum vcap_key_field key, enum vcap_bit val) argument
2732 vcap_rule_add_key_u32(struct vcap_rule *rule, enum vcap_key_field key, u32 value, u32 mask) argument
2744 vcap_rule_add_key_u48(struct vcap_rule *rule, enum vcap_key_field key, struct vcap_u48_key *fieldval) argument
2755 vcap_rule_add_key_u72(struct vcap_rule *rule, enum vcap_key_field key, struct vcap_u72_key *fieldval) argument
2766 vcap_rule_add_key_u128(struct vcap_rule *rule, enum vcap_key_field key, struct vcap_u128_key *fieldval) argument
2776 vcap_rule_get_key_u32(struct vcap_rule *rule, enum vcap_key_field key, u32 *value, u32 *mask) argument
2794 vcap_find_actionfield(struct vcap_rule *rule, enum vcap_action_field act) argument
2807 vcap_actionfield_unique(struct vcap_rule *rule, enum vcap_action_field act) argument
2820 vcap_actionfield_match_actionset(struct vcap_rule *rule, enum vcap_action_field action) argument
2838 vcap_rule_add_action(struct vcap_rule *rule, enum vcap_action_field action, enum vcap_field_type ftype, struct vcap_client_actionfield_data *data) argument
2887 vcap_rule_add_action_bit(struct vcap_rule *rule, enum vcap_action_field action, enum vcap_bit val) argument
2899 vcap_rule_add_action_u32(struct vcap_rule *rule, enum vcap_action_field action, u32 value) argument
2911 vcap_rule_add_action_u72(struct vcap_rule *rule, enum vcap_action_field action, struct vcap_u72_action *fieldval) argument
3252 vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id) argument
3260 vcap_rule_set_counter(struct vcap_rule *rule, struct vcap_counter *ctr) argument
3281 vcap_rule_get_counter(struct vcap_rule *rule, struct vcap_counter *ctr) argument
3303 vcap_rule_get_key(struct vcap_rule *rule, enum vcap_key_field key, struct vcap_client_keyfield *ckf) argument
3425 vcap_rule_mod_key(struct vcap_rule *rule, enum vcap_key_field key, enum vcap_field_type ftype, struct vcap_client_keyfield_data *data) argument
3440 vcap_rule_mod_key_u32(struct vcap_rule *rule, enum vcap_key_field key, u32 value, u32 mask) argument
3452 vcap_rule_rem_key(struct vcap_rule *rule, enum vcap_key_field key) argument
3470 vcap_rule_mod_action(struct vcap_rule *rule, enum vcap_action_field action, enum vcap_field_type ftype, struct vcap_client_actionfield_data *data) argument
3485 vcap_rule_mod_action_u32(struct vcap_rule *rule, enum vcap_action_field action, u32 value) argument
3497 vcap_filter_rule_keys(struct vcap_rule *rule, enum vcap_key_field keylist[], int length, bool drop_unsupported) argument
3571 struct vcap_rule *rule; local
[all...]
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_impl.c263 /* Initializing VCAP rule data area */
282 static bool sparx5_vcap_is0_is_first_chain(struct vcap_rule *rule) argument
284 return (rule->vcap_chain_id >= SPARX5_VCAP_CID_IS0_L0 &&
285 rule->vcap_chain_id < SPARX5_VCAP_CID_IS0_L1) ||
286 ((rule->vcap_chain_id >= SPARX5_VCAP_CID_IS0_L2 &&
287 rule->vcap_chain_id < SPARX5_VCAP_CID_IS0_L3)) ||
288 ((rule->vcap_chain_id >= SPARX5_VCAP_CID_IS0_L4 &&
289 rule->vcap_chain_id < SPARX5_VCAP_CID_IS0_L5));
293 static bool sparx5_vcap_is2_is_first_chain(struct vcap_rule *rule) argument
295 return (rule
301 sparx5_vcap_es2_is_first_chain(struct vcap_rule *rule) argument
308 sparx5_vcap_add_ingress_range_port_mask(struct vcap_rule *rule, struct net_device *ndev) argument
324 sparx5_vcap_add_wide_port_mask(struct vcap_rule *rule, struct net_device *ndev) argument
339 sparx5_vcap_add_egress_range_port_mask(struct vcap_rule *rule, struct net_device *ndev) argument
760 sparx5_vcap_validate_keyset(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule, struct vcap_keyset_list *kslist, u16 l3_proto) argument
816 sparx5_vcap_ingress_add_default_fields(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule) argument
848 sparx5_vcap_es0_add_default_fields(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule) argument
860 sparx5_vcap_es2_add_default_fields(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule) argument
884 sparx5_vcap_add_default_fields(struct net_device *ndev, struct vcap_admin *admin, struct vcap_rule *rule) argument
[all...]
/linux-master/security/safesetid/
H A Dlsm.c36 struct setid_rule *rule; local
40 hash_for_each_possible(policy->rules, rule, next, __kuid_val(src.uid)) {
41 if (!uid_eq(rule->src_id.uid, src.uid))
43 if (uid_eq(rule->dst_id.uid, dst.uid))
48 hash_for_each_possible(policy->rules, rule, next, __kgid_val(src.gid)) {
49 if (!gid_eq(rule->src_id.gid, src.gid))
51 if (gid_eq(rule->dst_id.gid, dst.gid)){
/linux-master/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c731 "No parse rule found, can't create hash rules\n");
736 /* If a match was found, then it begins the starting of a cluster rule
827 /* Sets the properties for arbitrary filer rule
1039 static inline u32 vlan_tci_vid(struct ethtool_rx_flow_spec *rule) argument
1041 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK;
1044 static inline u32 vlan_tci_vidm(struct ethtool_rx_flow_spec *rule) argument
1046 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK;
1049 static inline u32 vlan_tci_cfi(struct ethtool_rx_flow_spec *rule) argument
1051 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK;
1054 static inline u32 vlan_tci_cfim(struct ethtool_rx_flow_spec *rule) argument
1059 vlan_tci_prio(struct ethtool_rx_flow_spec *rule) argument
1065 vlan_tci_priom(struct ethtool_rx_flow_spec *rule) argument
1072 gfar_convert_to_filer(struct ethtool_rx_flow_spec *rule, struct filer_table *tab) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_geneve.c25 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
29 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_PORTS))
32 flow_rule_match_enc_ports(rule, &enc_ports);
128 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
136 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID))
139 flow_rule_match_enc_keyid(rule, &enc_keyid);
162 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
175 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS))
178 flow_rule_match_enc_opts(rule, &enc_opts);
244 /* data can't be all 0 - fail to offload such rule */
[all...]
H A Dtc_tun_gre.c67 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
77 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) {
80 flow_rule_match_enc_keyid(rule, &enc_keyid);
H A Dtc_tun_mplsoudp.c61 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
70 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID))
73 if (!flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS))
76 flow_rule_match_mpls(rule, &match);
/linux-master/include/net/netfilter/
H A Dnf_tables_offload.h67 struct flow_rule *rule; member in struct:nft_flow_rule
74 struct nft_flow_rule *nft_flow_rule_create(struct net *net, const struct nft_rule *rule);
75 int nft_flow_rule_stats(const struct nft_chain *chain, const struct nft_rule *rule);
/linux-master/net/sched/
H A Dcls_matchall.c94 cls_mall.rule = flow_rule_alloc(tcf_exts_num_actions(&head->exts));
95 if (!cls_mall.rule)
102 err = tc_setup_offload_action(&cls_mall.rule->action, &head->exts,
105 kfree(cls_mall.rule);
113 tc_cleanup_offload_action(&cls_mall.rule->action);
114 kfree(cls_mall.rule);
284 cls_mall.rule = flow_rule_alloc(tcf_exts_num_actions(&head->exts));
285 if (!cls_mall.rule)
293 err = tc_setup_offload_action(&cls_mall.rule->action, &head->exts,
296 kfree(cls_mall.rule);
[all...]
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c247 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
263 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) {
266 flow_rule_match_meta(rule, &match);
271 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) {
274 flow_rule_match_control(rule, &match);
284 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
287 flow_rule_match_basic(rule, &match);
296 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
299 flow_rule_match_eth_addrs(rule, &match);
306 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLA
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c123 struct ice_fdir_fltr *rule; local
131 rule = ice_fdir_find_fltr_by_idx(hw, fsp->location);
133 if (!rule || fsp->location != rule->fltr_id) {
138 fsp->flow_type = ice_fltr_to_ethtool_flow(rule->flow_type);
145 fsp->h_u.ether_spec = rule->eth;
146 fsp->m_u.ether_spec = rule->eth_mask;
151 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header;
152 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos;
153 fsp->h_u.usr_ip4_spec.ip4src = rule
[all...]
H A Dice_tc_lib.c365 * @list: list of advance rule elements
366 * @rule_info: pointer to information about rule
806 * results into order of switch rule evaluation.
1033 dev_dbg(dev, "add switch rule for TC:%u vsi_idx:%u, lkups_cnt:%u\n",
1043 dev_dbg(dev, "add switch rule action to forward to queue:%u (HW queue %u), lkups_cnt:%u\n",
1091 dev_dbg(dev, "added switch rule (lkups_cnt %u, flags 0x%x), action is forward to TC %u, rid %u, rule_id %u, vsi_idx %u\n",
1097 dev_dbg(dev, "added switch rule (lkups_cnt %u, flags 0x%x), action is forward to queue: %u (HW queue %u) , rid %u, rule_id %u\n",
1103 dev_dbg(dev, "added switch rule (lkups_cnt %u, flags 0x%x), action is drop, rid %u, rule_id %u\n",
1300 ice_get_tunnel_device(struct net_device *dev, struct flow_rule *rule) argument
1308 flow_action_for_each(i, act, &rule
1352 ice_parse_tunnel_attr(struct net_device *dev, struct flow_rule *rule, struct ice_tc_flower_fltr *fltr) argument
1458 struct flow_rule *rule = flow_cls_offload_flow_rule(f); local
1891 struct flow_rule *rule = flow_cls_offload_flow_rule(cls_flower); local
[all...]
/linux-master/tools/testing/selftests/x86/
H A DMakefile45 define gen-target-rule-32
50 define gen-target-rule-64
59 $(foreach t,$(TARGETS_C_32BIT_ALL),$(eval $(call gen-target-rule-32,$(t))))
66 $(foreach t,$(TARGETS_C_64BIT_ALL),$(eval $(call gen-target-rule-64,$(t))))
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c964 struct igc_nfc_rule *rule = NULL; local
970 rule = igc_get_nfc_rule(adapter, fsp->location);
971 if (!rule)
975 fsp->ring_cookie = rule->action;
977 if (rule->filter.match_flags & IGC_FILTER_FLAG_ETHER_TYPE) {
978 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype);
982 if (rule->filter.match_flags & IGC_FILTER_FLAG_VLAN_ETYPE) {
984 fsp->h_ext.vlan_etype = htons(rule->filter.vlan_etype);
988 if (rule->filter.match_flags & IGC_FILTER_FLAG_VLAN_TCI) {
990 fsp->h_ext.vlan_tci = htons(rule
1024 struct igc_nfc_rule *rule; local
1216 igc_ethtool_init_nfc_rule(struct igc_nfc_rule *rule, const struct ethtool_rx_flow_spec *fsp) argument
1298 igc_ethtool_check_nfc_rule(struct igc_adapter *adapter, struct igc_nfc_rule *rule) argument
1328 struct igc_nfc_rule *rule, *old_rule; local
1405 struct igc_nfc_rule *rule; local
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c5173 struct hclge_fd_rule *rule)
5175 hlist_del(&rule->rule_node);
5176 kfree(rule);
5188 /* 1) if the new state is TO_ADD, just replace the old rule
5190 * new rule will be configured to the hardware.
5191 * 2) if the new state is ACTIVE, it means the new rule
5193 * the old rule node with the same location.
5195 * unnecessary to update the rule number and fd_bmap.
5207 /* if new request is TO_DEL, and old rule is existent
5208 * 1) the state of old rule i
5172 hclge_fd_free_node(struct hclge_dev *hdev, struct hclge_fd_rule *rule) argument
5232 struct hclge_fd_rule *rule; local
5250 hclge_fd_insert_rule_node(struct hlist_head *hlist, struct hclge_fd_rule *rule, struct hclge_fd_rule *parent) argument
5316 hclge_fd_check_user_def_refcnt(struct hclge_dev *hdev, struct hclge_fd_rule *rule) argument
5352 hclge_fd_inc_user_def_refcnt(struct hclge_dev *hdev, struct hclge_fd_rule *rule) argument
5369 hclge_fd_dec_user_def_refcnt(struct hclge_dev *hdev, struct hclge_fd_rule *rule) argument
5669 hclge_fd_convert_tuple(u32 tuple_bit, u8 *key_x, u8 *key_y, struct hclge_fd_rule *rule) argument
5750 hclge_fd_convert_meta_data(struct hclge_fd_key_cfg *key_cfg, __le32 *key_x, __le32 *key_y, struct hclge_fd_rule *rule) argument
5792 hclge_config_key(struct hclge_dev *hdev, u8 stage, struct hclge_fd_rule *rule) argument
5849 hclge_config_action(struct hclge_dev *hdev, u8 stage, struct hclge_fd_rule *rule) argument
6221 hclge_fd_get_tcpip4_tuple(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule, u8 ip_proto) argument
6250 hclge_fd_get_ip4_tuple(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule) argument
6273 hclge_fd_get_tcpip6_tuple(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule, u8 ip_proto) argument
6302 hclge_fd_get_ip6_tuple(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule) argument
6325 hclge_fd_get_ether_tuple(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule) argument
6338 hclge_fd_get_user_def_tuple(struct hclge_fd_user_def_info *info, struct hclge_fd_rule *rule) argument
6361 hclge_fd_get_tuple(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule, struct hclge_fd_user_def_info *info) argument
6413 hclge_fd_config_rule(struct hclge_dev *hdev, struct hclge_fd_rule *rule) argument
6425 hclge_add_fd_entry_common(struct hclge_dev *hdev, struct hclge_fd_rule *rule) argument
6518 struct hclge_fd_rule *rule; local
6611 struct hclge_fd_rule *rule; local
6650 struct hclge_fd_rule *rule; local
6690 hclge_fd_get_tcpip4_info(struct hclge_fd_rule *rule, struct ethtool_tcpip4_spec *spec, struct ethtool_tcpip4_spec *spec_mask) argument
6715 hclge_fd_get_ip4_info(struct hclge_fd_rule *rule, struct ethtool_usrip4_spec *spec, struct ethtool_usrip4_spec *spec_mask) argument
6738 hclge_fd_get_tcpip6_info(struct hclge_fd_rule *rule, struct ethtool_tcpip6_spec *spec, struct ethtool_tcpip6_spec *spec_mask) argument
6771 hclge_fd_get_ip6_info(struct hclge_fd_rule *rule, struct ethtool_usrip6_spec *spec, struct ethtool_usrip6_spec *spec_mask) argument
6798 hclge_fd_get_ether_info(struct hclge_fd_rule *rule, struct ethhdr *spec, struct ethhdr *spec_mask) argument
6820 hclge_fd_get_user_def_info(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule) argument
6838 hclge_fd_get_ext_info(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule) argument
6863 struct hclge_fd_rule *rule = NULL; local
6876 hclge_fd_get_ring_cookie(struct ethtool_rx_flow_spec *fs, struct hclge_fd_rule *rule) argument
6895 struct hclge_fd_rule *rule = NULL; local
6958 struct hclge_fd_rule *rule; local
7017 struct hclge_fd_rule *rule = NULL; local
7028 hclge_fd_build_arfs_rule(const struct hclge_fd_rule_tuples *tuples, struct hclge_fd_rule *rule) argument
7059 struct hclge_fd_rule *rule; local
7116 struct hclge_fd_rule *rule; local
7141 struct hclge_fd_rule *rule; local
7172 hclge_get_cls_key_basic(const struct flow_rule *flow, struct hclge_fd_rule *rule) argument
7197 hclge_get_cls_key_mac(const struct flow_rule *flow, struct hclge_fd_rule *rule) argument
7214 hclge_get_cls_key_vlan(const struct flow_rule *flow, struct hclge_fd_rule *rule) argument
7230 hclge_get_cls_key_ip(const struct flow_rule *flow, struct hclge_fd_rule *rule, struct netlink_ext_ack *extack) argument
7276 hclge_get_cls_key_port(const struct flow_rule *flow, struct hclge_fd_rule *rule) argument
7294 hclge_parse_cls_flower(struct hclge_dev *hdev, struct flow_cls_offload *cls_flower, struct hclge_fd_rule *rule) argument
7360 struct hclge_fd_rule *rule; local
7403 struct hclge_fd_rule *rule; local
7419 struct hclge_fd_rule *rule; local
7454 struct hclge_fd_rule *rule; local
[all...]
/linux-master/include/linux/
H A Dmroute6.h68 bool ip6mr_rule_default(const struct fib_rule *rule);
70 static inline bool ip6mr_rule_default(const struct fib_rule *rule) argument
/linux-master/tools/testing/selftests/net/
H A Dcmsg_so_mark.sh30 ip -netns $NS rule add fwmark $MARK lookup 300
31 ip -6 -netns $NS rule add fwmark $MARK lookup 300
/linux-master/sound/soc/codecs/
H A Dframer-codec.c92 struct snd_pcm_hw_rule *rule)
94 struct snd_soc_dai *dai = rule->private;
101 struct snd_pcm_hw_rule *rule)
103 struct snd_soc_dai *dai = rule->private;
138 struct snd_pcm_hw_rule *rule)
140 struct snd_soc_dai *dai = rule->private;
147 struct snd_pcm_hw_rule *rule)
149 struct snd_soc_dai *dai = rule->private;
218 dev_err(dai->dev, "Failed to add channels rule (%d)\n", ret);
226 dev_err(dai->dev, "Failed to add format rule (
91 framer_dai_hw_rule_playback_channels_by_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
100 framer_dai_hw_rule_capture_channels_by_format(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
137 framer_dai_hw_rule_playback_format_by_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
146 framer_dai_hw_rule_capture_format_by_channels(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_vcap_impl.c270 struct vcap_rule *rule,
287 lookup = lan966x_vcap_is1_cid_to_lookup(rule->vcap_chain_id);
292 lookup = lan966x_vcap_is2_cid_to_lookup(rule->vcap_chain_id);
316 static bool lan966x_vcap_is2_is_first_chain(struct vcap_rule *rule) argument
318 return (rule->vcap_chain_id >= LAN966X_VCAP_CID_IS2_L0 &&
319 rule->vcap_chain_id < LAN966X_VCAP_CID_IS2_L1);
324 struct vcap_rule *rule)
329 if (vcap_rule_get_key_u32(rule, VCAP_KF_IF_IGR_PORT_MASK,
331 vcap_rule_add_key_u32(rule, VCAP_KF_IF_IGR_PORT_MASK, 0,
334 lookup = lan966x_vcap_is1_cid_to_lookup(rule
268 lan966x_vcap_validate_keyset(struct net_device *dev, struct vcap_admin *admin, struct vcap_rule *rule, struct vcap_keyset_list *kslist, u16 l3_proto) argument
322 lan966x_vcap_is1_add_default_fields(struct lan966x_port *port, struct vcap_admin *admin, struct vcap_rule *rule) argument
338 lan966x_vcap_is2_add_default_fields(struct lan966x_port *port, struct vcap_admin *admin, struct vcap_rule *rule) argument
357 lan966x_vcap_es0_add_default_fields(struct lan966x_port *port, struct vcap_admin *admin, struct vcap_rule *rule) argument
365 lan966x_vcap_add_default_fields(struct net_device *dev, struct vcap_admin *admin, struct vcap_rule *rule) argument
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/flower/
H A Doffload.c139 static bool nfp_flower_check_higher_than_mac(struct flow_rule *rule) argument
141 return flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS) ||
142 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS) ||
143 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS) ||
144 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP);
147 static bool nfp_flower_check_higher_than_l3(struct flow_rule *rule) argument
149 return flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS) ||
150 flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP);
241 struct flow_rule *rule,
245 struct flow_dissector *dissector = rule
238 nfp_flower_calculate_key_layers(struct nfp_app *app, struct net_device *netdev, struct nfp_fl_key_ls *ret_key_ls, struct flow_rule *rule, enum nfp_flower_tun_type *tun_type, struct netlink_ext_ack *extack) argument
1300 struct flow_rule *rule = flow_cls_offload_flow_rule(flow); local
1331 struct flow_rule *rule = flow_cls_offload_flow_rule(flow); local
[all...]
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...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c237 struct flow_action *actions = &cls->rule->action;
251 entry = &cls->rule->action.entries[0];
254 err = otx2_policer_validate(&cls->rule->action, entry, extack);
568 struct flow_msg *flow_mask, struct flow_rule *rule,
575 flow_rule_match_cvlan(rule, &match);
577 flow_rule_match_vlan(rule, &match);
589 flow_action_for_each(i, act, &rule->action) {
592 "vlan tpid 0x%x with vlan_id %d is not supported for DROP rule.\n",
631 struct flow_rule *rule; local
634 rule
567 otx2_tc_process_vlan(struct otx2_nic *nic, struct flow_msg *flow_spec, struct flow_msg *flow_mask, struct flow_rule *rule, struct npc_install_flow_req *req, bool is_inner) argument
[all...]

Completed in 255 milliseconds

1234567891011>>