]> git.karo-electronics.de Git - linux-beck.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)
commitf6b6a8ec9a3bcba8cc9a9c302b514cf3848e7d35
treefe09b256285bb5308dfeef17b55abce244fb1652
parent5b12100a53c11ef760e78c2899be8f1bf33812ca
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