lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <CY8PR12MB719597CF0D93BE6091CBFC09DCD5A@CY8PR12MB7195.namprd12.prod.outlook.com>
Date: Fri, 21 Nov 2025 08:51:42 +0000
From: Parav Pandit <parav@...dia.com>
To: Jiri Pirko <jiri@...nulli.us>, Jakub Kicinski <kuba@...nel.org>
CC: Jiri Pirko <jiri@...dia.com>, "netdev@...r.kernel.org"
	<netdev@...r.kernel.org>, "davem@...emloft.net" <davem@...emloft.net>,
	"edumazet@...gle.com" <edumazet@...gle.com>, "pabeni@...hat.com"
	<pabeni@...hat.com>, "horms@...nel.org" <horms@...nel.org>
Subject: RE: [PATCH net-next v1] devlink: Notify eswitch mode changes to
 devlink monitor


> From: Jiri Pirko <jiri@...nulli.us>
> Sent: 21 November 2025 02:05 PM
> 
> Thu, Nov 20, 2025 at 03:52:23PM +0100, kuba@...nel.org wrote:
> >On Thu, 20 Nov 2025 13:09:35 +0100 Jiri Pirko wrote:
> >> Thu, Nov 20, 2025 at 02:56:28AM +0100, kuba@...nel.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@...dia.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.
> 
> Well, you still can use the same socket with just ESWITCH_GET. Request
> messages are going from userspace, notifications from kernel, there is no
> mixup.
> 
> For the sake of consistency, shouldn't the name be ESWITCH_NEW?

It's the change happening in the eswitch: mode or attribute or something else tomorrow.
So it looks more like DPLL_CMD_DEVICE_CHANGE_NTF to me.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ