diff options
| author | Eran Ben Elisha <eranbe@mellanox.com> | 2015-06-15 10:59:08 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-06-15 20:23:03 -0400 |
| commit | 62a890557f57e6cbebe9cc6c32aef045405d4fa2 (patch) | |
| tree | 79b91ebb9c76c6f2c76226f8df811e9f1555b124 /include/linux/mlx4 | |
| parent | 3b766cd832328fcb87db3507e7b98cf42f21689d (diff) | |
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>
Diffstat (limited to 'include/linux/mlx4')
| -rw-r--r-- | include/linux/mlx4/cmd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 5dffc869988b..58391f2e0414 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | #include <linux/dma-mapping.h> | 36 | #include <linux/dma-mapping.h> |
| 37 | #include <linux/if_link.h> | 37 | #include <linux/if_link.h> |
| 38 | #include <linux/mlx4/device.h> | 38 | #include <linux/mlx4/device.h> |
| 39 | #include <linux/netdevice.h> | ||
| 39 | 40 | ||
| 40 | enum { | 41 | enum { |
| 41 | /* initialization and general commands */ | 42 | /* initialization and general commands */ |
| @@ -303,6 +304,8 @@ void mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbo | |||
| 303 | 304 | ||
| 304 | int mlx4_get_counter_stats(struct mlx4_dev *dev, int counter_index, | 305 | int mlx4_get_counter_stats(struct mlx4_dev *dev, int counter_index, |
| 305 | struct mlx4_counter *counter_stats, int reset); | 306 | struct mlx4_counter *counter_stats, int reset); |
| 307 | int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, | ||
| 308 | struct ifla_vf_stats *vf_stats); | ||
| 306 | u32 mlx4_comm_get_version(void); | 309 | u32 mlx4_comm_get_version(void); |
| 307 | int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); | 310 | int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); |
| 308 | int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos); | 311 | int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos); |
