mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50: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" ] && {
|
|
||||||
# select devices that support offload
|
|
||||||
devs=$(nft_hw_offload_find_supported $devs)
|
|
||||||
for j in $devs; do
|
for j in $devs; do
|
||||||
nft_create_or_update_flowtable 'offload' $j
|
# do not display error if addition failed
|
||||||
|
nft_create_or_update_flowtable 'offload' $j 2>/dev/null
|
||||||
done
|
done
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user