]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hv_netvsc: Add close of RNDIS filter into change mtu call
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 13 Jul 2015 20:09:16 +0000 (13:09 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:28:55 +0000 (18:28 -0800)
commitbb9ad33428beed333530aaa06d623d976d2b4b96
tree4c4573b34ea6052efd12996a0725dc9fcd63b470
parentd42f50fde9aa1536a048ec493e9b97e6fa5d328e
hv_netvsc: Add close of RNDIS filter into change mtu call

The current change mtu call only stops tx before removing RNDIS filter.
In case ringbufer is not empty, the rndis_filter_device_remove() may
hang on removing the buffers.

This patch adds close of RNDIS filter before removing it, also a
gradual waiting loop until the ring is empty. The change_mtu hang
issue under heavy traffic is solved by this patch.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 2de8530ba0c71a2fba02590681af0f3a2a187a9b)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/net/hyperv/netvsc_drv.c