linux/net/devlink
Parav Pandit 086160d08a devlink: Fix referring to hw_addr attribute during state validation
[ Upstream commit 1a89e24f8b ]

When port function state change is requested, and when the driver
does not support it, it refers to the hw address attribute instead
of state attribute. Seems like a copy paste error.

Fix it by referring to the port function state attribute.

Fixes: c0bea69d1c ("devlink: Validate port function request")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240129191059.129030-1-parav@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-02-05 20:17:09 +00:00
..
core.c devlink: document devlink_rel_nested_in_notify() function 2023-10-18 09:23:01 +01: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: remove duplicated netlink callback prototypes 2023-10-23 16:16:51 -07: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: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07: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.c devlink: remove netlink small_ops 2023-10-23 16:16:51 -07:00
netlink_gen.c netlink: specs: devlink: add forgotten port function caps enum values 2023-11-01 22:13:43 -07:00
netlink_gen.h netlink: specs: devlink: add the remaining command to generate complete split_ops 2023-10-23 16:16:32 -07: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 referring to hw_addr attribute during state validation 2024-02-05 20:17:09 +00: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: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07: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