From: Shawn Bohrer Date: Tue, 31 Dec 2013 17:39:39 +0000 (-0600) Subject: mlx4_en: Add PTP hardware clock X-Git-Tag: v3.14-rc1~94^2~315 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7d4eaed995d76fb24a18e202fdf5072197ff0a;p=pandora-kernel.git mlx4_en: Add PTP hardware clock This adds a PHC to the mlx4_en driver. We use reader/writer spinlocks to protect the timecounter since every packet received needs to call timecounter_cycle2time() when timestamping is enabled. This can become a performance bottleneck with RSS and multiple receive queues if normal spinlocks are used. This driver has been tested with both Documentation/ptp/testptp and the linuxptp project (http://linuxptp.sourceforge.net/) on a Mellanox ConnectX-3 card. Signed-off-by: Shawn Bohrer Acked-By: Hadar Hen Zion Acked-by: Richard Cochran Signed-off-by: David S. Miller --- Reading git-diff-tree failed