net: qede: use faked extack in qede_flow_spec_to_rule()
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Wed, 8 May 2024 14:34:00 +0000 (14:34 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 May 2024 02:30:00 +0000 (19:30 -0700)
commiteb705d7345255316f3a25ba60c4c7ee215c92c1a
tree6a9d42a69478c2c5817bb0e258561afff996ef9e
parentd6883bceb2541209b348f93eb38ed7f134693fc0
net: qede: use faked extack in qede_flow_spec_to_rule()

Since qede_parse_flow_attr() now does error reporting
through extack, then give it a fake extack and extract the
error message afterwards if one was set.

The extracted error message is then passed on through
DP_NOTICE(), including messages that was earlier issued
with DP_INFO().

This fake extack approach is already used by
mlxsw_env_linecard_modules_power_mode_apply() in
drivers/net/ethernet/mellanox/mlxsw/core_env.c

Only compile tested.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240508143404.95901-13-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/qede/qede_filter.c