Fri, Mar 01, 2019 at 01:45:26PM CET, mkube...@suse.cz wrote: >On Fri, Mar 01, 2019 at 09:13:58AM +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. > >I noticed netdevsim has devlink interface but it does not register >devlink ports for its network devices. But that seems to be rather an >omission in netdevsim, right?
Yep. > >> 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> Thanks.