> > +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
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 +
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