Unable to disable tx-checksum-ip-generic

Bug #1979906 reported by MRATT
This bug report is a duplicate of:  Bug #1956264: Cannot set offload options to false. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
New
Undecided
Unassigned

Bug Description

I have several VMware ESXi VMs with Ubuntu Server 20.04 and Docker which need to have "tx-checksum-ip-generic" disabled, otherwise Docker Swarm nodes cannot communicate properly. This has to be done manually following every reboot and often folks forget and then we start to have outages.

There is no way to set this permanently in netplan.io even in 0.104-0ubuntu2~20.04.1 it seems.

I have tried setting this in the YML in the hope it covers "tx-checksum-ip-generic" as well:
  ethernets:
    ens160:
      dhcp4: no
      ...
      transmit-checksum-offload: false

however the results of ethtool after a "netplan apply" or a reboot are exactly the same:
> ethtool --show-offload ens160 | grep tx
tx-checksumming: off
        tx-checksum-ipv4: off [fixed]
        tx-checksum-ip-generic: on
        tx-checksum-ipv6: off [fixed]
        tx-checksum-fcoe-crc: off [fixed]
        tx-checksum-sctp: off [fixed]
        tx-scatter-gather: on
        tx-scatter-gather-fraglist: off [fixed]
        tx-tcp-segmentation: off [requested on]
        tx-tcp-ecn-segmentation: off [fixed]
        tx-tcp-mangleid-segmentation: off
        tx-tcp6-segmentation: off [requested on]
tx-vlan-offload: on
tx-lockless: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-gre-csum-segmentation: off [fixed]
tx-ipxip4-segmentation: off [fixed]
tx-ipxip6-segmentation: off [fixed]
tx-udp_tnl-segmentation: on
tx-udp_tnl-csum-segmentation: on
tx-gso-partial: off [fixed]
tx-tunnel-remcsum-segmentation: off [fixed]
tx-sctp-segmentation: off [fixed]
tx-esp-segmentation: off [fixed]
tx-udp-segmentation: off [fixed]
tx-gso-list: off [fixed]
tx-nocache-copy: off
tx-vlan-stag-hw-insert: off [fixed]
esp-tx-csum-hw-offload: off [fixed]
tls-hw-tx-offload: off [fixed]

MRATT (mrmail)
description: updated
Revision history for this message
Lukas Märdian (slyon) wrote :

This was fixed upstream and is pending stable release update into Focal.

Once the SRU is deployed, this should work using the "transmit-checksum-offload: false" setting.

https://github.com/canonical/netplan/pull/270
https://bugs.launchpad.net/netplan/+bug/1956264

Marking as duplicate.

Revision history for this message
Hugo Lopez (hugoelopezp) wrote :

Did you manage to get this working? I'm on the exact same boat, Ubuntu 20.04.4 and netplan.io 0.104-0ubuntu2.

Inserting this line doesn't seem to have any effect:

      transmit-checksum-offload: false

Revision history for this message
Roger (infroger) wrote :

I resolved it in 22.04 using this reference: https://michael.mulqueen.me.uk/2018/08/disable-offloading-netplan-ubuntu/

In my case:

$ cat /usr/lib/networkd-dispatcher/routable.d/10-disable-offloading
#!/bin/bash
ethtool -K ens192 tx-checksum-ip-generic off

And the behaviour is as expected after a reboot.

$ sudo ethtool --show-offload ens192 |grep tx-checksum-ip-generic
 tx-checksum-ip-generic: off

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.