]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: vif counters from int/long to u64
authorMart van Santen <mart@greenhost.nl>
Fri, 10 Feb 2017 12:02:18 +0000 (12:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 02:49:53 +0000 (21:49 -0500)
commit4aa7120f706d8f457999a9fc25b9950295b12c68
tree5126b0c1415b5657a44723900109f25a7b69eb72
parent17f6a58f9b0de2bd78b950caf1c9fb1184b1f735
xen-netback: vif counters from int/long to u64

This patch fixes an issue where the type of counters in the queue(s)
and interface are not in sync (queue counters are int, interface
counters are long), causing incorrect reporting of tx/rx values
of the vif interface and unclear counter overflows.
This patch sets both counters to the u64 type.

Signed-off-by: Mart van Santen <mart@greenhost.nl>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c