From: Jakub Kicinski <kuba@kernel.org>
To: Jiri Pirko <jiri@resnulli.us>
Cc: Parav Pandit <parav@nvidia.com>, Jiri Pirko <jiri@nvidia.com>,
netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
pabeni@redhat.com, horms@kernel.org
Subject: Re: [PATCH net-next v1] devlink: Notify eswitch mode changes to devlink monitor
Date: Thu, 20 Nov 2025 06:52:23 -0800 [thread overview]
Message-ID: <20251120065223.7c9d4462@kernel.org> (raw)
In-Reply-To: <32hbfvtxcn3okpylfcgfeuq7uvrufpij4y7w6au6vxrernwthb@pdxvc6r6jl5z>
On Thu, 20 Nov 2025 13:09:35 +0100 Jiri Pirko wrote:
> Thu, Nov 20, 2025 at 02:56:28AM +0100, kuba@kernel.org wrote:
> >On Wed, 19 Nov 2025 18:59:36 +0200 Parav Pandit wrote:
> >> When eswitch mode changes, notify such change to the
> >> devlink monitoring process.
> >>
> >> After this notification, a devlink monitoring process
> >> can see following output:
> >>
> >> $ devlink mon
> >> [eswitch,get] pci/0000:06:00.0: mode switchdev inline-mode none encap-mode basic
> >> [eswitch,get] pci/0000:06:00.0: mode legacy inline-mode none encap-mode basic
> >>
> >> Reviewed-by: Jiri Pirko <jiri@nvidia.com>
> >
> >Jiri, did you have a chance to re-review this or the tag is stale?
>
> Nope, I reviewed internally, that's why the tag was taken.
>
> >I have a slight preference for a new command ID here but if you
> >think GET is fine then so be it.
>
> Well, For the rest of the notifications, we have NEW/DEL commands.
> However in this case, as "eswitch" is somehow a subobject, there is no
> NEW/DEL value defined. I'm fine with using GET for notifications for it.
> I'm also okay with adding new ID, up to you.
Let's add a DEVLINK_CMD_ESWITCH_NTF. Having a separate ID makes it
easier / possible to use the same socket for requests and notifications.
--
pw-bot: cr
next prev parent reply other threads:[~2025-11-20 14:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-19 16:59 [PATCH net-next v1] devlink: Notify eswitch mode changes to devlink monitor Parav Pandit
2025-11-20 1:56 ` Jakub Kicinski
2025-11-20 12:09 ` Jiri Pirko
2025-11-20 14:52 ` Jakub Kicinski [this message]
2025-11-20 14:56 ` Parav Pandit
2025-11-21 8:35 ` Jiri Pirko
2025-11-21 8:51 ` Parav Pandit
2025-11-21 14:48 ` Jakub Kicinski
2025-11-22 9:14 ` Jiri Pirko
2025-11-25 4:27 ` Jakub Kicinski
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=20251120065223.7c9d4462@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jiri@nvidia.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=parav@nvidia.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;
as well as URLs for NNTP newsgroup(s).