]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70d404746052347045535ae1497db8d117cb8f9b
tree79b91ebb9c76c6f2c76226f8df811e9f1555b124
parentff28748553e496474d2af221a3dcf89f1158ac23
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