Subject: Re: [PATCH net-next v1] devlink: Notify eswitch mode changes to devlink monitor

From: Jakub Kicinski <[email-masked]>
Date: Wed, 19 Nov 2025 17:56:28 -0800

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 <[email-masked]>

Jiri, did you have a chance to re-review this or the tag is stale?
I have a slight preference for a new command ID here but if you
think GET is fine then so be it.

Is it possible to add this to the Netlink YAML spec? off the top of 
my head I think it's a "notification":

    -
      name: $name
      doc: $doc
      notify: eswitch-get