RE: [PATCH hyperv-fixes,3/3] Fix hash key value reset after other ops

From: Michael Kelley
Date: Fri Jan 18 2019 - 20:14:31 EST


From: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> Sent: Monday, January 14, 2019 4:52 PM
>
> Changing mtu, channels, or buffer sizes ops call to netvsc_attach(),
> rndis_set_subchannel(), which always reset the hash key to default
> value. That will override hash key changed previously. This patch
> fixes the problem by save the hash key, then restore it when we re-
> add the netvsc device.
>
> Fixes: ff4a44199012 ("netvsc: allow get/set of RSS indirection table")
> Signed-off-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
> ---
> drivers/net/hyperv/hyperv_net.h | 10 +++++++---
> drivers/net/hyperv/netvsc.c | 2 +-
> drivers/net/hyperv/netvsc_drv.c | 5 ++++-
> drivers/net/hyperv/rndis_filter.c | 9 +++++++--
> 4 files changed, 19 insertions(+), 7 deletions(-)
>
Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>