hv_netvsc: empty current transmit aggregation if flow blocked
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 14 May 2018 22:32:07 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:27 +0000 (16:17 +0200)
commit4c5fef7789571672459e18170add13ca56f33246
tree36873a1fdeb8c321b39d0a36e1b4e930d0bffa0d
parent41f24dbef1771a32f3a8e3f9a2f89633c985df0a
hv_netvsc: empty current transmit aggregation if flow blocked

[ Commit cfd8afd986cdb59ea9adac873c5082498a1eb7c0 upstream. ]

If the transmit queue is known full, then don't keep aggregating
data. And the cp_partial flag which indicates that the current
aggregation buffer is full can be folded in to avoid more
conditionals.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c