Add check for the use of the vmxnet3 driver
@@ -7,8 +7,11 @@ contents:
# Workaround:
# https://bugzilla.redhat.com/show_bug.cgi?id=1941714
# https://bugzilla.redhat.com/show_bug.cgi?id=1935539
- if [ "$2" == "up" ]; then
- logger -s "99-vsphere-disable-tx-udp-tnl triggered by ${2}."
+
+ 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
