Lines Matching refs:dev
10 tc filter add dev $from_dev $direction \
12 action mirred egress mirror dev $to_dev
20 tc filter del dev $swp1 $direction pref 1000
35 local dev=$1; shift
51 local t0=$(tc_rule_stats_get $dev $pref)
55 local t1=$(tc_rule_stats_get $dev $pref)
64 local dev=$1; shift
70 icmp_capture_install $dev "type $forward_type"
71 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
72 icmp_capture_uninstall $dev
74 icmp_capture_install $dev "type $backward_type"
75 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
76 icmp_capture_uninstall $dev
81 local dev=$1; shift
87 do_test_span_dir_ips 10 "$dev" "$ip1" "$ip2" \
93 local dev=$1; shift
99 quick_test_span_dir_ips "$dev" "$ip1" "$ip2" \
102 icmp_capture_install $dev "type $forward_type"
103 mirror_test v$h1 $ip1 $ip2 $dev 100 10
104 icmp_capture_uninstall $dev
106 icmp_capture_install $dev "type $backward_type"
107 mirror_test v$h2 $ip2 $ip1 $dev 100 10
108 icmp_capture_uninstall $dev
113 local dev=$1; shift
117 test_span_dir_ips "$dev" "$forward_type" "$backward_type" \
124 local dev=$1; shift
133 vlan_capture_install $dev "skip_hw vlan_id $vid vlan_ethtype $ul_proto"
134 mirror_test v$h1 $ip1 $ip2 $dev 100 "$expect"
135 mirror_test v$h2 $ip2 $ip1 $dev 100 "$expect"
136 vlan_capture_uninstall $dev
141 local dev=$1; shift
147 do_test_span_vlan_dir_ips '>= 10' "$dev" "$vid" "$ul_proto" \
153 local dev=$1; shift
159 do_test_span_vlan_dir_ips 0 "$dev" "$vid" "$ul_proto" "$ip1" "$ip2"
164 local dev=$1; shift
168 quick_test_span_vlan_dir_ips "$dev" "$vid" "$ul_proto" \
174 local dev=$1; shift
178 fail_test_span_vlan_dir_ips "$dev" "$vid" "$ul_proto" \