]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
netvsc: account for packets/bytes transmitted after completion
authorstephen hemminger <stephen@networkplumber.org>
Tue, 24 Jan 2017 21:06:12 +0000 (13:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 21:29:01 +0000 (16:29 -0500)
commit793e39555511bccd73308c41205b72448d0077db
treec6f7ee60ad21daaecf018d979ac1f743c4b9da8a
parent46b4f7f5d1f7410de48128540ef2d1aab913a619
netvsc: account for packets/bytes transmitted after completion

Most drivers do not increment transmit statistics until after the
transmit is completed. This will also be necessary for BQL support.

Slight additional complexity because the netvsc driver aggregates
multiple packets into one transmit.

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