e1000: fix total byte statistics
authorHarry van Haaren <harry.van.haaren@intel.com>
Thu, 22 Oct 2015 15:18:04 +0000 (16:18 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Oct 2015 17:39:44 +0000 (18:39 +0100)
commit67b38d93c960e3a650b49dec1cd8b53c12ee3e2d
tree5c7a0afa97ba821f57392f588ecd39c204b47056
parentf11596cb943f7c584df814503f068a67580361ff
e1000: fix total byte statistics

This patch fixes a bug in reading the 64 bit register reading
which was causing the total octets counters to show zero.
Now the code reads both the lower and higher 32 bits.
Tested in testpmd, byte values are correct.

Fixes: 805803445a02 ("e1000: support EM devices (also known as e1000/e1000e)")

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/igb_ethdev.c