/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
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() 181 if (!vport->ingress.acl) { in esw_acl_ingress_lgcy_setup() 185 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_lgcy_setup() 186 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_lgcy_setup() 187 vport->ingress.acl = NULL; in esw_acl_ingress_lgcy_setup() 224 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_lgcy_setup() 231 vport->ingress.allow_rule = NULL; in esw_acl_ingress_lgcy_setup() [all …]
|
A D | ingress_ofld.c | 43 if (vport->ingress.offloads.modify_metadata_rule) { in esw_acl_ingress_prio_tag_create() 48 vport->ingress.allow_rule = mlx5_add_flow_rules(vport->ingress.acl, spec, in esw_acl_ingress_prio_tag_create() 50 if (IS_ERR(vport->ingress.allow_rule)) { in esw_acl_ingress_prio_tag_create() 51 err = PTR_ERR(vport->ingress.allow_rule); in esw_acl_ingress_prio_tag_create() 55 vport->ingress.allow_rule = NULL; in esw_acl_ingress_prio_tag_create() 82 vport->ingress.offloads.modify_metadata = in esw_acl_ingress_mod_metadata_create() 95 vport->ingress.offloads.modify_metadata_rule = in esw_acl_ingress_mod_metadata_create() 96 mlx5_add_flow_rules(vport->ingress.acl, in esw_acl_ingress_mod_metadata_create() 261 if (IS_ERR(vport->ingress.acl)) { in esw_acl_ingress_ofld_setup() 262 err = PTR_ERR(vport->ingress.acl); in esw_acl_ingress_ofld_setup() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
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 …]
|
A D | mirror_gre_changes.sh | 86 tc filter del dev $h3 ingress pref 77 87 mirror_uninstall $swp1 ingress 101 fail_test_span_gre_dir $tundev ingress 106 mirror_uninstall $swp1 ingress 121 fail_test_span_gre_dir $tundev ingress 130 mirror_uninstall $swp1 ingress 151 mirror_uninstall $swp1 ingress 177 mirror_uninstall $swp1 ingress 180 mirror_uninstall $swp1 ingress 203 mirror_uninstall $swp1 ingress [all …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
A D | tc_police.sh | 137 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes) 139 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes) 187 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes) 189 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes) 257 local t0=$(tc_rule_stats_get $h2 1 ingress .bytes) 259 local t1=$(tc_rule_stats_get $h2 1 ingress .bytes) 267 local t0=$(tc_rule_stats_get $h3 1 ingress .bytes) 269 local t1=$(tc_rule_stats_get $h3 1 ingress .bytes) 287 police_mirror_common_test $rp1 ingress "police rx and mirror" 309 local t0=$(tc_rule_stats_get $h2 1 ingress .packets) [all …]
|
A D | tc_actions.sh | 62 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 71 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 81 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 83 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 92 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 113 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 114 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 151 tc filter del dev $swp1 ingress protocol ip pref 3 handle 103 flower 152 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 153 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower [all …]
|
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 …]
|
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
|
A D | mirror_gre_lib.sh | 64 tc filter add dev $h3 ingress pref 77 prot 802.1q \ 68 tc filter del dev $h3 ingress pref 77 111 mirror_install $swp1 ingress $tundev "matchall $tcflags" 112 quick_test_span_gre_dir_ips $tundev ingress $ip1 $ip2 116 fail_test_span_gre_dir_ips $tundev ingress $ip1 $ip2 120 quick_test_span_gre_dir_ips $tundev ingress $ip1 $ip2 122 mirror_uninstall $swp1 ingress
|
A D | gre_multipath_nh.sh | 243 local t0_111=$(tc_rule_stats_get $ul2 111 ingress) 244 local t0_222=$(tc_rule_stats_get $ul2 222 ingress) 250 local t1_111=$(tc_rule_stats_get $ul2 111 ingress) 251 local t1_222=$(tc_rule_stats_get $ul2 222 ingress) 270 local t0_111=$(tc_rule_stats_get $ul2 111 ingress) 271 local t0_222=$(tc_rule_stats_get $ul2 222 ingress) 278 local t1_111=$(tc_rule_stats_get $ul2 111 ingress) 279 local t1_222=$(tc_rule_stats_get $ul2 222 ingress) 298 local t0_111=$(tc_rule_stats_get $ul2 111 ingress) 299 local t0_222=$(tc_rule_stats_get $ul2 222 ingress) [all …]
|
A D | gre_multipath_nh_res.sh | 246 local t0_111=$(tc_rule_stats_get $ul2 111 ingress) 247 local t0_222=$(tc_rule_stats_get $ul2 222 ingress) 253 local t1_111=$(tc_rule_stats_get $ul2 111 ingress) 254 local t1_222=$(tc_rule_stats_get $ul2 222 ingress) 274 local t0_111=$(tc_rule_stats_get $ul2 111 ingress) 275 local t0_222=$(tc_rule_stats_get $ul2 222 ingress) 282 local t1_111=$(tc_rule_stats_get $ul2 111 ingress) 283 local t1_222=$(tc_rule_stats_get $ul2 222 ingress) 303 local t0_111=$(tc_rule_stats_get $ul2 111 ingress) 304 local t0_222=$(tc_rule_stats_get $ul2 222 ingress) [all …]
|
A D | mirror_gre_bridge_1q_lag.sh | 195 trap_install $h3 ingress 196 trap_install $h4 ingress 203 trap_uninstall $h4 ingress 204 trap_uninstall $h3 ingress 227 tc filter add dev $swp1 ingress pref 999 \ 230 mirror_install $swp1 ingress gt4 \ 250 mirror_uninstall $swp1 ingress 251 tc filter del dev $swp1 ingress pref 999 268 slow_path_trap_install $swp1 ingress 274 slow_path_trap_uninstall $swp1 ingress
|
A D | mirror_gre_neigh.sh | 69 fail_test_span_gre_dir $tundev ingress 71 quick_test_span_gre_dir $tundev ingress 79 test_span_gre_neigh 192.0.2.130 gt4 ingress "mirror to gretap" 85 test_span_gre_neigh 2001:db8:2::2 gt6 ingress "mirror to ip6gretap" 91 slow_path_trap_install $swp1 ingress 97 slow_path_trap_uninstall $swp1 ingress
|
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
A D | tc_flower.sh | 285 tc filter del dev $h2 ingress protocol ip pref $index \ 894 tc chain add dev $h2 ingress chain 4 900 tc filter add dev $h2 ingress chain $i protocol ip \ 907 tc filter add dev $h2 ingress protocol ip \ 910 tc filter add dev $h2 ingress chain 1 protocol ip \ 913 tc filter add dev $h2 ingress chain 2 protocol ip \ 916 tc filter add dev $h2 ingress chain 3 protocol ip \ 919 tc filter add dev $h2 ingress chain 4 protocol ip \ 936 tc filter del dev $h2 ingress chain $i \ 939 tc filter del dev $h2 ingress chain $i \ [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
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 …]
|
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/chelsio/cxgb4/ |
A D | cxgb4_tc_matchall.c | 240 tc_port_matchall->ingress.viid_mirror = 0; in cxgb4_matchall_mirror_free() 357 tc_port_matchall->ingress.packets = 0; in cxgb4_matchall_free_filter() 358 tc_port_matchall->ingress.bytes = 0; in cxgb4_matchall_free_filter() 359 tc_port_matchall->ingress.last_used = 0; in cxgb4_matchall_free_filter() 366 bool ingress) in cxgb4_tc_matchall_replace() argument 375 if (ingress) { in cxgb4_tc_matchall_replace() 376 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace() 407 bool ingress) in cxgb4_tc_matchall_destroy() argument 414 if (ingress) { in cxgb4_tc_matchall_destroy() 448 ingress = &tc_port_matchall->ingress; in cxgb4_tc_matchall_stats() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
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 …]
|
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 …]
|
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 …]
|
/linux/tools/testing/selftests/net/ |
A D | bareudp.sh | 205 tc -netns "${NS1}" qdisc add dev veth10 ingress 206 tc -netns "${NS2}" qdisc add dev veth23 ingress 401 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv4 \ 405 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \ 414 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv6 \ 418 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv6 \ 430 tc -netns "${NS1}" filter add dev veth10 ingress protocol mpls_uc \ 445 tc -netns "${NS1}" filter delete dev veth10 ingress 446 tc -netns "${NS2}" filter delete dev veth23 ingress 490 tc -netns "${NS1}" filter delete dev veth10 ingress [all …]
|