Skip to content

Commit

Permalink
fix k8s cluster script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
SchSeba committed Jan 25, 2024
1 parent bb34ac9 commit b6de854
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hack/run-e2e-conformance-virtual-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6de854

Please sign in to comment.