mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
nft hw offload optimize
This commit is contained in:
parent
321a553c8f
commit
cf5433c6fb
@ -343,13 +343,10 @@ flush set inet $ZAPRET_NFT_TABLE lanif"
|
|||||||
# bridge members must be added instead of the bridge itself
|
# bridge members must be added instead of the bridge itself
|
||||||
# some members may not support hw offload. example : lan1 lan2 lan3 support, wlan0 wlan1 - not
|
# some members may not support hw offload. example : lan1 lan2 lan3 support, wlan0 wlan1 - not
|
||||||
devs=$(resolve_lower_devices $i)
|
devs=$(resolve_lower_devices $i)
|
||||||
[ -n "$devs" ] && {
|
for j in $devs; do
|
||||||
# select devices that support offload
|
# do not display error if addition failed
|
||||||
devs=$(nft_hw_offload_find_supported $devs)
|
nft_create_or_update_flowtable 'offload' $j 2>/dev/null
|
||||||
for j in $devs; do
|
done
|
||||||
nft_create_or_update_flowtable 'offload' $j
|
|
||||||
done
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user