]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: Only cycle port if HW timestamp config changes
authorShawn Bohrer <sbohrer@rgmadvisors.com>
Tue, 31 Dec 2013 17:39:40 +0000 (11:39 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 08:30:36 +0000 (03:30 -0500)
commita1f0830f3d93ccf0122e6497b3248c72e9d5af3a
treeee54f3bc45192eac61f4c194756405e46a942638
parent22abf9b00bbe3612c838169b1b82f5f7e7cf93d2
mlx4_en: Only cycle port if HW timestamp config changes

If the hwtstamp_config matches what is currently set for the device then
simply return.  Without this change any program that tries to enable
hardware timestamps will cause the link to cycle even if hardware
timstamps were already enabled.

Signed-off-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Acked-By: Hadar Hen Zion <hadarh@mellanox.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_clock.c