Lines Matching +full:post +full:-
2 # SPDX-License-Identifier: GPL-2.0
61 cmd_jq "devlink dev param show $DL_HANDLE name $name -j" \
106 check_value max_macs post-set 16 32
107 check_value test1 post-set false Y
111 check_value max_macs post-reload 16 16
112 check_value test1 post-reload false N
122 size=$(devlink region show $DL_HANDLE/$name -j | jq -e -r '.[][].size')
124 [ $size -eq 32768 ]
135 count=$(devlink region show $DL_HANDLE/$name -j | jq -e -r '.[][].snapshot | length')
136 [ $count -eq $expected_count ]
151 check_region_snapshot_count dummy post-first-snapshot 1
155 check_region_snapshot_count dummy post-second-snapshot 2
159 check_region_snapshot_count dummy post-third-snapshot 3
164 check_region_snapshot_count dummy post-first-delete 2
169 check_region_snapshot_count dummy post-first-request 3
189 check_region_snapshot_count dummy post-second-delete 2
191 sid=$(devlink -j region new $DL_HANDLE/dummy | jq '.[][][][]')
194 check_region_snapshot_count dummy post-first-request 3
202 check_region_snapshot_count dummy post-first-request 2
233 check_err $? "Failed to re-enable devlink reload"
236 check_err $? "Failed to reload after re-enable"
253 devlink -N testns1 dev reload $DL_HANDLE netns testns2
271 cmd_jq "devlink -N $netns resource show $DL_HANDLE -j" \
290 ip -n testns1 link add name $DUMMYDEV type dummy
292 ip -n testns1 link set $DUMMYDEV up
294 ip -n testns1 a a 192.0.1.1/24 dev $DUMMYDEV
302 devlink -N testns1 resource set $DL_HANDLE path IPv4/fib size $limit
305 [ "$size_new" -eq "$limit" ]
308 devlink -N testns1 dev reload $DL_HANDLE
311 [ "$size" -eq "$limit" ]
317 ip -n testns1 r a 192.0.2.0/24 via 192.0.1.2
320 ip -n testns1 r a 192.0.3.0/24 via 192.0.1.2
328 ip -n testns2 link add name $DUMMYDEV type dummy
330 ip -n testns2 link set $DUMMYDEV up
332 ip -n testns2 a a 192.0.1.1/24 dev $DUMMYDEV
334 ip -n testns2 r a 192.0.2.0/24 via 192.0.1.2
336 ip -n testns2 r a 192.0.3.0/24 via 192.0.1.2
339 devlink -N testns1 dev reload $DL_HANDLE netns testns2
342 devlink -N testns2 resource set $DL_HANDLE path IPv4/fib size ' -1'
345 devlink -N testns2 dev reload $DL_HANDLE netns 1
358 cmd_jq "devlink dev info $DL_HANDLE -j" ".[][][\"$name\"]" "-e"
401 local show=$(devlink health show $DL_HANDLE reporter $name -j | jq -e -r ".[][][]")
404 local state=$(echo $show | jq -r ".state")
408 local error=$(echo $show | jq -r ".error")
412 local recover=`echo $show | jq -r ".recover"`
416 local grace_period=$(echo $show | jq -r ".grace_period")
421 local auto_recover=$(echo $show | jq -r ".auto_recover")
443 local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j)
446 local dump_break_msg=$(echo $dump | jq -r ".break_message")
468 local diagnose=$(devlink health diagnose $DL_HANDLE reporter dummy -j -p)
471 local rcvrd_break_msg=$(echo $diagnose | jq -r ".recovered_break_message")
502 local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j)
515 cmd_jq "devlink port function rate show -j" \
523 cmd_jq "devlink port function rate show -j" \
542 cmd_jq "devlink port function rate show $handle -j" '.[][].'$name
607 local num_leafs=`echo $leafs | wc -w`
632 local num_nodes=`rate_nodes_get $DL_HANDLE | wc -w`
646 local num_nodes=`rate_nodes_get $DL_HANDLE | wc -w`
679 while [ ! -d $SYSFS_NET_DIR ] ; do :; done
686 modprobe -r netdevsim