public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Petr Mladek <pmladek@suse.com>
To: Breno Leitao <leitao@debian.org>
Cc: John Ogness <john.ogness@linutronix.de>,
	osandov@osandov.com, mpdesouza@suse.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, asantostc@gmail.com, efault@gmx.de,
	gustavold@gmail.com, calvin@wbinvd.org, jv@jvosburgh.net,
	kernel-team@meta.com, Simon Horman <horms@kernel.org>,
	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>,
	rostedt@goodmis.org
Subject: Re: [PATCH net-next 0/2] net: netconsole: convert to NBCON console infrastructure
Date: Tue, 20 Jan 2026 09:59:16 +0100	[thread overview]
Message-ID: <aW9D5M0o9_8hdVvt@pathway.suse.cz> (raw)
In-Reply-To: <bvmrtic6pr52cxwf6mis526zz4sbxstxjd2wiqkd2emueatv33@eccynoxgjgo2>

On Mon 2026-01-19 08:34:42, Breno Leitao wrote:
> Hello Petr,
> 
> On Mon, Jan 19, 2026 at 03:00:11PM +0100, Petr Mladek wrote:
> > > Context: netconsole outputs the message in a different way, similarly to the
> > > printk dictionary. I.e, taskname and cpu come after, one entry per line:
> > > 
> > >   <message>
> > >    SUBSYSTEM=net
> > >    DEVICE=+pci:0000:00:1f.6
> > >    cpu=42
> > >    taskname=NetworkManager
> > >    ...
> > 
> > BTW.1: I see that netconsole actually does not show pid. So that we do not
> >        need the trick with caller_id2. But people might want to add it in
> >        the future.
> 
> Correct, I haven't found the pid important when aggregating messages in
> the a fleet of hosts.

Good to know.

> > BTW.2: I also noticed that sysdata_append_msgid() uses netconsole-specific
> >        message counter.
> > 
> >        Note that each message has its own sequence number. It is the
> >        .seq member in struct printk_info. It is printed in the extended
> >        console output, see info_print_ext_header(). So it is printed
> >        even on netconsole when this extended format is used.
> > 
> >        I wonder if the netconsole-specific counter was added
> >        intentionally.
> 
> The addition was intentional. The purpose was to monitor the number of
> lost netconsole messages.
> 
> Originally we were using printk seq number to track "lost" message, later
> we discovered that some message numbers were never sent to netconsole
> , either due to  different loglevel or supressed message. Thus, using
> .seq was not useful to track lost netconsole message.
> 
> As a result, netconsole now increments the sequence number only when
> a packet is sent over the wire. Therefore, any gap in the "sequence"
> indicates that a packet was lost.

Makes perfect sense.

> Back o this current patch, I've tested it internally and run a test for
> hours without any current issue in terms of task->comm/cpu. 
> How would you prefer to proceed to get the patch in?

Is the netconsole part ready for mainline?

If yes, I would suggest to send the full patchset for review and
it might go in via the networking tree.

If no, then we could try to get in at least the printk part
for 6.20. I would personally use the variant with caller_id2
just to be on the safe side.

Note that AFAIK, there are no conflicting changes on the printk side
floating around.

Best Regards,
Petr

  reply	other threads:[~2026-01-20  8:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-22 14:52 [PATCH net-next 0/2] net: netconsole: convert to NBCON console infrastructure Breno Leitao
2025-12-22 14:52 ` [PATCH net-next 1/2] netconsole: extract message fragmentation into send_msg_udp() Breno Leitao
2025-12-22 14:52 ` [PATCH net-next 2/2] netconsole: convert to NBCON console infrastructure Breno Leitao
2026-01-02  3:54   ` Marcos Paulo de Souza
2026-01-06 15:43     ` Breno Leitao
2026-01-07 15:04       ` Marcos Paulo de Souza
2025-12-23  7:12 ` [PATCH net-next 0/2] net: " Paolo Abeni
2025-12-23  9:44   ` Breno Leitao
2026-01-07 14:49 ` Breno Leitao
2026-01-07 15:50   ` John Ogness
2026-01-07 16:58     ` Breno Leitao
2026-01-08 11:08       ` Breno Leitao
2026-01-08 16:50         ` John Ogness
2026-01-09 10:48           ` Breno Leitao
2026-01-09 13:29           ` Petr Mladek
2026-01-09 14:03             ` Petr Mladek
2026-01-09 15:13             ` John Ogness
2026-01-12 10:55               ` Breno Leitao
2026-01-12 12:44                 ` Breno Leitao
2026-01-16 15:51                   ` Petr Mladek
2026-01-16 15:53                     ` Petr Mladek
2026-01-16 18:07                       ` Breno Leitao
2026-01-19 14:00                         ` Petr Mladek
2026-01-19 16:34                           ` Breno Leitao
2026-01-20  8:59                             ` Petr Mladek [this message]
2026-01-20  9:17                               ` Breno Leitao
2026-01-20 10:10                               ` John Ogness
2026-01-12 14:17               ` Petr Mladek

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=aW9D5M0o9_8hdVvt@pathway.suse.cz \
    --to=pmladek@suse.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=asantostc@gmail.com \
    --cc=calvin@wbinvd.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=efault@gmx.de \
    --cc=gustavold@gmail.com \
    --cc=horms@kernel.org \
    --cc=john.ogness@linutronix.de \
    --cc=jv@jvosburgh.net \
    --cc=kernel-team@meta.com \
    --cc=kuba@kernel.org \
    --cc=leitao@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpdesouza@suse.com \
    --cc=netdev@vger.kernel.org \
    --cc=osandov@osandov.com \
    --cc=pabeni@redhat.com \
    --cc=rostedt@goodmis.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