Remove printing ifb config as it made the output inconsistent
This commit is contained in:
parent
2b1c434391
commit
81652d2310
|
|
@ -192,16 +192,6 @@ clear_all () {
|
||||||
${ETHTOOL} --offload ${IF_NAME} gro on tso on gso on
|
${ETHTOOL} --offload ${IF_NAME} gro on tso on gso on
|
||||||
}
|
}
|
||||||
|
|
||||||
get_ifb_if () {
|
|
||||||
local IF_NAME="$1"
|
|
||||||
local REGEX="\(Egress Redirect to device ([a-zA-Z0-9]+)\)"
|
|
||||||
|
|
||||||
if [[ $(${TC} -s -d filter show dev ${IF_NAME} parent ffff:) =~ $REGEX ]]
|
|
||||||
then
|
|
||||||
echo "${BASH_REMATCH[1]}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
print_config () {
|
print_config () {
|
||||||
local IF_NAME="$1"
|
local IF_NAME="$1"
|
||||||
|
|
||||||
|
|
@ -216,11 +206,6 @@ print_config () {
|
||||||
echo -e "\n=== Qdiscs ==="
|
echo -e "\n=== Qdiscs ==="
|
||||||
${TC} -s -d qdisc show dev ${IF_NAME}
|
${TC} -s -d qdisc show dev ${IF_NAME}
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
local IFB=$(get_ifb_if ${IF_NAME})
|
|
||||||
if [[ -n ${IFB} ]]; then
|
|
||||||
print_config ${IFB}
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_egress_shaping () {
|
apply_egress_shaping () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue