From: Felix Maurer <fmaurer@redhat.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, horms@kernel.org, jkarrenpalo@gmail.com,
tglx@kernel.org, mingo@kernel.org, bigeasy@linutronix.de,
matttbe@kernel.org, allison.henderson@oracle.com,
petrm@nvidia.com, antonio@openvpn.net,
Steffen Lindner <steffen.lindner@de.abb.com>
Subject: Re: [PATCH net-next v3 4/8] hsr: Implement more robust duplicate discard for PRP
Date: Thu, 5 Feb 2026 15:02:03 +0100 [thread overview]
Message-ID: <aYSi2_VFZ1iEMZJj@thinkpad> (raw)
In-Reply-To: <ccad3f52-e46a-46b5-9113-153a31b3ddd3@redhat.com>
On Thu, Feb 05, 2026 at 01:25:01PM +0100, Paolo Abeni wrote:
> On 2/2/26 3:19 PM, Felix Maurer wrote:
[...]
> > Reported-by: Steffen Lindner <steffen.lindner@de.abb.com>
> > Fixes: 05fd00e5e7b1 ("net: hsr: Fix PRP duplicate detection")
>
> I'm sorry for nit picking, but it looks like the current quidance is to
> avoid fixes tag for this kind of resiliece improving refactors:
>
> https://lore.kernel.org/netdev/20260121171051.039110c3@kernel.org/
>
> > @@ -526,18 +613,21 @@ int hsr_register_frame_out(struct hsr_port *port, struct hsr_frame_info *frame)
> > */
> > int prp_register_frame_out(struct hsr_port *port, struct hsr_frame_info *frame)
> > {
> > - enum hsr_port_type other_port;
> > - enum hsr_port_type rcv_port;
> > + u16 sequence_nr, seq_bit, block_idx;
> > + struct hsr_seq_block *block;
> > struct hsr_node *node;
> > - u16 sequence_diff;
> > - u16 sequence_exp;
> > - u16 sequence_nr;
> >
> > - /* out-going frames are always in order
> > - * and can be checked the same way as for HSR
> > - */
> > - if (frame->port_rcv->type == HSR_PT_MASTER)
> > - return hsr_register_frame_out(port, frame);
> > + node = frame->node_src;
> > + sequence_nr = frame->sequence_nr;
> > +
> > + // out-going frames are always in order
>
> Please use /* */ for comments.
Both done in v4 [1], plus one more instance of a // comment.
Thanks,
Felix
[1]: https://lore.kernel.org/netdev/cover.1770299429.git.fmaurer@redhat.com/
next prev parent reply other threads:[~2026-02-05 14:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-02 14:19 [PATCH net-next v3 0/8] hsr: Implement more robust duplicate discard algorithm Felix Maurer
2026-02-02 14:19 ` [PATCH net-next v3 1/8] selftests: hsr: Add ping test for PRP Felix Maurer
2026-02-02 14:19 ` [PATCH net-next v3 2/8] selftests: hsr: Check duplicates on HSR with VLAN Felix Maurer
2026-02-02 14:19 ` [PATCH net-next v3 3/8] selftests: hsr: Add tests for faulty links Felix Maurer
2026-02-02 14:19 ` [PATCH net-next v3 4/8] hsr: Implement more robust duplicate discard for PRP Felix Maurer
2026-02-04 11:44 ` Sebastian Andrzej Siewior
2026-02-05 12:25 ` Paolo Abeni
2026-02-05 14:02 ` Felix Maurer [this message]
2026-02-02 14:19 ` [PATCH net-next v3 5/8] selftests: hsr: Add tests for more link faults with PRP Felix Maurer
2026-02-02 14:19 ` [PATCH net-next v3 6/8] hsr: Implement more robust duplicate discard for HSR Felix Maurer
2026-02-04 11:44 ` Sebastian Andrzej Siewior
2026-02-02 14:19 ` [PATCH net-next v3 7/8] selftests: hsr: Add more link fault tests " Felix Maurer
2026-02-02 14:19 ` [PATCH net-next v3 8/8] MAINTAINERS: Assign hsr selftests to HSR Felix Maurer
2026-02-03 14:09 ` [PATCH net-next v3 0/8] hsr: Implement more robust duplicate discard algorithm Sebastian Andrzej Siewior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aYSi2_VFZ1iEMZJj@thinkpad \
--to=fmaurer@redhat.com \
--cc=allison.henderson@oracle.com \
--cc=antonio@openvpn.net \
--cc=bigeasy@linutronix.de \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jkarrenpalo@gmail.com \
--cc=kuba@kernel.org \
--cc=matttbe@kernel.org \
--cc=mingo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.com \
--cc=steffen.lindner@de.abb.com \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.