linux/drivers/net/ethernet/intel/ixgbe
Yusuke Suzuki aeb4c73100 ixgbe: Fix incorrect bitwise operations of PTP Rx timestamp flags
Rx timestamp does not work on 82599 and X540 because bitwise operation
of RX_HWTSTAMP flags is incorrect and ixgbe_ptp_rx_hwtstamp() is never
called. This patch fixes it to enable Rx timestamp on 82599 and X540.

Without this fix:
ptp4l[278.730]: selected /dev/ptp8 as PTP clock
ptp4l[278.733]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[278.733]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[278.834]: port 1: received SYNC without timestamp
ptp4l[278.835]: port 1: new foreign master 1c3947.fffe.60f9cc-1
ptp4l[279.834]: port 1: received SYNC without timestamp
ptp4l[280.834]: port 1: received SYNC without timestamp
ptp4l[281.834]: port 1: received SYNC without timestamp
ptp4l[282.834]: port 1: received SYNC without timestamp
ptp4l[282.835]: selected best master clock 1c3947.fffe.60f9cc
ptp4l[282.835]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[283.834]: port 1: received SYNC without timestamp

With this fix:
ptp4l[239.154]: selected /dev/ptp8 as PTP clock
ptp4l[239.157]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[239.157]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[240.989]: port 1: new foreign master 1c3947.fffe.60f9cc-1
ptp4l[244.989]: selected best master clock 1c3947.fffe.60f9cc
ptp4l[244.989]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[246.977]: master offset -899583339542096 s0 freq      +0 path delay     16222
ptp4l[247.977]: master offset -899583339617265 s1 freq  -75169 path delay     16177
ptp4l[248.977]: master offset       -130 s2 freq  -75299 path delay     16177
ptp4l[248.977]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[249.977]: master offset         -9 s2 freq  -75217 path delay     16177
ptp4l[250.977]: master offset         88 s2 freq  -75123 path delay     16132

Fixes: a9763f3cb5 ("ixgbe: Update PTP to support X550EM_x devices")
Signed-off-by: Yusuke Suzuki <yus-suzuki@uf.jp.nec.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2017-01-03 13:03:37 -08:00
..
ixgbe_82598.c ixgbe: Add X553 PHY FC autoneg support 2016-11-04 17:15:32 -07:00
ixgbe_82599.c ixgbe: Add X553 PHY FC autoneg support 2016-11-04 17:15:32 -07:00
ixgbe_common.c ixgbe: Report driver version to firmware for x550 devices 2017-01-03 13:03:34 -08:00
ixgbe_common.h ixgbe: Report driver version to firmware for x550 devices 2017-01-03 13:03:34 -08:00
ixgbe_dcb_82598.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_dcb_82599.h
ixgbe_dcb_nl.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_dcb.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_dcb.h
ixgbe_debugfs.c
ixgbe_ethtool.c ixgbe: Fix reporting of 100Mb capability 2017-01-03 13:03:35 -08:00
ixgbe_fcoe.c ixgbe: Fix MDD events generated when FCoE+SRIOV are enabled 2016-01-08 04:15:00 -08:00
ixgbe_fcoe.h ixgbe: adds x550 specific FCoE offloads 2015-04-10 00:15:55 -07:00
ixgbe_lib.c ixgbe: add mask for 64 RSS queues 2017-01-03 13:03:34 -08:00
ixgbe_main.c ixgbe: fix AER error handling 2017-01-03 13:03:37 -08:00
ixgbe_mbx.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_mbx.h ixgbe: Make all unchanging ops structures const 2016-04-04 13:36:58 -07:00
ixgbe_model.h ixgbe: Fix deleting link filters for cls_u32 offloads 2016-06-29 10:05:24 -07:00
ixgbe_phy.c ixgbe: Reduce I2C retry count on X550 devices 2017-01-03 13:03:35 -08:00
ixgbe_phy.h ixgbe: use link instead of I2C combined abstraction 2016-11-04 17:22:06 -07:00
ixgbe_ptp.c ixgbe: Fix incorrect bitwise operations of PTP Rx timestamp flags 2017-01-03 13:03:37 -08:00
ixgbe_sriov.c ixgbe: test for trust in macvlan adjustments for VF 2017-01-03 13:03:36 -08:00
ixgbe_sriov.h net: Update API for VF vlan protocol 802.1ad support 2016-09-24 08:01:26 -04:00
ixgbe_sysfs.c
ixgbe_type.h ixgbe: Report driver version to firmware for x550 devices 2017-01-03 13:03:34 -08:00
ixgbe_x540.c ixgbe: Add bounds check for x540 LED functions 2017-01-03 13:03:35 -08:00
ixgbe_x540.h ixgbe: Place SWFW semaphore in known valid state at probe 2016-04-04 17:44:50 -07:00
ixgbe_x550.c ixgbe: Report driver version to firmware for x550 devices 2017-01-03 13:03:34 -08:00
ixgbe.h ixgbe: Add X553 PHY FC autoneg support 2016-11-04 17:15:32 -07:00
Makefile ixgbe: Add X550 support function pointers 2014-12-05 09:13:07 -08:00