Skip to content

Commit 2b2de48

Browse files
Sudarsana Reddy Kallurugregkh
authored andcommitted
qed: Fix timestamping issue for L2 unicast ptp packets.
[ Upstream commit 0202d29 ] commit cedeac9 ("qed: Add support for Timestamping the unicast PTP packets.") handles the timestamping of L4 ptp packets only. This patch adds driver changes to detect/timestamp both L2/L4 unicast PTP packets. Fixes: cedeac9 ("qed: Add support for Timestamping the unicast PTP packets.") Signed-off-by: Sudarsana Reddy Kalluru <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 036ecba commit 2b2de48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/qlogic/qed/qed_ptp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
/* Add/subtract the Adjustment_Value when making a Drift adjustment */
4545
#define QED_DRIFT_CNTR_DIRECTION_SHIFT 31
4646
#define QED_TIMESTAMP_MASK BIT(16)
47-
/* Param mask for Hardware to detect/timestamp the unicast PTP packets */
48-
#define QED_PTP_UCAST_PARAM_MASK 0xF
47+
/* Param mask for Hardware to detect/timestamp the L2/L4 unicast PTP packets */
48+
#define QED_PTP_UCAST_PARAM_MASK 0x70F
4949

5050
static enum qed_resc_lock qed_ptcdev_to_resc(struct qed_hwfn *p_hwfn)
5151
{

0 commit comments

Comments
 (0)