Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/tools/testing/selftests/powerpc/eeh/
Deeh-functions.sh7 echo >/dev/stderr $*
11 local dev="$1"
12 local path="/sys/bus/pci/devices/$dev/eeh_pe_state"
67 if [ -e "/sys/bus/pci/devices/$dev/pci_bus" ] ; then
68 log "$dev, Skipped: bridge"
76 if [ "ahci" = "$(basename $(realpath /sys/bus/pci/devices/$dev/driver))" ] ; then
77 log "$dev, Skipped: ahci doesn't support recovery"
86 if ! pe_ok $dev ; then
87 log "$dev, Skipped: Bad initial PE state"
95 local dev="$1"
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
Dq_in_q_veto.sh28 ip link set dev $swp1 up
29 ip link set dev $swp2 up
38 ip link set dev $swp2 down
39 ip link set dev $swp1 down
49 ip link add dev br0 type bridge vlan_filtering 1 \
52 ip link set dev br0 up
53 ip link set dev $swp1 master br0
56 protocol $netdev_proto id 100 2>/dev/null
60 protocol $netdev_proto id 100 2>&1 >/dev/null \
66 ip link del dev br0
[all …]
Drtnetlink.sh51 ip link set dev $swp1 up
52 ip link set dev $swp2 up
59 ip link set dev $swp2 down
60 ip link set dev $swp1 down
72 ip addr flush dev $swp1
73 ip addr flush dev $swp2
76 ip addr add dev $swp1 192.0.2.1/28
79 ip link set dev $swp1 addr 00:11:22:33:44:55
84 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
86 ip addr add dev $swp2 192.0.2.2/28 2>&1 >/dev/null \
[all …]
Dvxlan_fdb_veto.sh23 ip link add dev br0 type bridge mcast_snooping 0
25 ip link set dev $swp1 up
26 ip link set dev $swp1 master br0
27 ip link set dev $swp2 up
31 ip link set dev vxlan0 master br0
38 ip link set dev vxlan0 nomaster
39 ip link del dev vxlan0
41 ip link set dev $swp2 down
42 ip link set dev $swp1 nomaster
43 ip link set dev $swp1 down
[all …]
Dvxlan.sh20 ip link set dev $swp1 up
21 ip link set dev $swp2 up
28 ip link set dev $swp2 down
29 ip link set dev $swp1 down
34 ip link set dev $swp1 master br0
36 ip link set dev vxlan0 master br0
39 ip link set dev $swp1 nomaster
41 ip link set dev $swp1 master br0
47 ip link set dev $swp1 master br0
49 ip link set dev vxlan0 master br0 &> /dev/null
[all …]
Dextack.sh22 ip link set dev $swp1 up
23 ip link set dev $swp2 up
30 ip link set dev $swp2 down
31 ip link set dev $swp1 down
43 ip link set dev vx1 master br1
46 ip link set dev $swp1 master br1
54 ip link set dev vx2 master br2
57 ip link set dev $swp2 master br2
62 ip link set dev vx2 down
63 ip link set dev vx2 type vxlan ttl 200
[all …]
Dvxlan_flooding.sh60 ip link add dev br0 type bridge mcast_snooping 0
61 ip link set dev br0 address $(mac_get $swp1)
66 ip address add 198.51.100.1/32 dev lo
68 ip link set dev $swp1 master br0
69 ip link set dev vxlan0 master br0
71 ip link set dev br0 up
72 ip link set dev $swp1 up
73 ip link set dev vxlan0 up
78 ip link set dev vxlan0 down
79 ip link set dev $swp1 down
[all …]
/tools/testing/selftests/net/forwarding/
Dvxlan_asymmetric.sh112 ip link set dev $if_name master $vrf_name
113 ip link set dev $vrf_name up
114 ip link set dev $if_name up
116 ip address add $ip_addr/24 dev $if_name
118 dev $if_name
131 ip neigh del $gw_ip dev $if_name
132 ip address del $ip_addr/24 dev $if_name
134 ip link set dev $if_name down
164 ip link set dev br1 address $(mac_get $swp1)
165 ip link set dev br1 up
[all …]
Drouter_multipath.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
28 ip address del 2001:db8:1::2/64 dev $h1
29 ip address del 192.0.2.2/24 dev $h1
31 ip link set dev $h1 down
38 ip link set dev $h2 master vrf-h2
40 ip link set dev vrf-h2 up
[all …]
Dsch_tbf_core.sh59 local dev=$1; shift
62 simple_if_init $dev
63 mtu_set $dev 10000
65 vlan_create $dev 10 v$dev $(ipaddr $host 10)/28
66 ip link set dev $dev.10 type vlan egress 0:0
68 vlan_create $dev 11 v$dev $(ipaddr $host 11)/28
69 ip link set dev $dev.11 type vlan egress 0:1
74 local dev=$1; shift
76 vlan_destroy $dev 11
77 vlan_destroy $dev 10
[all …]
Dmirror_lib.sh10 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
47 local t0=$(tc_rule_stats_get $dev $pref)
51 local t1=$(tc_rule_stats_get $dev $pref)
61 local dev=$1; shift
66 icmp_capture_install $dev
67 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
68 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
[all …]
Dvxlan_symmetric.sh122 ip link set dev $if_name master $vrf_name
123 ip link set dev $vrf_name up
124 ip link set dev $if_name up
126 ip address add $ip_addr/24 dev $if_name
128 dev $if_name
141 ip neigh del $gw_ip dev $if_name
142 ip address del $ip_addr/24 dev $if_name
144 ip link set dev $if_name down
174 ip link set dev br1 address $(mac_get $swp1)
175 ip link set dev br1 up
[all …]
Ddual_vxlan_bridge.sh89 tc qdisc add dev $h1 clsact
96 tc qdisc del dev $h1 clsact
103 tc qdisc add dev $h2 clsact
110 tc qdisc del dev $h2 clsact
116 ip address add dev $rp1 192.0.2.17/28
127 ip address del dev $rp1 192.0.2.17/28
137 ip link set dev br1 address $(mac_get $swp1)
138 ip link set dev br1 up
144 ip link set dev br2 address $(mac_get $swp2)
145 ip link set dev br2 up
[all …]
Dfib_offload_lib.sh14 | jq -e '.[]["flags"] | contains(["trap"])' &> /dev/null
64 ip -n $ns link set dev dummy$i up
67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024
75 ip -n $ns route prepend 192.0.2.0/24 dev dummy3 tos 0 metric 1024
85 ip -n $ns link del dev dummy$i
96 ip -n $ns link set dev dummy1 up
98 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024
102 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 2 metric 1024
109 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 1 metric 1024
[all …]
Dlib.sh41 tc -j &> /dev/null
51 local dev=$1; shift
53 tc filter add dev $dev ingress protocol mpls_uc pref 1 handle 1 \
54 matchall action pipe &> /dev/null
59 tc filter del dev $dev ingress protocol mpls_uc pref 1 handle 1 \
66 local dev=$1; shift
69 tc filter add dev $dev ingress protocol mpls_uc pref 1 handle 1 \
71 action continue &> /dev/null
78 tc -j filter show dev $dev ingress protocol mpls_uc | jq . &> /dev/null
80 tc filter del dev $dev ingress protocol mpls_uc pref 1 handle 1 \
[all …]
Dvxlan_bridge_1q.sh107 tc qdisc add dev $h1 clsact
116 tc qdisc del dev $h1 clsact
123 tc qdisc add dev $h2 clsact
132 tc qdisc del dev $h2 clsact
138 ip address add dev $rp1 192.0.2.17/28
149 ip address del dev $rp1 192.0.2.17/28
158 ip link set dev br1 address $(mac_get $swp1)
159 ip link set dev br1 up
161 ip link set dev $rp1 up
167 ip link set dev vx10 up
[all …]
Dq_in_vni.sh91 tc qdisc add dev $h1 clsact
100 tc qdisc del dev $h1 clsact
107 tc qdisc add dev $h2 clsact
116 tc qdisc del dev $h2 clsact
122 ip address add dev $rp1 192.0.2.17/28
133 ip address del dev $rp1 192.0.2.17/28
142 ip link set dev br1 address $(mac_get $swp1)
143 ip link set dev br1 up
145 ip link set dev $rp1 up
151 ip link set dev vx100 up
[all …]
Drouter_nh.sh16 ip link set dev $h1 master vrf-h1
18 ip link set dev vrf-h1 up
19 ip link set dev $h1 up
21 ip address add 192.0.2.2/24 dev $h1
22 ip address add 2001:db8:1::2/64 dev $h1
33 ip address del 2001:db8:1::2/64 dev $h1
34 ip address del 192.0.2.2/24 dev $h1
36 ip link set dev $h1 down
43 ip link set dev $h2 master vrf-h2
45 ip link set dev vrf-h2 up
[all …]
Dbridge_mld.sh89 ip link add dev br0 type bridge mcast_snooping 1 mcast_query_response_interval 100 \
93 ip link set dev $swp1 master br0
94 ip link set dev $swp2 master br0
96 ip link set dev br0 up
97 ip link set dev $swp1 up
98 ip link set dev $swp2 up
106 ip link set dev $swp2 down
107 ip link set dev $swp1 down
109 ip link del dev br0
145 ip link set dev br0 type bridge mcast_mld_version 2
[all …]
/tools/virtio/
Dvirtio_test.c68 void vhost_vq_setup(struct vdev_info *dev, struct vq_info *info) in vhost_vq_setup() argument
72 unsigned long long features = dev->vdev.features; in vhost_vq_setup()
80 r = ioctl(dev->control, VHOST_SET_FEATURES, &features); in vhost_vq_setup()
83 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup()
86 r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state); in vhost_vq_setup()
88 r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr); in vhost_vq_setup()
91 r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file); in vhost_vq_setup()
94 r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file); in vhost_vq_setup()
111 static void vq_info_add(struct vdev_info *dev, int num) in vq_info_add() argument
113 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add()
[all …]
/tools/usb/
Dtestusb.c153 struct usb_device_descriptor dev; in testdev_ifnum() local
155 if (fread(&dev, sizeof dev, 1, fd) != 1) in testdev_ifnum()
158 if (dev.bLength != sizeof dev || dev.bDescriptorType != USB_DT_DEVICE) in testdev_ifnum()
162 if (dev.idVendor == 0x0547 && dev.idProduct == 0x1002) in testdev_ifnum()
178 if (dev.idVendor == 0x0547 && dev.idProduct == 0x2235) in testdev_ifnum()
182 if (dev.idVendor == 0x04b4 && dev.idProduct == 0x8613) in testdev_ifnum()
186 if (dev.idVendor == 0x0547 && dev.idProduct == 0x0080) in testdev_ifnum()
190 if (dev.idVendor == 0x06cd && dev.idProduct == 0x010b) in testdev_ifnum()
196 if (dev.idVendor == 0x0525 && dev.idProduct == 0xa4a0) in testdev_ifnum()
200 if (dev.idVendor == 0x0525 && dev.idProduct == 0xa4a4) in testdev_ifnum()
[all …]
/tools/testing/selftests/net/
Drtnetlink.sh38 ip link del dev "$devdummy"
44 dev="$1"
47 ip netconf show dev "$dev" > /dev/null
51 ip -$f netconf show dev "$dev" > /dev/null
56 echo "FAIL: ip netconf show $dev"
72 ip link set dev "$devdummy" master "$devbr"
80 ip addr add dev "$vlandev" 10.200.7.23/30
82 ip -6 addr add dev "$vlandev" dead:42::1234/64
84 ip -d link > /dev/null
86 ip r s t all > /dev/null
[all …]
Dsetup_loopback.sh4 readonly FLUSH_PATH="/sys/class/net/${dev}/gro_flush_timeout"
5 readonly IRQ_PATH="/sys/class/net/${dev}/napi_defer_hard_irqs"
10 local -r dev="$1"
13 carrier="$(cat /sys/class/net/${dev}/carrier)"
27 local dev="$1"
30 ethtool -K "${dev}" loopback on || exit 1
34 carrier=$(netdev_check_for_carrier ${dev})
48 ip link add link "${link_dev}" dev "${ns_dev}" \
57 ip link set dev "${ns_dev}" netns "${ns_name}"
58 ip -netns "${ns_name}" link set dev "${ns_dev}" up
[all …]
Dip6_gre_headroom.sh12 ip link set dev h1 up
13 ip address add 192.0.2.1/28 dev h1
15 ip link add dev vh3 type vrf table 20
16 ip link set dev h3 master vh3
17 ip link set dev vh3 up
18 ip link set dev h3 up
20 ip link set dev swp3 up
21 ip address add dev swp3 2001:db8:2::1/64
22 ip address add dev swp3 2001:db8:2::3/64
24 ip link set dev swp1 up
[all …]
/tools/testing/selftests/drivers/net/netdevsim/
Dnexthop.sh110 $DEVLINK dev reload $DEVLINK_DEV
117 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
137 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
139 $IP nexthop add id 2 via 192.0.2.3 dev dummy1 &> /dev/null
147 $IP nexthop flush &> /dev/null
155 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
156 $IP nexthop add id 2 via 192.0.2.3 dev dummy1
182 $IP nexthop flush &> /dev/null
191 $IP nexthop add id 1 via 192.0.2.2 dev dummy1
192 $IP nexthop add id 2 via 192.0.2.3 dev dummy1
[all …]

12345678910>>...20