/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | ingress_lgcy.c | 11 if (vport->ingress.legacy.drop_rule) { in esw_acl_ingress_lgcy_rules_destroy() 13 vport->ingress.legacy.drop_rule = NULL; in esw_acl_ingress_lgcy_rules_destroy() 95 vport->ingress.legacy.drop_grp = g; in esw_acl_ingress_lgcy_groups_create() 133 if (vport->ingress.legacy.drop_grp) { in esw_acl_ingress_lgcy_groups_destroy() 184 if (!vport->ingress.acl) { in esw_acl_ingress_lgcy_setup() 188 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_lgcy_setup() 189 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_lgcy_setup() 190 vport->ingress.acl = NULL; in esw_acl_ingress_lgcy_setup() 243 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_lgcy_setup() 250 vport->ingress.allow_rule = NULL; in esw_acl_ingress_lgcy_setup() [all …]
|
H A D | ingress_ofld.c | 51 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create() 53 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create() 54 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create() 58 vport->ingress.allow_rule = NULL; in esw_acl_ingress_prio_tag_create() 85 vport->ingress.offloads.modify_metadata = in esw_acl_ingress_mod_metadata_create() 132 if (!vport->ingress.acl) { in esw_acl_ingress_src_port_drop_create() 160 if (!vport->ingress.offloads.drop_rule) in esw_acl_ingress_src_port_drop_destroy() 235 vport->ingress.offloads.drop_grp = g; in esw_acl_ingress_ofld_groups_create() 336 if (IS_ERR(vport->ingress.acl)) { in acl_ingress_ofld_setup() 337 err = PTR_ERR(vport->ingress.acl); in acl_ingress_ofld_setup() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower.sh | 44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 110 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 118 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower [all …]
|
H A D | tc_chains.sh | 88 tc chain add dev $h2 ingress 97 tc chain add dev $h2 ingress chain 1 115 tc chain del dev $h2 ingress 118 tc chain del dev $h2 ingress chain 1 128 tc chain add dev $h2 ingress protocol ip \ 130 tc chain add dev $h2 ingress chain 1 protocol ip \ 133 tc filter add dev $h2 ingress protocol ip pref 1 handle 1101 \ 137 tc filter add dev $h2 ingress protocol ip pref 1 handle 1102 \ 154 tc filter del dev $h2 ingress protocol ip pref 1 handle 1102 \ 159 tc chain del dev $h2 ingress chain 1 [all …]
|
H A D | router_multicast.sh | 50 tc qdisc add dev $h1 ingress 55 tc qdisc del dev $h1 ingress 76 tc qdisc add dev $h2 ingress 81 tc qdisc del dev $h2 ingress 102 tc qdisc add dev $h3 ingress 107 tc qdisc del dev $h3 ingress 132 tc qdisc add dev $rp3 ingress 137 tc qdisc del dev $rp3 ingress 357 tc filter del dev $h3 ingress protocol ip pref 1 handle 1 flower 358 tc filter del dev $h2 ingress protocol ip pref 1 handle 1 flower [all …]
|
H A D | mirror_gre_changes.sh | 75 mirror_install $swp1 ingress $tundev \ 87 tc filter del dev $h3 ingress pref 77 88 mirror_uninstall $swp1 ingress 101 mirror_install $swp1 ingress $tundev "matchall" 107 mirror_uninstall $swp1 ingress 121 mirror_install $swp1 ingress $tundev "matchall" 131 mirror_uninstall $swp1 ingress 152 mirror_uninstall $swp1 ingress 178 mirror_uninstall $swp1 ingress 181 mirror_uninstall $swp1 ingress [all …]
|
H A D | tc_actions.sh | 66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 117 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 118 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 171 mirred ingress redirect dev $h1 218 action mirred ingress redirect dev $h1 221 action mirred ingress redirect dev $h1 250 tc filter add dev $swp1 ingress pref 20 chain 0 handle 20 flower \ 263 tc filter del dev $swp1 ingress pref 20 chain 0 handle 20 flower [all …]
|
H A D | tc_police.sh | 139 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes) 141 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes) 189 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes) 191 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes) 259 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes) 261 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes) 269 local t0=$(tc_rule_stats_get $h3 1 ingress .bytes) 271 local t1=$(tc_rule_stats_get $h3 1 ingress .bytes) 311 local t0=$(tc_rule_stats_get $h2 1 ingress .packets) 313 local t1=$(tc_rule_stats_get $h2 1 ingress .packets) [all …]
|
H A D | tc_mpls_l2vpn.sh | 81 tc qdisc add dev $edge1 ingress 82 tc filter add dev $edge1 ingress \ 89 tc qdisc add dev $mpls1 ingress 90 tc filter add dev $mpls1 ingress \ 102 tc qdisc del dev $mpls1 ingress 105 tc qdisc del dev $edge1 ingress 110 tc qdisc add dev $edge2 ingress 118 tc qdisc add dev $mpls2 ingress 119 tc filter add dev $mpls2 ingress \ 131 tc qdisc del dev $mpls2 ingress [all …]
|
H A D | tc_flower_cfm.sh | 60 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \ 62 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \ 85 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower 86 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower 96 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \ 98 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \ 100 tc filter add dev $h2 ingress protocol cfm pref 1 handle 103 \ 131 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower 132 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower 143 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \ [all …]
|
H A D | mirror_gre.sh | 69 ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2) 92 mirror_install $swp1 ingress gt4 "matchall" 97 mirror_uninstall $swp1 ingress 101 mirror_install $swp1 ingress gt4 "matchall" 106 mirror_uninstall $swp1 ingress 112 full_test_span_gre_dir gt4 ingress 8 0 "mirror to gretap" 118 full_test_span_gre_dir gt6 ingress 8 0 "mirror to ip6gretap" 124 test_span_gre_mac gt4 ingress "mirror to gretap" 130 test_span_gre_mac gt6 ingress "mirror to ip6gretap"
|
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
H A D | tc_flower.sh | 895 tc chain add dev $h2 ingress chain 4 908 tc filter add dev $h2 ingress protocol ip \ 911 tc filter add dev $h2 ingress chain 1 protocol ip \ 914 tc filter add dev $h2 ingress chain 2 protocol ip \ 917 tc filter add dev $h2 ingress chain 3 protocol ip \ 920 tc filter add dev $h2 ingress chain 4 protocol ip \ 937 tc filter del dev $h2 ingress chain $i \ 940 tc filter del dev $h2 ingress chain $i \ 946 tc chain del dev $h2 ingress chain $i 1117 tc filter add dev $h2 ingress pref 2 proto ipv4 \ [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flow.c | 41 binding->ingress == ingress) in mlxsw_sp_flow_block_lookup() 55 bool ingress, in mlxsw_sp_flow_block_bind() argument 84 binding->ingress = ingress; in mlxsw_sp_flow_block_bind() 92 if (ingress) in mlxsw_sp_flow_block_bind() 110 bool ingress) in mlxsw_sp_flow_block_unbind() argument 120 if (ingress) in mlxsw_sp_flow_block_unbind() 203 bool ingress) in mlxsw_sp_setup_tc_block_bind() argument 234 if (ingress) in mlxsw_sp_setup_tc_block_bind() 254 bool ingress) in mlxsw_sp_setup_tc_block_unbind() argument 266 if (ingress) in mlxsw_sp_setup_tc_block_unbind() [all …]
|
H A D | spectrum_matchall.c | 50 mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add() 56 trigger = mall_entry->ingress ? MLXSW_SP_SPAN_TRIGGER_INGRESS : in mlxsw_sp_mall_port_mirror_add() 84 trigger = mall_entry->ingress ? MLXSW_SP_SPAN_TRIGGER_INGRESS : in mlxsw_sp_mall_port_mirror_del() 111 if (mall_entry->ingress) in mlxsw_sp_mall_port_sample_add() 140 if (mall_entry->ingress) in mlxsw_sp_mall_port_sample_del() 253 if (flower_prio_valid && mall_entry->ingress && in mlxsw_sp_mall_replace() 259 if (flower_prio_valid && !mall_entry->ingress && in mlxsw_sp_mall_replace() 293 if (mall_entry->ingress) in mlxsw_sp_mall_replace() 323 if (mall_entry->ingress) in mlxsw_sp_mall_destroy() 386 if (!mall_entry->ingress) { in mlxsw_sp1_mall_sample_add() [all …]
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_matchall.c | 7 bool ingress) in lan966x_tc_matchall_add() argument 21 f->cookie, ingress, in lan966x_tc_matchall_add() 25 ingress, f->common.extack); in lan966x_tc_matchall_add() 41 bool ingress) in lan966x_tc_matchall_del() argument 48 return lan966x_mirror_port_del(port, ingress, in lan966x_tc_matchall_del() 59 bool ingress) in lan966x_tc_matchall_stats() argument 65 lan966x_mirror_port_stats(port, &f->stats, ingress); in lan966x_tc_matchall_stats() 77 bool ingress) in lan966x_tc_matchall() argument 81 return lan966x_tc_matchall_add(port, f, ingress); in lan966x_tc_matchall() 83 return lan966x_tc_matchall_del(port, f, ingress); in lan966x_tc_matchall() [all …]
|
H A D | lan966x_mirror.c | 8 bool ingress, in lan966x_mirror_port_add() argument 22 if (lan966x->mirror_mask[ingress] & BIT(port->chip_port)) { in lan966x_mirror_port_add() 41 lan966x->mirror_mask[ingress] |= BIT(port->chip_port); in lan966x_mirror_port_add() 46 if (ingress) { in lan966x_mirror_port_add() 57 if (ingress) in lan966x_mirror_port_add() 66 bool ingress, in lan966x_mirror_port_del() argument 77 lan966x->mirror_mask[ingress] &= ~BIT(port->chip_port); in lan966x_mirror_port_del() 79 if (ingress) { in lan966x_mirror_port_del() 95 if (ingress) in lan966x_mirror_port_del() 105 bool ingress) in lan966x_mirror_port_stats() argument [all …]
|
H A D | lan966x_tc.c | 72 void *cb_priv, bool ingress) in lan966x_tc_block_cb() argument 78 return lan966x_tc_matchall(port, type_data, ingress); in lan966x_tc_block_cb() 80 return lan966x_tc_flower(port, type_data, ingress); in lan966x_tc_block_cb() 102 bool ingress; in lan966x_tc_setup_block() local 107 ingress = true; in lan966x_tc_setup_block() 110 ingress = false; in lan966x_tc_setup_block() 116 cb, port, port, ingress); in lan966x_tc_setup_block()
|
/linux/kernel/bpf/ |
H A D | tcx.c | 44 tcx_entry_update(dev, entry_new, ingress); in tcx_prog_attach() 46 tcx_skeys_inc(ingress); in tcx_prog_attach() 73 entry = tcx_entry_fetch(dev, ingress); in tcx_prog_detach() 85 tcx_skeys_dec(ingress); in tcx_prog_detach() 103 entry = tcx_entry_fetch(dev, ingress); in tcx_uninstall() 109 tcx_entry_update(dev, entry_new, ingress); in tcx_uninstall() 116 tcx_skeys_dec(ingress); in tcx_uninstall() 160 tcx_skeys_inc(ingress); in tcx_link_prog_attach() 181 entry = tcx_entry_fetch(dev, ingress); in tcx_link_release() 192 tcx_skeys_dec(ingress); in tcx_link_release() [all …]
|
/linux/include/net/ |
H A D | tcx.h | 29 skb->tc_at_ingress = ingress; in tcx_set_ingress() 59 bool ingress) in tcx_entry_update() argument 62 if (ingress) in tcx_entry_update() 69 tcx_entry_fetch(struct net_device *dev, bool ingress) in tcx_entry_fetch() argument 72 if (ingress) in tcx_entry_fetch() 98 struct bpf_mprog_entry *entry = tcx_entry_fetch(dev, ingress); in tcx_entry_fetch_or_create() 110 static inline void tcx_skeys_inc(bool ingress) in tcx_skeys_inc() argument 113 if (ingress) in tcx_skeys_inc() 119 static inline void tcx_skeys_dec(bool ingress) in tcx_skeys_dec() argument 121 if (ingress) in tcx_skeys_dec() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_matchall.c | 279 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free() 396 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter() 397 tc_port_matchall->ingress.bytes = 0; in cxgb4_matchall_free_filter() 398 tc_port_matchall->ingress.last_used = 0; in cxgb4_matchall_free_filter() 405 bool ingress) in cxgb4_tc_matchall_replace() argument 414 if (ingress) { in cxgb4_tc_matchall_replace() 415 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace() 446 bool ingress) in cxgb4_tc_matchall_destroy() argument 453 if (ingress) { in cxgb4_tc_matchall_destroy() 487 ingress = &tc_port_matchall->ingress; in cxgb4_tc_matchall_stats() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_restrictions.sh | 177 tc filter add dev $swp1 ingress protocol all pref 1 handle 101 \ 207 tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \ 219 tc filter add dev $swp1 ingress protocol all pref 9 handle 102 \ 302 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ 318 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ 323 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ 328 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ 335 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ 342 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ 347 tc filter add dev $swp1 ingress pref 1 proto ip handle 101 \ [all …]
|
H A D | tc_sample.sh | 250 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 267 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 295 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 303 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall 323 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 556 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \ 560 tc filter add dev $rp1 ingress protocol ip pref 2 handle 102 flower \ 570 tc filter del dev $rp1 ingress protocol ip pref 2 handle 102 flower 571 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower 626 __tc_sample_acl_rate_test ingress $rp1 [all …]
|
H A D | port_range_occ.sh | 73 tc filter add dev $swp1 ingress pref 1 handle 101 proto ip \ 79 tc filter add dev $swp1 ingress pref 1 handle 102 proto ip \ 82 tc filter add dev $swp1 ingress pref 2 handle 103 proto ipv6 \ 85 tc filter add dev $swp1 ingress pref 2 handle 104 proto ipv6 \ 91 tc filter del dev $swp1 ingress pref 2 handle 104 flower 92 tc filter del dev $swp1 ingress pref 2 handle 103 flower 93 tc filter del dev $swp1 ingress pref 1 handle 102 flower 97 tc filter del dev $swp1 ingress pref 1 handle 101 flower
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_matchall.c | 30 bool ingress, in sparx5_tc_matchall_parse_action() argument 35 entry->ingress = ingress; in sparx5_tc_matchall_parse_action() 48 bool ingress) in sparx5_tc_matchall_replace() argument 70 ingress, in sparx5_tc_matchall_replace() 140 bool ingress) in sparx5_tc_matchall_destroy() argument 169 bool ingress) in sparx5_tc_matchall_stats() argument 192 bool ingress) in sparx5_tc_matchall() argument 196 return sparx5_tc_matchall_replace(ndev, tmo, ingress); in sparx5_tc_matchall() 198 return sparx5_tc_matchall_destroy(ndev, tmo, ingress); in sparx5_tc_matchall() 200 return sparx5_tc_matchall_stats(ndev, tmo, ingress); in sparx5_tc_matchall()
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flow.c | 81 bool ingress) in prestera_flow_block_create() argument 96 block->ingress = ingress; in prestera_flow_block_create() 176 bool ingress) in prestera_flow_block_get() argument 184 block = prestera_flow_block_create(sw, f->net, ingress); in prestera_flow_block_get() 220 struct flow_block_offload *f, bool ingress) in prestera_setup_flow_block_bind() argument 243 if (ingress) in prestera_setup_flow_block_bind() 257 struct flow_block_offload *f, bool ingress) in prestera_setup_flow_block_unbind() argument 281 if (ingress) in prestera_setup_flow_block_unbind() 289 bool ingress) in prestera_setup_flow_block_clsact() argument 295 return prestera_setup_flow_block_bind(port, f, ingress); in prestera_setup_flow_block_clsact() [all …]
|