On 1/8/2021 9:59 AM, Vladimir Oltean wrote: > From: Vladimir Oltean <vladimir.olt...@nxp.com> > > Add devlink integration into the mscc_ocelot switchdev driver. Only the > probed interfaces are registered with devlink, because for convenience, > struct devlink_port was included into struct ocelot_port_private, which > is only initialized for the ports that are used. > > Since we use devlink_port_type_eth_set to link the devlink port to the > net_device, we can as well remove the .ndo_get_phys_port_name and > .ndo_get_port_parent_id implementations, since devlink takes care of > retrieving the port name and number automatically, once > .ndo_get_devlink_port is implemented. > > Note that the felix DSA driver is already integrated with devlink by > default, since that is a thing that the DSA core takes care of. This is > the reason why these devlink stubs were put in ocelot_net.c and not in > the common library. > > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- [PATCH v3 net-next 06/10] net: mscc: ocelot: export NUM_T... Vladimir Oltean
- Re: [PATCH v3 net-next 06/10] net: mscc: ocelot: exp... Florian Fainelli
- [PATCH v3 net-next 09/10] net: mscc: ocelot: initialize w... Vladimir Oltean
- Re: [PATCH v3 net-next 09/10] net: mscc: ocelot: ini... Florian Fainelli
- [PATCH v3 net-next 04/10] net: dsa: felix: reindent struc... Vladimir Oltean
- Re: [PATCH v3 net-next 04/10] net: dsa: felix: reind... Florian Fainelli
- Re: [PATCH v3 net-next 04/10] net: dsa: felix: reind... Jakub Kicinski
- Re: [PATCH v3 net-next 04/10] net: dsa: felix: r... Vladimir Oltean
- Re: [PATCH v3 net-next 04/10] net: dsa: feli... Jakub Kicinski
- [PATCH v3 net-next 08/10] net: mscc: ocelot: register dev... Vladimir Oltean
- Re: [PATCH v3 net-next 08/10] net: mscc: ocelot: reg... Florian Fainelli
- Re: [PATCH v3 net-next 08/10] net: mscc: ocelot: reg... Jakub Kicinski
- Re: [PATCH v3 net-next 08/10] net: mscc: ocelot:... Vladimir Oltean
- Re: [PATCH v3 net-next 08/10] net: mscc: oce... Jakub Kicinski
- Re: [PATCH v3 net-next 08/10] net: mscc:... Vladimir Oltean
- Re: [PATCH v3 net-next 08/10] net: ... Jakub Kicinski
- Renaming interfaces that are up... Vladimir Oltean
- Re: Renaming interfaces that ar... Vladimir Oltean
- Re: [PATCH v3 net-next 08/10] net: mscc: ocelot: reg... Jakub Kicinski
- [PATCH v3 net-next 05/10] net: dsa: felix: perform teardo... Vladimir Oltean
- Re: [PATCH v3 net-next 05/10] net: dsa: felix: perfo... Florian Fainelli