Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 472) sorted by last modified time

12345678910>>...19

/linux/tools/testing/selftests/net/netfilter/
H A Dnft_audit.sh28 reset rules t c
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-gen.rst38 The rules of BPF static linking are mostly the same as for user-space
/linux/net/wireless/
H A Dnl80211.c13798 rule = &rdev->coalesce->rules[i]; in nl80211_send_coalesce_rules()
13874 rule = &coalesce->rules[i]; in cfg80211_rdev_free_coalesce()
13879 kfree(coalesce->rules); in cfg80211_rdev_free_coalesce()
14000 new_coalesce.rules = kcalloc(n_rules, sizeof(new_coalesce.rules[0]), in nl80211_set_coalesce()
14002 if (!new_coalesce.rules) in nl80211_set_coalesce()
14011 &new_coalesce.rules[i]); in nl80211_set_coalesce()
14033 tmp_rule = &new_coalesce.rules[i]; in nl80211_set_coalesce()
14040 kfree(new_coalesce.rules); in nl80211_set_coalesce()
/linux/net/netfilter/
H A Dnf_tables_api.c548 list_for_each_entry(rule, &ctx->chain->rules, list) { in nft_delrule_by_chain()
2512 INIT_LIST_HEAD(&chain->rules); in nf_tables_addchain()
3005 list_for_each_entry(rule, &chain->rules, list) { in nf_tables_delchain()
3369 list_for_each_entry_rcu(rule, &chain->rules, list) { in __nft_rule_lookup()
3537 list_for_each_entry_rcu(rule, &chain->rules, list) { in __nf_tables_dump_rules()
3836 list_for_each_entry(rule, &chain->rules, list) { in nft_chain_validate()
4143 list_add_tail_rcu(&rule->list, &chain->rules); in nf_tables_newrule()
4148 list_add_rcu(&rule->list, &chain->rules); in nf_tables_newrule()
9577 list_for_each_entry(rule, &chain->rules, list) { in nf_tables_commit_chain_prepare()
9593 list_for_each_entry(rule, &chain->rules, list) { in nf_tables_commit_chain_prepare()
[all …]
H A Dnft_set_pipapo.c644 if (unlikely(rules == 0)) in pipapo_realloc_mt()
648 if (rules > old_rules && f->rules_alloc > rules) in pipapo_realloc_mt()
652 if (rules < old_rules) { in pipapo_realloc_mt()
662 if (rules > extra && in pipapo_realloc_mt()
673 if (rules > old_rules) { in pipapo_realloc_mt()
978 ret = pipapo_resize(f, f->rules, f->rules + 1); in pipapo_insert()
982 f->rules++; in pipapo_insert()
1377 rulemap[i].to = f->rules;
1471 if (src->rules > 0) {
1672 if (pipapo_resize(f, f->rules, f->rules - rulemap[i].n)) {
[all …]
H A Dnft_set_pipapo.h116 unsigned int rules; member
179 int pipapo_refill(unsigned long *map, unsigned int len, unsigned int rules,
253 unsigned long rules; in pipapo_estimate_size() local
262 rules = ilog2(desc->field_len[i] * BITS_PER_BYTE) * 2; in pipapo_estimate_size()
263 entry_size += rules * in pipapo_estimate_size()
266 entry_size += rules * sizeof(union nft_pipapo_map_bucket); in pipapo_estimate_size()
/linux/net/core/
H A Dfib_rules.c1212 static void attach_rules(struct list_head *rules, struct net_device *dev) in attach_rules() argument
1216 list_for_each_entry(rule, rules, list) { in attach_rules()
1226 static void detach_rules(struct list_head *rules, struct net_device *dev) in detach_rules() argument
1230 list_for_each_entry(rule, rules, list) { in detach_rules()
/linux/lib/
H A DKconfig.debug552 Validate frame pointer rules at compile-time. This helps ensure that
586 To ensure that generic code follows the above rules, this
1349 If a deadlock is impossible (i.e. the locking rules, as
1367 that the lock nesting rules for PREEMPT_RT enabled kernels are
/linux/include/net/netfilter/
H A Dnf_tables.h1102 struct list_head rules; member
/linux/include/net/
H A Dcfg80211.h3569 struct cfg80211_coalesce_rules *rules; member
/linux/include/linux/
H A Dphy.h1144 unsigned long rules);
1154 unsigned long rules);
1166 unsigned long *rules);
/linux/drivers/net/phy/
H A Dair_en8811h.c141 unsigned long rules; member
549 priv->led[index].rules = 0; in air_hw_led_on_set()
615 priv->led[index].rules = 0; in air_led_blink_set()
640 priv->led[index].rules = 0; in air_led_brightness_set()
646 unsigned long *rules) in air_led_hw_control_get() argument
653 *rules = priv->led[index].rules; in air_led_hw_control_get()
659 unsigned long rules) in air_led_hw_control_set() argument
668 priv->led[index].rules = rules; in air_led_hw_control_set()
706 priv->led[index].rules = 0; in air_led_hw_control_set()
797 unsigned long rules) in en8811h_led_hw_is_supported() argument
[all …]
H A Dmarvell.c3257 unsigned long rules; member
3283 .rules = BIT(TRIGGER_NETDEV_TX),
3295 .rules = 0,
3332 .rules = 0,
3359 .rules = BIT(TRIGGER_NETDEV_TX),
3372 .rules = 0,
3384 if (marvell_rules[i].rules == rules) { in marvell_find_led_mode()
3425 *rules = marvell_rules[i].rules; in marvell_find_led_rules()
3457 unsigned long rules) in m88e1318_led_hw_is_supported() argument
3475 unsigned long rules) in m88e1318_led_hw_control_set() argument
[all …]
/linux/drivers/net/hyperv/
H A Dnetvsc_drv.c1660 u32 *rules) in netvsc_get_rxnfc() argument
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api.c931 list_for_each_entry(ri, &admin->rules, list) in vcap_rule_exists()
947 list_for_each_entry(ri, &admin->rules, list) in vcap_get_locked_rule()
965 list_for_each_entry(ri, &admin->rules, list) { in vcap_lookup_rule_by_cookie()
987 list_for_each_entry(elem, &admin->rules, list) { in vcap_admin_rule_count()
2115 list_for_each_entry(iter, &admin->rules, list) { in vcap_insert_rule()
2131 list_add_tail(&duprule->list, &admin->rules); in vcap_insert_rule()
2512 if (list_is_first(&ri->list, &admin->rules)) in vcap_fill_rule_gap()
2565 if (list_empty(&admin->rules)) { in vcap_del_rule()
3020 list_for_each_entry(ri, &admin->rules, list) { in vcap_enable_rules()
3078 list_for_each_entry(ri, &admin->rules, list) { in vcap_disable_rules()
[all …]
/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c158 list_for_each_entry(filter, &block->rules, list) in ocelot_find_vcap_filter_that_points_at()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dport_sel.c16 u8 rules) in mlx5_create_hash_flow_group() argument
29 MLX5_SET(create_flow_group_in, in, end_flow_index, rules - 1); in mlx5_create_hash_flow_group()
86 lag_definer->rules[idx] = mlx5_add_flow_rules(lag_definer->ft, in mlx5_lag_create_port_sel_table()
89 if (IS_ERR(lag_definer->rules[idx])) { in mlx5_lag_create_port_sel_table()
90 err = PTR_ERR(lag_definer->rules[idx]); in mlx5_lag_create_port_sel_table()
93 mlx5_del_flow_rules(lag_definer->rules[idx]); in mlx5_lag_create_port_sel_table()
348 mlx5_del_flow_rules(lag_definer->rules[idx]); in mlx5_lag_destroy_definer()
572 err = mlx5_modify_rule_destination(def->rules[idx], &dest, NULL); in __mlx5_lag_modify_definers_destinations()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c36 struct mlx5_ttc_rule rules[MLX5_NUM_TT]; member
50 if (!IS_ERR_OR_NULL(ttc->rules[i].rule)) { in mlx5_cleanup_ttc_rules()
51 mlx5_del_flow_rules(ttc->rules[i].rule); in mlx5_cleanup_ttc_rules()
52 ttc->rules[i].rule = NULL; in mlx5_cleanup_ttc_rules()
316 struct mlx5_ttc_rule *rules; in mlx5_generate_ttc_table_rules() local
322 rules = ttc->rules; in mlx5_generate_ttc_table_rules()
324 struct mlx5_ttc_rule *rule = &rules[tt]; in mlx5_generate_ttc_table_rules()
500 struct mlx5_ttc_rule *rules; in mlx5_generate_inner_ttc_table_rules() local
506 rules = ttc->rules; in mlx5_generate_inner_ttc_table_rules()
509 struct mlx5_ttc_rule *rule = &rules[tt]; in mlx5_generate_inner_ttc_table_rules()
[all …]
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c5604 struct ethtool_rxnfc *info, u32 *rules) in mvpp2_ethtool_get_rxnfc() argument
5633 rules[loc++] = i; in mvpp2_ethtool_get_rxnfc()
/linux/drivers/net/ethernet/marvell/
H A Dmvneta.c4967 u32 *rules __always_unused) in mvneta_ethtool_get_rxnfc()
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c12702 u32 *rules __always_unused) in tg3_get_rxnfc()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_ethtool.c729 u32 *rules) in ena_get_rxnfc() argument
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c12 list_for_each_entry(rule, &priv->flow_block.rules, list) in sja1105_rule_find()
94 list_add(&rule->list, &priv->flow_block.rules); in sja1105_setup_bcast_policer()
166 list_add(&rule->list, &priv->flow_block.rules); in sja1105_setup_tc_policer()
528 INIT_LIST_HEAD(&priv->flow_block.rules); in sja1105_flower_setup()
540 list_for_each_safe(pos, n, &priv->flow_block.rules) { in sja1105_flower_teardown()
H A Dsja1105_main.c2453 list_for_each_entry(rule, &priv->flow_block.rules, list) { in sja1105_vlan_filtering()
/linux/drivers/hid/bpf/progs/
H A DREADME61 $> cat <EOF > /etc/udev/rules.d/99-load-hid-bpf-xppen-ArtistPro16Gen2.rules

12345678910>>...19