aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugenia Emantayev <eugenia@mellanox.co.il>2012-01-19 04:44:37 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-22 15:08:43 -0500
commit35fb9afbdeef9d5859d9a878d0372907baf119e1 (patch)
tree742514eef895cad175d1a7a19561f102e8bed3d8
parentb477ba628a283ba93e631d66907f91df80e82267 (diff)
mlx4: VF is not allowed to perform dump stats
In multifunction mode - DUMP_STATS command is not executed for VFs. Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il> Reviewed-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/port.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/port.c b/drivers/net/ethernet/mellanox/mlx4/port.c
index 88b52e547524..1a551d69ddcb 100644
--- a/drivers/net/ethernet/mellanox/mlx4/port.c
+++ b/drivers/net/ethernet/mellanox/mlx4/port.c
@@ -898,6 +898,8 @@ int mlx4_DUMP_ETH_STATS_wrapper(struct mlx4_dev *dev, int slave,
898 struct mlx4_cmd_mailbox *outbox, 898 struct mlx4_cmd_mailbox *outbox,
899 struct mlx4_cmd_info *cmd) 899 struct mlx4_cmd_info *cmd)
900{ 900{
901 if (slave != dev->caps.function)
902 return 0;
901 return mlx4_common_dump_eth_stats(dev, slave, 903 return mlx4_common_dump_eth_stats(dev, slave,
902 vhcr->in_modifier, outbox); 904 vhcr->in_modifier, outbox);
903} 905}