From b6de854ba250397a716a96a661cec9dcfa807969 Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Thu, 25 Jan 2024 15:46:35 +0200 Subject: [PATCH] fix k8s cluster script we must disable the checksum offload on the virtual PF if not when we create virtual functions on the nic the host have checksum issues Signed-off-by: Sebastian Sch --- hack/run-e2e-conformance-virtual-cluster.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hack/run-e2e-conformance-virtual-cluster.sh b/hack/run-e2e-conformance-virtual-cluster.sh index 90670f2df..351614251 100755 --- a/hack/run-e2e-conformance-virtual-cluster.sh +++ b/hack/run-e2e-conformance-virtual-cluster.sh @@ -166,6 +166,23 @@ method=disabled [proxy]' > /etc/NetworkManager/system-connections/multi.nmconnection chmod 600 /etc/NetworkManager/system-connections/multi.nmconnection + +echo '[Unit] +Description=disable checksum offload to avoid vf bug +After=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/bash -c "ethtool --offload eth1 rx off tx off && ethtool -K eth1 gso off" +StandardOutput=journal+console +StandardError=journal+console + +[Install] +WantedBy=default.target' > /etc/systemd/system/disable-offload.service + +systemctl daemon-reload +systemctl enable --now disable-offload + systemctl restart NetworkManager EOF