net/mlx4_en: Support ndo_get_vf_stats
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 15 Jun 2015 14:59:08 +0000 (17:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 00:23:03 +0000 (17:23 -0700)
commit62a890557f57e6cbebe9cc6c32aef045405d4fa2
tree79b91ebb9c76c6f2c76226f8df811e9f1555b124
parent3b766cd832328fcb87db3507e7b98cf42f21689d
net/mlx4_en: Support ndo_get_vf_stats

Implement the ndo to gather VF statistics through the PF.

All counters related to this VF are stored in a per slave
list, run over the slave's list and collect all statistics.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
include/linux/mlx4/cmd.h