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:
Sean Khan 2024-07-08 11:09:04 -04:00
parent cc45b20f63
commit 4c8e0ae9f2

View File

@ -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