Staging
v0.5.1
https://github.com/torvalds/linux
Revision 171c1fd98df3d5948d9a9eb755274850fa5e59c6 authored by Haiyang Zhang on 21 November 2019, 21:33:41 UTC, committed by David S. Miller on 22 November 2019, 03:32:23 UTC
If negotiated NVSP version <= NVSP_PROTOCOL_VERSION_6, the offset may
be wrong (too small) due to a host bug. This can cause missing the
end of the send indirection table, and add multiple zero entries from
leading zeros before the data region. This bug adds extra burden on
channel 0.

So fix the offset by computing it from the data structure sizes. This
will ensure netvsc driver runs normally on unfixed hosts, and future
fixed hosts.

Fixes: 5b54dac856cb ("hyperv: Add support for virtual Receive Side Scaling (vRSS)")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 71f2195
Raw File
Tip revision: 171c1fd98df3d5948d9a9eb755274850fa5e59c6 authored by Haiyang Zhang on 21 November 2019, 21:33:41 UTC
hv_netvsc: Fix send_table offset in case of a host bug
Tip revision: 171c1fd
COPYING
The Linux Kernel is provided under:

	SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note

Being under the terms of the GNU General Public License version 2 only,
according with:

	LICENSES/preferred/GPL-2.0

With an explicit syscall exception, as stated at:

	LICENSES/exceptions/Linux-syscall-note

In addition, other licenses may also apply. Please see:

	Documentation/process/license-rules.rst

for more details.
back to top