From 83c20f9aebf16c58c494439ff210d75a65bc91e2 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Sat, 19 Nov 2022 14:33:27 +0100 Subject: [PATCH] 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: ' --- roles/copr/base/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/copr/base/tasks/main.yml b/roles/copr/base/tasks/main.yml index 41253757ee..ee71c1d01d 100644 --- a/roles/copr/base/tasks/main.yml +++ b/roles/copr/base/tasks/main.yml @@ -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