Commit eb705d7
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>1 parent d6883bc commit eb705d7
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
| 1993 | + | |
1993 | 1994 | | |
1994 | 1995 | | |
1995 | 1996 | | |
| |||
2017 | 2018 | | |
2018 | 2019 | | |
2019 | 2020 | | |
2020 | | - | |
| 2021 | + | |
2021 | 2022 | | |
2022 | 2023 | | |
2023 | 2024 | | |
2024 | 2025 | | |
2025 | 2026 | | |
2026 | 2027 | | |
2027 | 2028 | | |
| 2029 | + | |
| 2030 | + | |
2028 | 2031 | | |
2029 | 2032 | | |
2030 | 2033 | | |
| |||
0 commit comments