Lines Matching refs:devlink

11 	DEVLINK_DEV=$(devlink port show "${NETIFS[p1]:-$NETIF_NO_CABLE}" -j \
14 echo "SKIP: ${NETIFS[p1]} has no devlink device registered for it"
18 echo "SKIP: devlink device's bus is not PCI"
25 devlink dev show $DEVLINK_DEV &> /dev/null
27 echo "SKIP: devlink device \"$DEVLINK_DEV\" not found"
35 devlink help 2>&1 | grep resource &> /dev/null
37 echo "SKIP: iproute2 too old, missing devlink resource support"
41 devlink help 2>&1 | grep trap &> /dev/null
43 echo "SKIP: iproute2 too old, missing devlink trap support"
47 devlink dev help 2>&1 | grep info &> /dev/null
49 echo "SKIP: iproute2 too old, missing devlink dev info support"
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" | \
142 devlink sb port pool show $port pool $pool -j \
161 devlink sb port pool set $port pool $pool th $th
174 devlink sb port pool set $port pool $pool th $orig
182 devlink sb pool show "$DEVLINK_DEV" pool $pool -j \
200 devlink sb pool set "$DEVLINK_DEV" pool $pool size $size thtype $thtype
212 devlink sb pool set "$DEVLINK_DEV" pool $pool \
223 devlink sb tc bind show $port tc $tc type $dir -j \
245 devlink sb tc bind set $port tc $tc type $dir pool $pool th $th
259 devlink sb tc bind set $port tc $tc type $dir \
266 devlink -j trap | jq '.[]["'$DEVLINK_DEV'"] | length'
271 devlink -j trap | jq -r '.[]["'$DEVLINK_DEV'"][].name'
278 devlink -j trap show $DEVLINK_DEV trap $trap_name \
288 devlink trap set $DEVLINK_DEV trap $trap_name \
296 devlink -j trap show $DEVLINK_DEV trap $trap_name \
302 devlink -j trap show $DEVLINK_DEV trap $trap_name \
311 devlink -jv trap show $DEVLINK_DEV trap $trap_name \
320 devlink -js trap show $DEVLINK_DEV trap $trap_name \
328 devlink -js trap show $DEVLINK_DEV trap $trap_name \
336 devlink -js trap show $DEVLINK_DEV trap $trap_name \
397 devlink -j trap group | jq -r '.[]["'$DEVLINK_DEV'"][].name'
406 devlink trap group set $DEVLINK_DEV group $group_name action $action \
414 devlink -js trap group show $DEVLINK_DEV group $group_name \
422 devlink -js trap group show $DEVLINK_DEV group $group_name \
538 devlink -j -p trap policer show | jq '.[]["'$DEVLINK_DEV'"] | length'
545 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \
553 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \
561 devlink -j -p -s trap policer show $DEVLINK_DEV policer $policer_id \
569 devlink -j -p trap group show $DEVLINK_DEV group $group_name \
577 devlink -j port show $if_name | jq -e '.[] | keys' | jq -r '.[]'
582 local cpu_dl_port_num=$(devlink port list | grep "$DEVLINK_DEV" |
591 devlink sb pool show "$DEVLINK_DEV" pool 0 -j \
597 devlink sb show "$DEVLINK_DEV" -j | jq '.[][][]["size"]'