Netdev List
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Felix Maurer <fmaurer@redhat.com>
Cc: netdev@vger.kernel.org, Jayachandran <j-rameshbabu@ti.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Chintan Vankar <c-vankar@ti.com>,
	Danish Anwar <danishanwar@ti.com>, Daolin Qiu <d-qiu@ti.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Neelima Muralidharan <neelima@ti.com>,
	Paolo Abeni <pabeni@redhat.com>,
	Praneeth Bajjuri <praneeth@ti.com>,
	Pratheesh Gangadhar TK <pratheesh@ti.com>,
	Richard Cochran <richardcochran@gmail.com>,
	Simon Horman <horms@kernel.org>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Subject: Re: [PATCH net-next v4] hsr: Allow to send a specific port and with HSR header
Date: Fri, 22 May 2026 14:23:14 +0200	[thread overview]
Message-ID: <20260522122314.4SY-dYPg@linutronix.de> (raw)
In-Reply-To: <ag9NU2iGKLlSd6tz@thinkpad>

On 2026-05-21 20:22:11 [+0200], Felix Maurer wrote:
> Hi Sebastian,
Hi Felix,

> I unfortunately didn't get to properly reviewing your patch before
> leaving for vacation. But in general I like what you're proposing at the
> moment. The inline header feels like a bit of magic to me still, but
> it's probably necessary to have some amount of magic to make the
> different sending options possible. Also seems like it doesn't put too
> much burden on user space.

The inline header is the common ground I established with Willem.

> Skimming the patch, one thing came to my mind: maybe there is a simple
> way to make user space opt-in to the inline header handling, e.g.,
> something like a respect-hsr-inline-header flag at socket level(?) that
> only gets checked in the hsr code. Without such flag, the special
> parsing wouldn't happen at all, with the flag we still check for the
> inline magic value to support sending normal frames and special frames.
> But this is mostly an idea, probably not too well thought through yet.

We would have to invent this flag and then af_packet would have to use
it. In its current shape, we need to look at skb->protocol and is
restricted to the PTP case. This shouldn't cause too much overhead.

> But I have one real ask: can you add a simple selftest for this? No need
> to do any kind of real PTP, but just verify that we don't break any case
> of the matrix "add header/includes header" x "send normally/send on
> single port". Maybe just by tcpdump'ing on the other end of a veth?

Okay. Sounds reasonable.

> Thanks,
>    Felix

Sebastian

      reply	other threads:[~2026-05-22 12:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-08 10:17 [PATCH net-next v4] hsr: Allow to send a specific port and with HSR header Sebastian Andrzej Siewior
2026-05-08 17:34 ` Willem de Bruijn
2026-05-15 15:14   ` Sebastian Andrzej Siewior
2026-05-18 19:29     ` Sebastian Andrzej Siewior
2026-05-21  4:51 ` kernel test robot
2026-05-21 18:22 ` Felix Maurer
2026-05-22 12:23   ` Sebastian Andrzej Siewior [this message]

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=20260522122314.4SY-dYPg@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=andrew+netdev@lunn.ch \
    --cc=c-vankar@ti.com \
    --cc=d-qiu@ti.com \
    --cc=danishanwar@ti.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fmaurer@redhat.com \
    --cc=horms@kernel.org \
    --cc=j-rameshbabu@ti.com \
    --cc=kuba@kernel.org \
    --cc=neelima@ti.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=praneeth@ti.com \
    --cc=pratheesh@ti.com \
    --cc=richardcochran@gmail.com \
    --cc=vigneshr@ti.com \
    --cc=willemdebruijn.kernel@gmail.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