Lines Matching +full:rx +full:- +full:eq
2 # SPDX-License-Identifier: GPL-2.0
7 if [[ ! -v DEVLINK_DEV ]]; then
8 DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \
9 | jq -r '.port | keys[]' | cut -d/ -f-2)
10 if [ -z "$DEVLINK_DEV" ]; then
14 if [[ "$(echo $DEVLINK_DEV | grep -c pci)" -eq 0 ]]; then
19 DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \
20 -n | cut -d" " -f3)
27 if [ $? -ne 0 ]; then
33 if [ $? -ne 0 ]; then
39 if [ $? -ne 0 ]; then
76 devlink -j resource show "$DEVLINK_DEV" | jq "$resource_name"
114 grep -c "size_new")
115 check_err $still_pending "Failed reload - There are still unset sizes"
118 declare -A DEVLINK_ORIG
131 devlink sb port pool show $port pool $pool -j \
158 local -a orig=(${DEVLINK_ORIG[$key]})
160 if [[ -z $orig ]]; then
171 devlink sb pool show "$DEVLINK_DEV" pool $pool -j \
172 | jq -r '.pool[][] | (.size, .thtype)'
196 local -a orig=(${DEVLINK_ORIG[$key]})
198 if [[ -z ${orig[0]} ]]; then
212 devlink sb tc bind show $port tc $tc type $dir -j \
213 | jq -r '.tc_bind[][] | (.pool, .threshold)'
243 local -a orig=(${DEVLINK_ORIG[$key]})
245 if [[ -z ${orig[0]} ]]; then
255 devlink -j trap | jq '.[]["'$DEVLINK_DEV'"] | length'
260 devlink -j trap | jq -r '.[]["'$DEVLINK_DEV'"][].name'
267 devlink -j trap show $DEVLINK_DEV trap $trap_name \
268 | jq -r '.[][][].type'
285 devlink -j trap show $DEVLINK_DEV trap $trap_name \
286 | jq -r '.[][][].action'
291 devlink -j trap show $DEVLINK_DEV trap $trap_name \
292 | jq -r '.[][][].group'
300 devlink -jv trap show $DEVLINK_DEV trap $trap_name \
301 | jq -e '.[][][].metadata | contains(["'$metadata'"])' \
309 devlink -js trap show $DEVLINK_DEV trap $trap_name \
310 | jq '.[][][]["stats"]["rx"]["packets"]'
317 devlink -js trap show $DEVLINK_DEV trap $trap_name \
318 | jq '.[][][]["stats"]["rx"]["bytes"]'
335 if [[ $t0_packets -eq $t1_packets && $t0_bytes -eq $t1_bytes ]]; then
360 devlink -j trap group | jq -r '.[]["'$DEVLINK_DEV'"][].name'
377 devlink -js trap group show $DEVLINK_DEV group $group_name \
378 | jq '.[][][]["stats"]["rx"]["packets"]'
385 devlink -js trap group show $DEVLINK_DEV group $group_name \
386 | jq '.[][][]["stats"]["rx"]["bytes"]'
403 if [[ $t0_packets -eq $t1_packets && $t0_bytes -eq $t1_bytes ]]; then
434 # initially idle, then non-idle after changing the trap action and
487 if [[ $t1_packets -eq $t0_packets ]]; then
496 devlink -j -p trap policer show | jq '.[]["'$DEVLINK_DEV'"] | length'
503 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \
511 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \
519 devlink -j -p -s trap policer show $DEVLINK_DEV policer $policer_id \
520 | jq '.[][][]["stats"]["rx"]["dropped"]'
527 devlink -j -p trap group show $DEVLINK_DEV group $group_name \
533 devlink -j -p trap policer show \
541 devlink -j port show $if_name | jq -e '.[] | keys' | jq -r '.[]'
547 grep cpu | cut -d/ -f3 | cut -d: -f1 |
548 sed -n '1p')
555 devlink sb pool show "$DEVLINK_DEV" pool 0 -j \