diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-05-31 16:20:25 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-01 21:37:32 -0700 |
commit | 5ff9424ea03a1fce2298b271eec1dad5ff4df1be (patch) | |
tree | c5c10c61b1c80ce24c07080efd572b6e635f1b4b /include | |
parent | a03a91bd68cb00c615e602cf605e6be12bedaa90 (diff) | |
download | lwn-5ff9424ea03a1fce2298b271eec1dad5ff4df1be.tar.gz lwn-5ff9424ea03a1fce2298b271eec1dad5ff4df1be.zip |
devlink: bring port new reply back
In the offending fixes commit I mistakenly removed the reply message of
the port new command. I was under impression it is a new port
notification, partly due to the "notify" in the name of the helper
function. Bring the code sending reply with new port message back, this
time putting it directly to devlink_nl_cmd_port_new_doit()
Fixes: c496daeb8630 ("devlink: remove duplicate port notification")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230531142025.2605001-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/devlink.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index fe42ad46cf3b..9a3c51aa6e81 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -1434,6 +1434,7 @@ struct devlink_ops { * @devlink: Devlink instance * @attrs: attributes of the new port * @extack: extack for reporting error messages + * @devlink_port: pointer to store new devlink port pointer * * Devlink core will call this device driver function upon user request * to create a new port function of a specified flavor and optional @@ -1446,7 +1447,8 @@ struct devlink_ops { */ int (*port_new)(struct devlink *devlink, const struct devlink_port_new_attrs *attrs, - struct netlink_ext_ack *extack); + struct netlink_ext_ack *extack, + struct devlink_port **devlink_port); /** * Rate control callbacks. |