diff options
author | Bryan Venteicher <bryanv@FreeBSD.org> | 2013-10-11 06:48:40 +0000 |
---|---|---|
committer | Bryan Venteicher <bryanv@FreeBSD.org> | 2013-10-11 06:48:40 +0000 |
commit | ce3be286f068acd06d143250145c92fa474ac5ba (patch) | |
tree | cd50758a3ddbaa461c744cf6a8a725cc97542013 /sys/dev/vmware | |
parent | 99a5e5a7b422e045a8443a47d6133073341c64b3 (diff) | |
download | src-ce3be286f068acd06d143250145c92fa474ac5ba.tar.gz src-ce3be286f068acd06d143250145c92fa474ac5ba.zip |
Do not provide a hint of the guest's OS version
The calculation can overflow if __FreeBSD_version is big
enough, and it does not appear to be required.
Reported by: grehan
Approved by: re (gjb)
Notes
Notes:
svn path=/head/; revision=256308
Diffstat (limited to 'sys/dev/vmware')
-rw-r--r-- | sys/dev/vmware/vmxnet3/if_vmx.c | 2 | ||||
-rw-r--r-- | sys/dev/vmware/vmxnet3/if_vmxvar.h | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c index 1cab2d557d8e..21f094795562 100644 --- a/sys/dev/vmware/vmxnet3/if_vmx.c +++ b/sys/dev/vmware/vmxnet3/if_vmx.c @@ -1317,7 +1317,7 @@ vmxnet3_init_shared_data(struct vmxnet3_softc *sc) /* DriverInfo */ ds->version = VMXNET3_DRIVER_VERSION; - ds->guest = VMXNET3_GOS_FREEBSD | VMXNET3_GUEST_OS_VERSION | + ds->guest = VMXNET3_GOS_FREEBSD | #ifdef __LP64__ VMXNET3_GOS_64BIT; #else diff --git a/sys/dev/vmware/vmxnet3/if_vmxvar.h b/sys/dev/vmware/vmxnet3/if_vmxvar.h index 2e7d02d316b2..c905eb814245 100644 --- a/sys/dev/vmware/vmxnet3/if_vmxvar.h +++ b/sys/dev/vmware/vmxnet3/if_vmxvar.h @@ -248,17 +248,6 @@ struct vmxnet3_softc { #define VMXNET3_DRIVER_VERSION 0x00010000 /* - * Convert the FreeBSD version in to something the hypervisor - * understands. This is apparently what VMware's driver reports - * so mimic it even though it probably is not required. - */ -#define VMXNET3_GUEST_OS_VERSION \ - (((__FreeBSD_version / 100000) << 14) | \ - (((__FreeBSD_version / 1000) % 100) << 6 ) | \ - (((__FreeBSD_version / 100) % 10) << 30) | \ - ((__FreeBSD_version % 100) << 22)) - -/* * Max descriptors per Tx packet. We must limit the size of the * any TSO packets based on the number of segments. */ |