mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05: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
|
||||
# some members may not support hw offload. example : lan1 lan2 lan3 support, wlan0 wlan1 - not
|
||||
devs=$(resolve_lower_devices $i)
|
||||
[ -n "$devs" ] && {
|
||||
# select devices that support offload
|
||||
devs=$(nft_hw_offload_find_supported $devs)
|
||||
for j in $devs; do
|
||||
nft_create_or_update_flowtable 'offload' $j
|
||||
done
|
||||
}
|
||||
for j in $devs; do
|
||||
# do not display error if addition failed
|
||||
nft_create_or_update_flowtable 'offload' $j 2>/dev/null
|
||||
done
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user