]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Use HW counters for rx/tx bytes/packets in PF device
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 23 Jun 2015 14:14:13 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 07:42:33 +0000 (00:42 -0700)
commitdd5884e29e1310588f1a7e11f9d8eeee2d661fc2
treee914c115b738cfb3e8a28e2c7e817a6b451911e0
parent0b3b85971bd97cfbdfe90e462e0fda03d4a92f2f
net/mlx4_en: Use HW counters for rx/tx bytes/packets in PF device

Under SRIOV, the port rx/tx bytes/packets statistics should by read
from the HW instead of using the PF netdevice SW accounting. This is
needed in order to get the full port statistics and not just the PF
own ones

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_port.c