diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-12-13 01:48:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-13 21:57:39 +0100 |
commit | cfd8afd986cdb59ea9adac873c5082498a1eb7c0 (patch) | |
tree | 6cdea70d3013eaf6b0c38802aefc16f0050e3800 /drivers/net/hyperv/netvsc_drv.c | |
parent | hv_netvsc: remove open_cnt reference count (diff) | |
download | linux-cfd8afd986cdb59ea9adac873c5082498a1eb7c0.tar.xz linux-cfd8afd986cdb59ea9adac873c5082498a1eb7c0.zip |
hv_netvsc: empty current transmit aggregation if flow blocked
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>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 5ab81611d6d9..c5584c2d440e 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -626,7 +626,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) /* timestamp packet in software */ skb_tx_timestamp(skb); - ret = netvsc_send(net_device_ctx, packet, rndis_msg, pb, skb); + ret = netvsc_send(net, packet, rndis_msg, pb, skb); if (likely(ret == 0)) return NETDEV_TX_OK; |