Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netkvm: init-time decide about maximum RX buffer size
Currently the driver always assume the maximim packet size is ~64K as it is compiled with RSC support. The initial reason was that if the RSC is disabled by admin (registry value of the driver), it can be turned on by command, i.e. without disable-enable. However this depends also on host features. If the host does not support the GUEST_TSOx, RSC will be reported to the OS as not supported but the buffers are still huge without any reason. (In such case the powershell reports IPv4 and IPv6 operational state as Off even if the RSC keywords are enabled). The commit moves the decision to initialization time - if the RSC is not supported, the buffers are sized accoring to MTU. The memory consumption is lower 16 times. Signed-off-by: Yuri Benditovich <[email protected]>
- Loading branch information