qed: Fix timestamping issue for L2 unicast ptp packets.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Wed, 5 Feb 2020 13:10:55 +0000 (05:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:35:51 +0000 (04:35 -0800)
commit2b2de489c82381a27e9a1f4fe3d586e000d2bacc
treea8881198745bdaf5126ff7d96de126d1a1335a23
parent036ecba2eb995c952dca3700393b9381b4f27937
qed: Fix timestamping issue for L2 unicast ptp packets.

[ Upstream commit 0202d293c2faecba791ba4afc5aec086249c393d ]

commit cedeac9df4b8 ("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: cedeac9df4b8 ("qed: Add support for Timestamping the unicast PTP packets.")
Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qed/qed_ptp.c