Lines Matching refs:DEVLINK_DEV
10 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"
106 devlink resource set "$DEVLINK_DEV" path "$path" size "$new_size"
119 devlink dev reload "$DEVLINK_DEV" &> /dev/null
122 still_pending=$(devlink resource show "$DEVLINK_DEV" | \
180 devlink sb pool show "$DEVLINK_DEV" pool $pool -j \
198 devlink sb pool set "$DEVLINK_DEV" pool $pool size $size thtype $thtype
210 devlink sb pool set "$DEVLINK_DEV" pool $pool \
264 devlink -j trap | jq '.[]["'$DEVLINK_DEV'"] | length'
269 devlink -j trap | jq -r '.[]["'$DEVLINK_DEV'"][].name'
276 devlink -j trap show $DEVLINK_DEV trap $trap_name \
286 devlink trap set $DEVLINK_DEV trap $trap_name \
294 devlink -j trap show $DEVLINK_DEV trap $trap_name \
300 devlink -j trap show $DEVLINK_DEV trap $trap_name \
309 devlink -jv trap show $DEVLINK_DEV trap $trap_name \
318 devlink -js trap show $DEVLINK_DEV trap $trap_name \
326 devlink -js trap show $DEVLINK_DEV trap $trap_name \
334 devlink -js trap show $DEVLINK_DEV trap $trap_name \
395 devlink -j trap group | jq -r '.[]["'$DEVLINK_DEV'"][].name'
404 devlink trap group set $DEVLINK_DEV group $group_name action $action \
412 devlink -js trap group show $DEVLINK_DEV group $group_name \
420 devlink -js trap group show $DEVLINK_DEV group $group_name \
531 devlink -j -p trap policer show | jq '.[]["'$DEVLINK_DEV'"] | length'
538 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \
546 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \
554 devlink -j -p -s trap policer show $DEVLINK_DEV policer $policer_id \
562 devlink -j -p trap group show $DEVLINK_DEV group $group_name \
575 local cpu_dl_port_num=$(devlink port list | grep "$DEVLINK_DEV" |
579 echo "$DEVLINK_DEV/$cpu_dl_port_num"
584 devlink sb pool show "$DEVLINK_DEV" pool 0 -j \
590 devlink sb show "$DEVLINK_DEV" -j | jq '.[][][]["size"]'