[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230524215535.6382e750@kernel.org>
Date: Wed, 24 May 2023 21:55:35 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, pabeni@...hat.com, davem@...emloft.net,
edumazet@...gle.com, leon@...nel.org, saeedm@...dia.com, moshe@...dia.com,
jesse.brandeburg@...el.com, anthony.l.nguyen@...el.com, tariqt@...dia.com,
idosch@...dia.com, petrm@...dia.com, simon.horman@...igine.com,
ecree.xilinx@...il.com, habetsm.xilinx@...il.com,
michal.wilczynski@...el.com, jacob.e.keller@...el.com
Subject: Re: [patch net-next 15/15] devlink: save devlink_port_ops into a
variable in devlink_port_function_validate()
On Wed, 24 May 2023 14:18:36 +0200 Jiri Pirko wrote:
> + const struct devlink_port_ops *ops = devlink_port->ops;
> struct nlattr *attr;
>
> if (tb[DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR] &&
> - (!devlink_port->ops || !devlink_port->ops->port_fn_hw_addr_set)) {
> + (!ops || !ops->port_fn_hw_addr_set)) {
I was kinda expected last patch will remove the !ops checks.
Another series comes after this to convert more drivers?
Powered by blists - more mailing lists