/openbmc/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 …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
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 102 fail_test_span_gre_dir $tundev ingress 107 mirror_uninstall $swp1 ingress 131 mirror_uninstall $swp1 ingress 152 mirror_uninstall $swp1 ingress 178 mirror_uninstall $swp1 ingress 181 mirror_uninstall $swp1 ingress 204 mirror_uninstall $swp1 ingress [all …]
|
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 | mirror_gre_vlan_bridge_1q.sh | 157 quick_test_span_gre_dir $tundev ingress 162 fail_test_span_gre_dir $tundev ingress 166 quick_test_span_gre_dir $tundev ingress 168 mirror_uninstall $swp1 ingress 191 quick_test_span_gre_dir $tundev ingress 195 fail_test_span_gre_dir $tundev ingress 203 mirror_uninstall $swp1 ingress 247 mirror_uninstall $swp1 ingress 297 mirror_uninstall $swp1 ingress 324 slow_path_trap_install $swp1 ingress [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 | mirror_gre.sh | 92 mirror_install $swp1 ingress gt4 "matchall $tcflags" 94 quick_test_span_gre_dir gt4 ingress 97 mirror_uninstall $swp1 ingress 98 fail_test_span_gre_dir gt4 ingress 101 mirror_install $swp1 ingress gt4 "matchall $tcflags" 103 quick_test_span_gre_dir gt4 ingress 106 mirror_uninstall $swp1 ingress 124 test_span_gre_mac gt4 ingress "mirror to gretap" 130 test_span_gre_mac gt6 ingress "mirror to ip6gretap" 136 slow_path_trap_install $swp1 ingress [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 | 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_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_actions.sh | 65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 154 tc filter del dev $swp1 ingress protocol ip pref 3 handle 103 flower 155 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 170 mirred ingress redirect dev $h1 217 action mirred ingress redirect dev $h1 [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_nh.sh | 78 mirror_install $swp1 ingress gt4 "matchall $tcflags" 84 fail_test_span_gre_dir gt4 ingress 87 quick_test_span_gre_dir gt4 ingress 90 mirror_uninstall $swp1 ingress 98 mirror_install $swp1 ingress gt6 "matchall $tcflags" 99 quick_test_span_gre_dir gt6 ingress 100 mirror_uninstall $swp1 ingress 107 slow_path_trap_install $swp1 ingress 113 slow_path_trap_uninstall $swp1 ingress
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/include/net/ |
H A D | tcx.h | 29 skb->tc_at_ingress = ingress; in tcx_set_ingress() 64 bool ingress) in tcx_entry_update() argument 67 if (ingress) in tcx_entry_update() 74 tcx_entry_fetch(struct net_device *dev, bool ingress) in tcx_entry_fetch() argument 77 if (ingress) in tcx_entry_fetch() 102 struct bpf_mprog_entry *entry = tcx_entry_fetch(dev, ingress); in tcx_entry_fetch_or_create() 114 static inline void tcx_skeys_inc(bool ingress) in tcx_skeys_inc() argument 117 if (ingress) in tcx_skeys_inc() 123 static inline void tcx_skeys_dec(bool ingress) in tcx_skeys_dec() argument 125 if (ingress) in tcx_skeys_dec() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | tc_actions.sh | 65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 116 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 117 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 154 tc filter del dev $swp1 ingress protocol ip pref 3 handle 103 flower 155 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 170 mirred ingress redirect dev $h1 217 action mirred ingress redirect dev $h1 [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | mirror_gre.sh | 122 fail_test_span_gre_dir $tundev ingress 126 quick_test_span_gre_dir $tundev ingress 127 mirror_uninstall $swp1 ingress 142 fail_test_span_gre_dir $tundev ingress 145 quick_test_span_gre_dir $tundev ingress 146 mirror_uninstall $swp1 ingress 161 fail_test_span_gre_dir $tundev ingress 163 quick_test_span_gre_dir $tundev ingress 165 mirror_uninstall $swp1 ingress 180 slow_path_trap_install $swp1 ingress [all …]
|
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 …]
|
/openbmc/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 …]
|