netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Felix Maurer <fmaurer@redhat.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	liuhangbin@gmail.com, m-karicheri2@ti.com, arvid.brodin@alten.se
Subject: Re: [PATCH net 2/2] hsr: Follow standard for HSRv0 supervision frames
Date: Wed, 12 Nov 2025 12:59:06 +0100	[thread overview]
Message-ID: <20251112115906.esS_ffL3@linutronix.de> (raw)
In-Reply-To: <4cb6fcd6-4e0f-47eb-a826-c1af712d33ab@redhat.com>

On 2025-11-12 12:01:51 [+0100], Felix Maurer wrote:
> > You say HSRv0 while I don't see this mentioned at all. And you limit the
> > change to prot_version == 0. So maybe this was once and removed from the
> > standard.
> 
> My description for the path_id is from IEC 62439-3:2010. As far as I
> know, the HSRv0/HSRv1 terminology is only used in the kernel. AFAIK, our
> version 0/1 refers to the value in the SupVersion field of the HSR
> supervision frames. The SupVersion is defined as 0 in IEC 62439-3:2010
> and defined as 1 in IEC 62439-3:2012 and following.

This is what I assumed. I don't have any older specification, I have
here SupVersion always defined as 1.

> The definition for the SupVersion field also states: "Implementation of
> version X of the protocol shall interpret [...] version <=X frames
> exactly as specified for the version concerned." (in IEC
> 62439-3:{2010,2012,2016,2021})
> 
> I read from this that if we implement HSRv0 we should follow the latest
> specification for this version, i.e., the latest specification with
> SupVersion defined as 0 (which would be IEC 62439-3:2010). This is also
> why I limited the change to prot_version == 0 (maybe we should have some
> helpers like hsr_is_v{0,1}() to make these conditions a bit more self
> explanatory).

Based on the explanation, the limit to prot_version is the reasonable
thing to do.

> Thanks,
>    Felix

Sebastian

  reply	other threads:[~2025-11-12 11:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-11 16:29 [PATCH net 0/2] hsr: Send correct HSRv0 supervision frames Felix Maurer
2025-11-11 16:29 ` [PATCH net 1/2] hsr: Fix supervision frame sending on HSRv0 Felix Maurer
2025-11-12 10:03   ` Sebastian Andrzej Siewior
2025-11-11 16:29 ` [PATCH net 2/2] hsr: Follow standard for HSRv0 supervision frames Felix Maurer
2025-11-12 10:24   ` Sebastian Andrzej Siewior
2025-11-12 11:01     ` Felix Maurer
2025-11-12 11:59       ` Sebastian Andrzej Siewior [this message]
2025-11-12  9:41 ` [PATCH net 0/2] hsr: Send correct " Hangbin Liu
2025-11-12 10:03 ` Sebastian Andrzej Siewior
2025-11-12 10:38   ` Felix Maurer
2025-11-13 15:30 ` patchwork-bot+netdevbpf

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=20251112115906.esS_ffL3@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=arvid.brodin@alten.se \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fmaurer@redhat.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=liuhangbin@gmail.com \
    --cc=m-karicheri2@ti.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /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 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).