[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190301134243.GI2314@nanopsycho>
Date: Fri, 1 Mar 2019 14:42:43 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Michal Kubecek <mkubecek@...e.cz>
Cc: netdev@...r.kernel.org, davem@...emloft.net, mlxsw@...lanox.com,
idosch@...lanox.com, jakub.kicinski@...ronome.com,
dirk.vandermerwe@...ronome.com, f.fainelli@...il.com,
andrew@...n.ch, vivien.didelot@...il.com
Subject: Re: [patch net-next 1/5] net: replace ndo_get_devlink for
ndo_get_devlink_port
Fri, Mar 01, 2019 at 01:45:26PM CET, mkubecek@...e.cz wrote:
>On Fri, Mar 01, 2019 at 09:13:58AM +0100, Jiri Pirko wrote:
>> From: Jiri Pirko <jiri@...lanox.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 <jiri@...lanox.com>
>
>Reviewed-by: Michal Kubecek <mkubecek@...e.cz>
Thanks.
Powered by blists - more mailing lists