]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visornic: Fix receive bytes statistics
authorDavid Kershner <david.kershner@unisys.com>
Fri, 4 Sep 2015 16:01:30 +0000 (12:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:43:40 +0000 (09:43 -0700)
commitebaf40541ed99b4167be6e518e5f9e0101083d58
treefe09b256285bb5308dfeef17b55abce244fb1652
parent8260792ac4d399d0244ea34b8d41eee0c9b3c991
staging: unisys: visornic: Fix receive bytes statistics

The receive byte statistics was wrong in /proc/net/dev.

Move the collection of statistics after the proper amount
of bytes has been calculated and make sure you add it to
rx_bytes instead of just replacing it.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c