projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50754d2
)
net/mlx4_core: Disable HW timestamping for VFs
author
Amir Vadai
<amirv@mellanox.com>
Thu, 25 Apr 2013 05:22:23 +0000
(
05:22
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 27 Apr 2013 03:29:13 +0000
(23:29 -0400)
Disable timestamp capability on virtual functions.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/fw.c
b/drivers/net/ethernet/mellanox/mlx4/fw.c
index
6776c25
..
1f6c3e9
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/fw.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/fw.c
@@
-784,6
+784,11
@@
int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave,
flags &= ~MLX4_DEV_CAP_FLAG_MEM_WINDOW;
MLX4_PUT(outbox->buf, flags, QUERY_DEV_CAP_EXT_FLAGS_OFFSET);
+ /* For guests, disable timestamp */
+ MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET);
+ field &= 0x7f;
+ MLX4_PUT(outbox->buf, field, QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET);
+
/* For guests, report Blueflame disabled */
MLX4_GET(field, outbox->buf, QUERY_DEV_CAP_BF_OFFSET);
field &= 0x7f;