Page MenuHomeFreeBSD

Hyperv: netvsc: Set net_dev's recv buffer size according to NVSP protocol version
ClosedPublic

Authored by honzhan_microsoft.com on Jan 7 2016, 10:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 4:46 PM
Unknown Object (File)
Mar 20 2024, 3:38 AM
Unknown Object (File)
Mar 15 2024, 5:01 PM
Unknown Object (File)
Mar 15 2024, 5:01 PM
Unknown Object (File)
Feb 25 2024, 1:51 AM
Unknown Object (File)
Feb 19 2024, 4:22 PM
Unknown Object (File)
Jan 30 2024, 5:43 AM
Unknown Object (File)
Jan 5 2024, 3:51 AM
Subscribers

Details

Summary

If the NVSP protocol version is not greater than NVSP_PROTOCOL_VERSION_2, then
the recv buffer size is 15MB, otherwise the buffer size is 16MB.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

honzhan_microsoft.com retitled this revision from to Hyperv: netvsc: Set net_dev's recv buffer size according to NVSP protocol version.
honzhan_microsoft.com updated this object.
This revision is now accepted and ready to land.Jan 11 2016, 8:36 AM
royger edited edge metadata.

I don't mind committing this, but is it really worth it? I mean, with 16MB you are always on the safe side, and it's not like 1MB of memory is a huge deal this days...

I don't mind committing this, but is it really worth it? I mean, with 16MB you are always on the safe side, and it's not like 1MB of memory is a huge deal this days...

It's only to cope with a host bug of Hyper-V 2008R2 -- on this old host, we need to use a slightly smaller receive buffer size, otherwise the buffer will not be accepted by the host.

adrian added a reviewer: adrian.
This revision was automatically updated to reflect the committed changes.