Re: [PATCH net-next 6/7] net: dsa: wire up devlink info get

2020-08-16 Thread Andrew Lunn
> > +static int dsa_devlink_info_get(struct devlink *dl, > > + struct devlink_info_req *req, > > + struct netlink_ext_ack *extack) > > +{ > > + struct dsa_switch *ds; > > + > > + ds = dsa_devlink_to_ds(dl); > > + > > Why not place the declara

Re: [PATCH net-next 6/7] net: dsa: wire up devlink info get

2020-08-16 Thread Vladimir Oltean
On Sun, Aug 16, 2020 at 09:43:15PM +0200, Andrew Lunn wrote: > Allow the DSA drivers to implement the devlink call to get info info, > e.g. driver name, firmware version, ASIC ID, etc. > > Signed-off-by: Andrew Lunn > --- > include/net/dsa.h | 5 - > net/dsa/dsa2.c| 21 +

[PATCH net-next 6/7] net: dsa: wire up devlink info get

2020-08-16 Thread Andrew Lunn
Allow the DSA drivers to implement the devlink call to get info info, e.g. driver name, firmware version, ASIC ID, etc. Signed-off-by: Andrew Lunn --- include/net/dsa.h | 5 - net/dsa/dsa2.c| 21 ++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/inclu