Netdev List
 help / color / mirror / Atom feed
From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
To: <netdev-bot+sashiko@kernel.org>, <jiri@resnulli.us>
Cc: <netdev@vger.kernel.org>, <pabeni@redhat.com>,
	<willemb@google.com>, <donald.hunter@gmail.com>,
	<intel-wired-lan@lists.osuosl.org>, <anthony.l.nguyen@intel.com>,
	<davem@davemloft.net>, <edumazet@kernel.org>, <kuba@kernel.org>,
	<horms@kernel.org>, <andrew+netdev@lunn.ch>, <poros@redhat.com>
Subject: Re: [PATCH net 3/3] devlink: make room for many nested instances in a dev message
Date: Fri, 4 Dec 2026 13:49:28 +0100	[thread overview]
Message-ID: <b22d244b-8494-44ef-b4c3-b937622970b0@intel.com> (raw)
In-Reply-To: <179630471718.3146.7791163240760595954@kernel.org>


> [Severity: Medium]
> Can this make "devlink dev show" fail for readers with a page-sized
> buffer, in setups where it worked before this patch?

Only in a narrow range, when the estimate for the biggest instance is
over a page but its real message is not, roughly 65-85 nested instances.

But adaptive (or just increased) sizing should be added to iproute2
anyway, I plan to add it there alongside my other changes coming from my
XLVF series.

> devlink->index is a u32, so it gets a 4 byte payload.

still we put it in 8 bytes on the wire, so I went with sizeof(u64)

> devlink_nl_put_nested_handle() only adds the netns id when the netns
> differs.

this is the only not needed excess (8B per same-netns handle), but we
get simpler code (one if less), not sure if it is worth changing just
for that

> Given the Closes: tag, should the commit message say that iproute2 still
> can't show these setups?

it already does

  reply	other threads:[~2026-12-04 12:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:48 [PATCH net 0/3] ice, devlink: fixes needed for XLVF Przemek Kitszel
2026-12-02 12:48 ` [PATCH net 1/3] ice: move only the valid VF queues on LAG reclaim and reset rebuild Przemek Kitszel
2026-12-04 14:56   ` Loktionov, Aleksandr
2026-12-02 12:48 ` [PATCH net 2/3] ice: lock VF config while changing its MSI-X vector count Przemek Kitszel
2026-12-03 13:31   ` netdev-bot+sashiko
2026-12-04 12:41     ` Przemek Kitszel
2026-12-02 12:48 ` [PATCH net 3/3] devlink: make room for many nested instances in a dev message Przemek Kitszel
2026-12-03 13:31   ` netdev-bot+sashiko
2026-12-04 12:49     ` Przemek Kitszel [this message]
2026-12-02 12:54 ` [PATCH net 0/3] ice, devlink: fixes needed for XLVF netdev-bot+sinfo
2026-12-04 12:53 ` Przemek Kitszel

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=b22d244b-8494-44ef-b4c3-b937622970b0@intel.com \
    --to=przemyslaw.kitszel@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=davem@davemloft.net \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=poros@redhat.com \
    --cc=willemb@google.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