Netdev List
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: Simon Horman <horms@kernel.org>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Jonathan Corbet <corbet@lwn.net>, Shuah Khan <shuah@kernel.org>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org,
	rdunlap@infradead.org, kernel-team@meta.com
Subject: Re: [PATCH net-next v4 1/8] netconsole: consolidate send buffers into netconsole_target struct
Date: Thu, 6 Feb 2025 03:00:47 -0800	[thread overview]
Message-ID: <20250206-rough-hissing-armadillo-fb5dfa@leitao> (raw)
In-Reply-To: <20250205133455.GD554665@kernel.org>

Hello Simon,

On Wed, Feb 05, 2025 at 01:34:55PM +0000, Simon Horman wrote:
> On Tue, Feb 04, 2025 at 03:35:09AM -0800, Breno Leitao wrote:
> > Move the static buffers from send_msg_no_fragmentation() and
> > send_msg_fragmented() into the netconsole_target structure. This
> > simplifies the code by:
> > - Eliminating redundant static buffers
> > - Centralizing buffer management in the target structure
> > - Reducing memory usage by 1KB (one buffer instead of two)
> > 
> > The buffer in netconsole_target is protected by target_list_lock,
> > maintaining the same synchronization semantics as the original code.
> > 
> > Suggested-by: Jakub Kicinski <kuba@kernel.org>
> > Signed-off-by: Breno Leitao <leitao@debian.org>
> > Reviewed-by: Simon Horman <horms@kernel.org>
> 
> Hi Breno,
> 
> Unfortunately this series did not apply to net-next cleanly,
> which trips up the Netdev CI. Could you rebase and repost?

Right, I was expecting it since I rebased it on top of the
netcons_frag_msgs selftest[1]. I've commented it in the cover page, but,
clearly it was not the best decision, since we missed the Netdev CI. So,
next time I will send it against pristine 'netnext/main' even if there
are oher conflicting patches being discussed.

[1] https://lore.kernel.org/all/20250203-netcons_frag_msgs-v1-1-5bc6bedf2ac0@debian.org/

> Also, one minor nit below.

I will update and send a new version.

Thanks for the review,
--breno

  reply	other threads:[~2025-02-06 11:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-04 11:35 [PATCH net-next v4 0/8] netconsole: Add support for CPU population Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 1/8] netconsole: consolidate send buffers into netconsole_target struct Breno Leitao
2025-02-05 13:34   ` Simon Horman
2025-02-06 11:00     ` Breno Leitao [this message]
2025-02-04 11:35 ` [PATCH net-next v4 2/8] netconsole: Rename userdata to extradata Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 3/8] netconsole: Helper to count number of used entries Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 4/8] netconsole: Introduce configfs helpers for sysdata features Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 5/8] netconsole: Include sysdata in extradata entry count Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 6/8] netconsole: add support for sysdata and CPU population Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 7/8] netconsole: selftest: test for sysdata CPU Breno Leitao
2025-02-04 11:35 ` [PATCH net-next v4 8/8] netconsole: docs: Add documentation for CPU number auto-population Breno Leitao
2025-02-05 13:35   ` Simon Horman

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=20250206-rough-hissing-armadillo-fb5dfa@leitao \
    --to=leitao@debian.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kernel-team@meta.com \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rdunlap@infradead.org \
    --cc=shuah@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox