* [PATCH net] net/mlx_en: Timestamping is not supported in slave mode
@ 2013-06-20 11:58 Amir Vadai
2013-06-24 7:03 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Amir Vadai @ 2013-06-20 11:58 UTC (permalink / raw)
To: David S. Miller; +Cc: Amir Vadai, Or Gerlitz, netdev
Old hypervisors don't mask out timestamp capability for slave. Till slave
support will be added, need to disable capability by slave.
Signed-off-by: Amir Vadai <amirv@mellanox.com>
---
drivers/net/ethernet/mellanox/mlx4/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
index 2f4a260..8a43499 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -632,6 +632,9 @@ static int mlx4_slave_cap(struct mlx4_dev *dev)
dev->caps.cqe_size = 32;
}
+ dev->caps.flags2 &= ~MLX4_DEV_CAP_FLAG2_TS;
+ mlx4_warn(dev, "Timestamping is not supported in slave mode.\n");
+
slave_adjust_steering_mode(dev, &dev_cap, &hca_param);
return 0;
--
1.8.3.251.g1462b67
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net/mlx_en: Timestamping is not supported in slave mode
2013-06-20 11:58 [PATCH net] net/mlx_en: Timestamping is not supported in slave mode Amir Vadai
@ 2013-06-24 7:03 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-06-24 7:03 UTC (permalink / raw)
To: amirv; +Cc: ogerlitz, netdev
From: Amir Vadai <amirv@mellanox.com>
Date: Thu, 20 Jun 2013 14:58:10 +0300
> Old hypervisors don't mask out timestamp capability for slave. Till slave
> support will be added, need to disable capability by slave.
>
> Signed-off-by: Amir Vadai <amirv@mellanox.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-24 7:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-20 11:58 [PATCH net] net/mlx_en: Timestamping is not supported in slave mode Amir Vadai
2013-06-24 7:03 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.