[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM0PR05MB48669E4E79976591D8728D0AD17A0@AM0PR05MB4866.eurprd05.prod.outlook.com>
Date: Sat, 9 Nov 2019 18:13:30 +0000
From: Parav Pandit <parav@...lanox.com>
To: Yuval Avnery <yuvalav@...lanox.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: Jiri Pirko <jiri@...lanox.com>,
Saeed Mahameed <saeedm@...lanox.com>,
"leon@...nel.org" <leon@...nel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"jakub.kicinski@...ronome.com" <jakub.kicinski@...ronome.com>,
"shuah@...nel.org" <shuah@...nel.org>,
Daniel Jurgens <danielj@...lanox.com>,
"andrew.gospodarek@...adcom.com" <andrew.gospodarek@...adcom.com>,
"michael.chan@...adcom.com" <michael.chan@...adcom.com>
Subject: RE: [PATCH net-next v2 04/10] devlink: Support subdev HW address get
> From: Yuval Avnery <yuvalav@...lanox.com>
> > > From: netdev-owner@...r.kernel.org <netdev-owner@...r.kernel.org>
> > > Avnery <yuvalav@...lanox.com>
> > > Subject: [PATCH net-next v2 04/10] devlink: Support subdev HW
> > > address get
> > >
> > > Allow privileged user to get the HW address of a subdev.
> > >
> > > Example:
> > >
> > > $ devlink subdev show pci/0000:03:00.0/1
> > > pci/0000:03:00.0/1: flavour pcivf pf 0 vf 0 port_index 1 hw_addr
> > > 00:23:35:af:35:34
> > >
> > > $ devlink subdev show pci/0000:03:00.0/1 -pj {
> > > "subdev": {
> > > "pci/0000:03:00.0/1": {
> > > "flavour": "pcivf",
> > > "pf": 0,
> > > "vf": 0,
> > > "port_index": 1,
> > > "hw_addr": "00:23:35:af:35:34"
> > I prefer this to be 'address' to match to 'ip link set address LLADDR'.
> > That will make it consistent with rest of the iproute2/ip tool.
> > So that users don't have to remember one mor keyword for the 'address'.
> I think hw_addr is more accurate, and consistency doesn't exist here anyway.
> We already have "ip link set vf set mac"
> Address is not specific enough and can also mean IP address, while hw_addr
> covers both ETH and IB
Ok.
Jiri,
Do you want to wait to conclude the SF discussion, as we are discussing subdev there in confused state currently?
Powered by blists - more mailing lists