* [PATCH net 1/1] qed: Fix timestamping issue for L2 unicast ptp packets.
@ 2020-02-05 13:10 Sudarsana Reddy Kalluru
2020-02-05 14:20 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sudarsana Reddy Kalluru @ 2020-02-05 13:10 UTC (permalink / raw)
To: davem; +Cc: netdev, mkalderon, aelior
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>
---
drivers/net/ethernet/qlogic/qed/qed_ptp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_ptp.c b/drivers/net/ethernet/qlogic/qed/qed_ptp.c
index 0dacf2c..3e61305 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_ptp.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_ptp.c
@@ -44,8 +44,8 @@
/* Add/subtract the Adjustment_Value when making a Drift adjustment */
#define QED_DRIFT_CNTR_DIRECTION_SHIFT 31
#define QED_TIMESTAMP_MASK BIT(16)
-/* Param mask for Hardware to detect/timestamp the unicast PTP packets */
-#define QED_PTP_UCAST_PARAM_MASK 0xF
+/* Param mask for Hardware to detect/timestamp the L2/L4 unicast PTP packets */
+#define QED_PTP_UCAST_PARAM_MASK 0x70F
static enum qed_resc_lock qed_ptcdev_to_resc(struct qed_hwfn *p_hwfn)
{
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net 1/1] qed: Fix timestamping issue for L2 unicast ptp packets.
2020-02-05 13:10 [PATCH net 1/1] qed: Fix timestamping issue for L2 unicast ptp packets Sudarsana Reddy Kalluru
@ 2020-02-05 14:20 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-02-05 14:20 UTC (permalink / raw)
To: skalluru; +Cc: netdev, mkalderon, aelior
From: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Date: Wed, 5 Feb 2020 05:10:55 -0800
> 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>
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-05 14:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 13:10 [PATCH net 1/1] qed: Fix timestamping issue for L2 unicast ptp packets Sudarsana Reddy Kalluru
2020-02-05 14:20 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.