mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-18 17:21:56 +00:00
nss-ecm: Skip bonding_masters interfaces
`lo` and `bonding_masters` interfaces are not managed by ethtool, so should be skipped when disabling any interface features. Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
parent
cc45b20f63
commit
4c8e0ae9f2
@ -183,11 +183,11 @@ disable_offload() {
|
|||||||
|
|
||||||
[ -z $1 ] && interface=$(echo /sys/class/net/*) || interface=$*
|
[ -z $1 ] && interface=$(echo /sys/class/net/*) || interface=$*
|
||||||
|
|
||||||
for i in $interface; do
|
for iface in $interface; do
|
||||||
i=${i##*/}
|
i=${iface##*/}
|
||||||
|
|
||||||
# Skip Loopback
|
# Skip Loopback and Bonding Masters
|
||||||
if [ $i == lo ]; then
|
if [ $i == lo ] || [ -f $iface ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user