The revised logic failed to account for cases where zero offload capable
devices where resolved, in this case the capability check was not performed
at all.
Fixes: #9935
Fixes: 57984e0 ("fw4: always resolve lower flowtable devices")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
for (let device in zone.related_physdevs)
push(devices, ...resolve_lower_devices(devstatus, device, true));
for (let device in zone.related_physdevs)
push(devices, ...resolve_lower_devices(devstatus, device, true));
- if (length(devices)) {
- devices = sort(uniq(devices));
+ devices = sort(uniq(devices));
- if (nft_try_hw_offload(devices))
- return devices;
+ if (length(devices) && nft_try_hw_offload(devices))
+ return devices;
- this.warn('Hardware flow offloading unavailable, falling back to software offloading');
- this.state.defaults.flow_offloading_hw = false;
+ this.warn('Hardware flow offloading unavailable, falling back to software offloading');
+ this.state.defaults.flow_offloading_hw = false;
}
for (let zone in this.zones())
}
for (let zone in this.zones())