mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 19:01:45 -04:00
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: c496daeb86 ("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>
This commit is contained in:
committed by
Jakub Kicinski
parent
a03a91bd68
commit
5ff9424ea0
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user