Re: [patch net-next RFC 2/8] net: devlink: extend port attrs for switch ID

2019-03-01 Thread Jiri Pirko
Sat, Mar 02, 2019 at 03:53:47AM CET, f.faine...@gmail.com wrote: > > >On 3/1/2019 8:05 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Extend devlink_port_attrs_set() to pass switch ID for ports which are >> part of switch and store it in port attrs. For other ports, this is >> NULL. During dump

Re: [patch net-next RFC 2/8] net: devlink: extend port attrs for switch ID

2019-03-01 Thread Florian Fainelli
On 3/1/2019 8:05 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Extend devlink_port_attrs_set() to pass switch ID for ports which are > part of switch and store it in port attrs. For other ports, this is > NULL. During dump to userspace only valid switch ID is filled up. > Note that this allows

[patch net-next RFC 2/8] net: devlink: extend port attrs for switch ID

2019-03-01 Thread Jiri Pirko
From: Jiri Pirko Extend devlink_port_attrs_set() to pass switch ID for ports which are part of switch and store it in port attrs. For other ports, this is NULL. During dump to userspace only valid switch ID is filled up. Note that this allows the driver to group devlink ports into one or more swi