Netdev List
 help / color / mirror / Atom feed
From: Ali Ahmet Memis <ali@iusegentoo.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: xiexinet@gmail.com, netdev@vger.kernel.org, davem@davemloft.net,
	edumazet@google.com, pabeni@redhat.com, horms@kernel.org,
	shuah@kernel.org, lukma@denx.de, m-karicheri2@ti.com,
	linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net 1/3] net: hsr: privatize interlink-bound skbs before address mutation
Date: Mon,  3 Aug 2026 21:05:41 +0000	[thread overview]
Message-ID: <20260803210717.123417-1-ali@iusegentoo.com> (raw)
In-Reply-To: <20260803124305.09e0da44@kernel.org>

On Mon, 3 Aug 2026 12:43:05 -0700 Jakub Kicinski wrote:
> How are you producing this review?
> I've never seen this sort of blurb human-written.

I write them myself. English is not my first language, so I draft a comment
and then keep cutting and rearranging it until it says exactly what I mean.
What comes out is denser than how people normally write on a list, and I can
see how that reads as machine output.

The content is what I went through in hsr_forward.c. hsr_deliver_master()
calls hsr_addr_subst_source(), which writes into the header, so the copy has
to happen before that call rather than after it. It only matters when the
master can be looking at the same skb as another consumer, and in
hsr_forward_do() that is decided by these two:

	if (port->type == HSR_PT_MASTER && !frame->is_local_dest)
		continue;
	if (port->type != HSR_PT_MASTER && frame->is_local_exclusive)
		continue;

so a ring frame reaches the master and a slave port together only when
is_local_dest is set and is_local_exclusive is not. That is the case I meant
by the skb aliasing a live consumer. The accounting remark was about the
create_tagged_frame() failure just below, which does
frame->port_rcv->dev->stats.rx_dropped++, and the new failure path does the
same.

If the phrasing is what bothers you I can write these plainly from now on.
I only tag patches I have read through myself.

  reply	other threads:[~2026-08-03 21:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 14:36 [PATCH net 0/3] net: hsr: fix shared-skb mutations in the forwarding path Xin Xie
2026-07-28 14:36 ` [PATCH net 1/3] net: hsr: privatize interlink-bound skbs before address mutation Xin Xie
2026-08-01  0:29   ` Ali Ahmet Memis
2026-08-03 19:43     ` Jakub Kicinski
2026-08-03 21:05       ` Ali Ahmet Memis [this message]
2026-07-28 14:36 ` [PATCH net 2/3] net: hsr: clone before updating path and LAN IDs in tagged frames Xin Xie
2026-08-01  0:29   ` Ali Ahmet Memis
2026-07-28 14:36 ` [PATCH net 3/3] selftests: net: hsr: add shared-mutation regression test Xin Xie
2026-08-01  0:29   ` Ali Ahmet Memis
2026-08-01  0:29 ` [PATCH net 0/3] net: hsr: fix shared-skb mutations in the forwarding path Ali Ahmet Memis

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=20260803210717.123417-1-ali@iusegentoo.com \
    --to=ali@iusegentoo.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=lukma@denx.de \
    --cc=m-karicheri2@ti.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=xiexinet@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