[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240508143404.95901-1-ast@fiberby.net>
Date: Wed, 8 May 2024 14:33:48 +0000
From: Asbjørn Sloth Tønnesen <ast@...erby.net>
To: netdev@...r.kernel.org
Cc: Asbjørn Sloth Tønnesen <ast@...erby.net>,
linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Manish Chopra <manishc@...vell.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>
Subject: [PATCH net-next v2 00/14] net: qede: convert filter code to use extack
This series converts the filter code in the qede driver
to use NL_SET_ERR_MSG_*(extack, ...) for error handling.
Patch 1-12 converts qede_parse_flow_attr() to use extack,
along with all it's static helper functions.
qede_parse_flow_attr() is used in two places:
- qede_add_tc_flower_fltr()
- qede_flow_spec_to_rule()
In the latter call site extack is faked in the same way as
is done in mlxsw (patch 12).
While the conversion is going on, some error messages are silenced
in between patch 1-12. If wanted could squash patch 1-12 in a v3, but
I felt that it would be easier to review as 12 more trivial patches.
Patch 13 and 14, finishes up by converting qede_parse_actions(),
and ensures that extack is propagated to it, in both call contexts.
---
Changelog:
v2:
- Reworked to always add extack as last argument. (Requested by Przemek)
v1: https://lore.kernel.org/netdev/20240507104421.1628139-1-ast@fiberby.net/
Asbjørn Sloth Tønnesen (14):
net: qede: use extack in qede_flow_parse_ports()
net: qede: use extack in qede_set_v6_tuple_to_profile()
net: qede: use extack in qede_set_v4_tuple_to_profile()
net: qede: use extack in qede_flow_parse_v6_common()
net: qede: use extack in qede_flow_parse_v4_common()
net: qede: use extack in qede_flow_parse_tcp_v6()
net: qede: use extack in qede_flow_parse_tcp_v4()
net: qede: use extack in qede_flow_parse_udp_v6()
net: qede: use extack in qede_flow_parse_udp_v4()
net: qede: add extack in qede_add_tc_flower_fltr()
net: qede: use extack in qede_parse_flow_attr()
net: qede: use faked extack in qede_flow_spec_to_rule()
net: qede: propagate extack through qede_flow_spec_validate()
net: qede: use extack in qede_parse_actions()
.../net/ethernet/qlogic/qede/qede_filter.c | 114 ++++++++++--------
1 file changed, 63 insertions(+), 51 deletions(-)
--
2.43.0
Powered by blists - more mailing lists