mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 16:21:53 +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=$*
|
||||
|
||||
for i in $interface; do
|
||||
i=${i##*/}
|
||||
for iface in $interface; do
|
||||
i=${iface##*/}
|
||||
|
||||
# Skip Loopback
|
||||
if [ $i == lo ]; then
|
||||
# Skip Loopback and Bonding Masters
|
||||
if [ $i == lo ] || [ -f $iface ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user