projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b477ba6
)
mlx4: VF is not allowed to perform dump stats
author
Eugenia Emantayev
<
[email protected]
>
Thu, 19 Jan 2012 09:44:37 +0000
(09:44 +0000)
committer
David S. Miller
<
[email protected]
>
Sun, 22 Jan 2012 20:08:43 +0000
(15:08 -0500)
In multifunction mode - DUMP_STATS command is not executed
for VFs.
Signed-off-by: Eugenia Emantayev <
[email protected]
>
Reviewed-by: Yevgeny Petrilin <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/port.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/port.c
b/drivers/net/ethernet/mellanox/mlx4/port.c
index 88b52e547524efaee71ffc67f00b4f44e7844f30..1a551d69ddcbcd095c724d95305aec5e2f0b800f 100644
(file)
--- 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,
struct mlx4_cmd_mailbox *outbox,
struct mlx4_cmd_info *cmd)
{
+ if (slave != dev->caps.function)
+ return 0;
return mlx4_common_dump_eth_stats(dev, slave,
vhcr->in_modifier, outbox);
}