linux/net/devlink
Jiri Pirko 110921ab94 devlink: fix port new reply cmd type
[ Upstream commit 78a2f5e6c1 ]

Due to a c&p error, port new reply fills-up cmd with wrong value,
any other existing port command replies and notifications.

Fix it by filling cmd with value DEVLINK_CMD_PORT_NEW.

Skimmed through devlink userspace implementations, none of them cares
about this cmd value.

Reported-by: Chenyuan Yang <chenyuan0y@gmail.com>
Closes: https://lore.kernel.org/all/ZfZcDxGV3tSy4qsV@cy-server/
Fixes: cd76dcd68d ("devlink: Support add and delete devlink port")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://lore.kernel.org/r/20240318091908.2736542-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:18:58 -04:00
..
core.c devlink: Acquire device lock during netns dismantle 2024-03-26 18:18:53 -04:00
dev.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
devl_internal.h devlink: Allow taking device lock in pre_doit operations 2024-03-26 18:18:54 -04:00
dpipe.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
health.c devlink: Allow taking device lock in pre_doit operations 2024-03-26 18:18:54 -04:00
linecard.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
Makefile devlink: move devlink_notify_register/unregister() to dev.c 2023-08-28 08:02:24 -07:00
netlink_gen.c devlink: Fix length of eswitch inline-mode 2024-03-26 18:18:27 -04:00
netlink_gen.h netlink: specs: devlink: add the remaining command to generate complete split_ops 2023-10-23 16:16:32 -07:00
netlink.c devlink: Fix devlink parallel commands processing 2024-03-26 18:18:54 -04:00
param.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
port.c devlink: fix port new reply cmd type 2024-03-26 18:18:58 -04:00
rate.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
region.c devlink: Allow taking device lock in pre_doit operations 2024-03-26 18:18:54 -04:00
resource.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
sb.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
trap.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00