Tue, Mar 26, 2019 at 09:27:37PM CET, jakub.kicin...@netronome.com wrote: >On Tue, 26 Mar 2019 13:02:56 +0100, Jiri Pirko wrote: >> From: Jiri Pirko <j...@mellanox.com> >> >> Follow-up patch is going to need a devlink port instance according to >> a netdev. Devlink port instance should be always available when devlink >> is used. So change the recently introduced ndo_get_devlink to >> ndo_get_devlink_port. With that, adjust the wrapper for the only >> user to get devlink pointer. >> >> Signed-off-by: Jiri Pirko <j...@mellanox.com> >> Reviewed-by: Michal Kubecek <mkube...@suse.cz> >> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> > >Makes sense, but you gotta fix up the nfp to register devlink ports >first, like I did in: > >https://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux.git/commit/?h=devlink-pci-ports&id=1debfdef5aef369412e72f370d11120d309a6a74 > >please.
I have it in next patchset: https://github.com/jpirko/linux_mlxsw/commit/d1ea97ec57762f1950d26842191070b4498044c6 Will put it here.