fix(xo-server): TX checksumming is enabled by default

Introduced by fe2de9c1154c5a0b183c6d7897f1d9c376fa4031

Fixes #5234
This commit is contained in:
Julien Fontanet 2020-08-28 16:00:09 +02:00
parent 7f9130470b
commit 24b264b6c9
3 changed files with 9 additions and 3 deletions

View File

@ -11,6 +11,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [VM/Network] Fix TX checksumming [#5234](https://github.com/vatesfr/xen-orchestra/issues/5234)
### Packages to release
> Packages will be released in the order they are here, therefore, they should
@ -27,3 +29,5 @@
> - major: if the change breaks compatibility
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-server patch

View File

@ -658,7 +658,7 @@ const TRANSFORMS = {
other_config: obj.other_config,
// See: https://xapi-project.github.io/xen-api/networking.html
txChecksumming: txChecksumming === 'true' || txChecksumming === 'on',
txChecksumming: !(txChecksumming === 'false' || txChecksumming === 'off'),
// in kB/s
rateLimit: (() => {

View File

@ -89,9 +89,11 @@ export default {
},
txChecksumming: {
// we supposed that removing `ethtool-tx` from the `other_config` will disable the functionality
set: (value, vif) =>
vif.update_other_config('ethtool-tx', value ? 'true' : null),
vif.update_other_config(
'ethtool-tx',
value === null ? null : String(value)
),
},
}),
}