Home
last modified time | relevance | path

Searched refs:DEVLINK_DEV (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh10 if [[ ! -v DEVLINK_DEV ]]; then
11 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \
13 if [ -z "$DEVLINK_DEV" ]; then
17 if [[ "$(echo $DEVLINK_DEV | grep -c pci)" -eq 0 ]]; then
22 DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \
24 elif [[ ! -z "$DEVLINK_DEV" ]]; then
25 devlink dev show $DEVLINK_DEV &> /dev/null
27 echo "SKIP: devlink device \"$DEVLINK_DEV\" not found"
75 local resource_name=.[][\"$DEVLINK_DEV\"]
85 devlink -j resource show "$DEVLINK_DEV" | jq "$resource_name"
[all …]
/linux-6.6.21/tools/testing/selftests/drivers/net/netdevsim/
Dfib.sh44 DEVLINK_DEV=
46 DEVLINK_DEV=netdevsim/${DEV}
80 fib_ipv4_replay_metric_test "testns1" "$DEVLINK_DEV"
85 fib_ipv4_replay_tos_test "testns1" "$DEVLINK_DEV"
90 fib_ipv4_replay_plen_test "testns1" "$DEVLINK_DEV"
114 devlink -N testns1 resource set $DEVLINK_DEV path IPv4/fib size 10
115 devlink -N testns1 dev reload $DEVLINK_DEV
136 devlink -N testns1 resource set $DEVLINK_DEV path IPv4/fib size 100
137 devlink -N testns1 dev reload $DEVLINK_DEV
143 devlink -N testns1 resource set $DEVLINK_DEV path IPv4/fib size 10
[all …]
Ddevlink_trap.sh33 DEVLINK_DEV=
35 DEVLINK_DEV=netdevsim/${DEV}
182 devlink -s trap show $DEVLINK_DEV trap $trap_name &> /dev/null
185 devlink -s trap show $DEVLINK_DEV trap $trap_name &> /dev/null
298 devlink trap policer set $DEVLINK_DEV policer 1337 &> /dev/null
300 devlink trap policer show $DEVLINK_DEV policer 1337 &> /dev/null
303 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000 burst 16
312 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null
314 devlink trap policer set $DEVLINK_DEV policer 1 rate 9000 &> /dev/null
316 devlink trap policer set $DEVLINK_DEV policer 1 burst 2 &> /dev/null
[all …]
Dpsample.sh23 DEVLINK_DEV=
25 DEVLINK_DEV=netdevsim/${DEV}
163 devlink dev reload $DEVLINK_DEV netns testns1
Dnexthop.sh52 DEVLINK_DEV=
54 DEVLINK_DEV=netdevsim/${DEV}
95 occ=$($DEVLINK -jp resource show $DEVLINK_DEV \
109 $DEVLINK resource set $DEVLINK_DEV path nexthops size $size
110 $DEVLINK dev reload $DEVLINK_DEV
979 $DEVLINK dev reload $DEVLINK_DEV
1008 $DEVLINK resource set $DEVLINK_DEV path nexthops size 3
1009 $DEVLINK dev reload $DEVLINK_DEV &> /dev/null
1012 $DEVLINK resource set $DEVLINK_DEV path nexthops size 9999
1013 $DEVLINK dev reload $DEVLINK_DEV
[all …]
Dfib_notifications.sh20 DEVLINK_DEV=netdevsim/${DEV}
401 devlink dev reload $DEVLINK_DEV netns testns1
Dhw_stats_l3.sh36 DEVLINK_DEV() function
64 devlink dev reload $(DEVLINK_DEV $n) netns $ns
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_policer.sh89 devlink trap set $DEVLINK_DEV trap blackhole_route action trap
94 devlink trap set $DEVLINK_DEV trap blackhole_route action drop
144 devlink trap policer set $DEVLINK_DEV policer 1 rate 0 &> /dev/null
146 devlink trap policer set $DEVLINK_DEV policer 1 \
150 devlink trap policer set $DEVLINK_DEV policer 1 rate 1
152 devlink trap policer set $DEVLINK_DEV policer 1 rate 2000000000
162 devlink trap policer set $DEVLINK_DEV policer 1 burst 0 &> /dev/null
164 devlink trap policer set $DEVLINK_DEV policer 1 burst 17 &> /dev/null
166 devlink trap policer set $DEVLINK_DEV policer 1 burst 8 &> /dev/null
168 devlink trap policer set $DEVLINK_DEV policer 1 \
[all …]
Dfib.sh69 fib_ipv4_replay_metric_test "testns1" "$DEVLINK_DEV"
74 fib_ipv4_replay_tos_test "testns1" "$DEVLINK_DEV"
79 fib_ipv4_replay_plen_test "testns1" "$DEVLINK_DEV"
183 fib_ipv6_replay_single_test "testns1" "$DEVLINK_DEV"
188 fib_ipv6_replay_multipath_test "testns1" "$DEVLINK_DEV"
246 devlink dev reload $DEVLINK_DEV netns testns1
256 devlink -N testns1 dev reload $DEVLINK_DEV netns $$
Ddevlink_linecard.sh41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state"
91 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].nested_devlink"
111 devlink lc set $DEVLINK_DEV lc $lc notype
130 devlink lc set $DEVLINK_DEV lc $lc type $type
140 provisioned_type=$(devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].type")
170 supported_types_count=$(devlink lc show $DEVLINK_DEV lc $lc -j | \
176 type=$(devlink lc show $DEVLINK_DEV lc $lc -j | \
300 local lc_num=$(devlink lc show -j | jq -e -r ".[][\"$DEVLINK_DEV\"] |length")
Dsharedbuffer.sh104 devlink sb occupancy clearmax $DEVLINK_DEV
109 devlink sb occupancy snapshot $DEVLINK_DEV
132 devlink sb occupancy clearmax $DEVLINK_DEV
137 devlink sb occupancy snapshot $DEVLINK_DEV
160 devlink sb occupancy clearmax $DEVLINK_DEV
164 devlink sb occupancy snapshot $DEVLINK_DEV
Dmlxsw_lib.sh8 MLXSW_CHIP=$(devlink -j dev info $DEVLINK_DEV | jq -r '.[][]["driver"]')
10 echo "SKIP: Device $DEVLINK_DEV doesn't support devlink info command"
Dport_scale.sh56 occ=$(devlink -j resource show $DEVLINK_DEV \
Drif_mac_profile_scale.sh42 occ=$(devlink -j resource show $DEVLINK_DEV \
Drif_mac_profiles_occ.sh93 occ=$(devlink -j resource show $DEVLINK_DEV \
Drtnetlink.sh189 devlink dev reload "$DEVLINK_DEV"
926 devlink dev reload "$DEVLINK_DEV"
/linux-6.6.21/tools/testing/selftests/net/
Ddrop_monitor_tests.sh23 DEVLINK_DEV=netdevsim/${DEV}
106 $DEVLINK trap set $DEVLINK_DEV trap blackhole_route action trap
115 $DEVLINK trap set $DEVLINK_DEV trap blackhole_route action drop
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh507 devlink dev param set $DEVLINK_DEV \
515 devlink dev param set $DEVLINK_DEV \
582 devlink dev param set $DEVLINK_DEV \
590 devlink dev param set $DEVLINK_DEV \
742 devlink dev param set $DEVLINK_DEV \
759 devlink dev param set $DEVLINK_DEV \
786 devlink dev param set $DEVLINK_DEV \
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Ddevlink_resources.sh97 devlink resource set "$DEVLINK_DEV" \