* [PATCH net-next] net: dsa: hellcreek: Replace bogus comment
@ 2023-08-01 13:16 Kurt Kanzenbach
2023-08-02 10:06 ` Vladimir Oltean
2023-08-02 19:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Kurt Kanzenbach @ 2023-08-01 13:16 UTC (permalink / raw)
To: Andrew Lunn, Florian Fainelli, Vladimir Oltean
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
netdev, Kurt Kanzenbach
Replace bogus comment about matching the latched timestamp to one of the
received frames. That comment is probably copied from mv88e6xxx and true for
these switches. However, the hellcreek switch is configured to insert the
timestamp directly into the PTP packets.
While here, remove the other comments regarding the list splicing and locking as
well, because it doesn't add any value.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c b/drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
index ffd06cf8c44f..bd7aacc71a63 100644
--- a/drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
+++ b/drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
@@ -298,17 +298,10 @@ static void hellcreek_get_rxts(struct hellcreek *hellcreek,
struct sk_buff_head received;
unsigned long flags;
- /* The latched timestamp belongs to one of the received frames. */
+ /* Construct Rx timestamps for all received PTP packets. */
__skb_queue_head_init(&received);
-
- /* Lock & disable interrupts */
spin_lock_irqsave(&rxq->lock, flags);
-
- /* Add the reception queue "rxq" to the "received" queue an reintialize
- * "rxq". From now on, we deal with "received" not with "rxq"
- */
skb_queue_splice_tail_init(rxq, &received);
-
spin_unlock_irqrestore(&rxq->lock, flags);
for (; skb; skb = __skb_dequeue(&received)) {
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: dsa: hellcreek: Replace bogus comment
2023-08-01 13:16 [PATCH net-next] net: dsa: hellcreek: Replace bogus comment Kurt Kanzenbach
@ 2023-08-02 10:06 ` Vladimir Oltean
2023-08-02 19:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Oltean @ 2023-08-02 10:06 UTC (permalink / raw)
To: Kurt Kanzenbach
Cc: Andrew Lunn, Florian Fainelli, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, netdev
On Tue, Aug 01, 2023 at 03:16:47PM +0200, Kurt Kanzenbach wrote:
> Replace bogus comment about matching the latched timestamp to one of the
> received frames. That comment is probably copied from mv88e6xxx and true for
> these switches. However, the hellcreek switch is configured to insert the
> timestamp directly into the PTP packets.
>
> While here, remove the other comments regarding the list splicing and locking as
> well, because it doesn't add any value.
>
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
> ---
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: dsa: hellcreek: Replace bogus comment
2023-08-01 13:16 [PATCH net-next] net: dsa: hellcreek: Replace bogus comment Kurt Kanzenbach
2023-08-02 10:06 ` Vladimir Oltean
@ 2023-08-02 19:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-08-02 19:20 UTC (permalink / raw)
To: Kurt Kanzenbach
Cc: andrew, f.fainelli, olteanv, davem, edumazet, kuba, pabeni,
netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 1 Aug 2023 15:16:47 +0200 you wrote:
> Replace bogus comment about matching the latched timestamp to one of the
> received frames. That comment is probably copied from mv88e6xxx and true for
> these switches. However, the hellcreek switch is configured to insert the
> timestamp directly into the PTP packets.
>
> While here, remove the other comments regarding the list splicing and locking as
> well, because it doesn't add any value.
>
> [...]
Here is the summary with links:
- [net-next] net: dsa: hellcreek: Replace bogus comment
https://git.kernel.org/netdev/net-next/c/ae3683a34265
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-02 19:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-01 13:16 [PATCH net-next] net: dsa: hellcreek: Replace bogus comment Kurt Kanzenbach
2023-08-02 10:06 ` Vladimir Oltean
2023-08-02 19:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).