copr: disable offloading in the nmconnection keyfile

The old network script is deprecated, please see
/etc/sysconfig/network-scripts/readme-ifcfg-rh.txt

You can check that the settings are correct with

    ethtool -k eth0 | egrep 'tcp-segmentation-offload:
                             |generic-receive-offload:
                             |generic-segmentation-offload: '
This commit is contained in:
Jakub Kadlcik 2022-11-19 14:33:27 +01:00
parent 60f6342682
commit 83c20f9aeb

View file

@ -81,7 +81,8 @@
when: offloading.rc == 0
- name: disable offloading (persitently)
lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth0 backup=yes state=present line='ETHTOOL_OPTS="-K ${DEVICE} tso off gro off gso off"'
shell: "nmcli con modify 'cloud-init eth0' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off"
when: offloading.rc == 0
tags:
- config