Re: [patch net-next 1/5] net: replace ndo_get_devlink for ndo_get_devlink_port

2019-03-01 Thread Florian Fainelli
On 3/1/2019 12:13 AM, Jiri Pirko wrote: > From: Jiri Pirko > > 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.

Re: [patch net-next 1/5] net: replace ndo_get_devlink for ndo_get_devlink_port

2019-03-01 Thread Jiri Pirko
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 >> >> Follow-up patch is going to need a devlink port instance according to >> a netdev. Devlink port instance should be always available when devlink >> i

Re: [patch net-next 1/5] net: replace ndo_get_devlink for ndo_get_devlink_port

2019-03-01 Thread Michal Kubecek
On Fri, Mar 01, 2019 at 09:13:58AM +0100, Jiri Pirko wrote: > From: Jiri Pirko > > 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

[patch net-next 1/5] net: replace ndo_get_devlink for ndo_get_devlink_port

2019-03-01 Thread Jiri Pirko
From: Jiri Pirko 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