From ed612de139254d85e1f8d1d64abf4decd7803bd4 Mon Sep 17 00:00:00 2001 From: Joseph Callen Date: Fri, 30 Apr 2021 15:02:18 -0400 Subject: [PATCH] vSphere: platform none vmxnet3v4 fix This adds `templates/common/none` directory with the fix `platform: vsphere` for vmxnet3 v4. --- templates/common/none/OWNERS | 7 +++++++ .../vsphere-disable-vmxnet3v4-features.yaml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 templates/common/none/OWNERS create mode 100644 templates/common/none/files/vsphere-disable-vmxnet3v4-features.yaml diff --git a/templates/common/none/OWNERS b/templates/common/none/OWNERS new file mode 100644 index 0000000000..d1c39b1b66 --- /dev/null +++ b/templates/common/none/OWNERS @@ -0,0 +1,7 @@ +# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md +# This file just uses aliases defined in OWNERS_ALIASES. + +approvers: + - vsphere-approvers +reviewers: + - vsphere-reviewers diff --git a/templates/common/none/files/vsphere-disable-vmxnet3v4-features.yaml b/templates/common/none/files/vsphere-disable-vmxnet3v4-features.yaml new file mode 100644 index 0000000000..d9ec6c1983 --- /dev/null +++ b/templates/common/none/files/vsphere-disable-vmxnet3v4-features.yaml @@ -0,0 +1,17 @@ +filesystem: "root" +mode: 0744 +path: "/etc/NetworkManager/dispatcher.d/99-vsphere-disable-tx-udp-tnl" +contents: + inline: | + #!/bin/bash + # Workaround: + # https://bugzilla.redhat.com/show_bug.cgi?id=1941714 + # https://bugzilla.redhat.com/show_bug.cgi?id=1935539 + + driver=$(nmcli -t -m tabular -f general.driver dev show "${DEVICE_IFACE}") + + if [[ "$2" == "up" && "${driver}" == "vmxnet3" ]]; then + logger -s "99-vsphere-disable-tx-udp-tnl triggered by ${2} on device ${DEVICE_IFACE}." + ethtool -K ${DEVICE_IFACE} tx-udp_tnl-segmentation off + ethtool -K ${DEVICE_IFACE} tx-udp_tnl-csum-segmentation off + fi