mbox series

[net-next,0/3] net: qede: don't restrict error codes

Message ID 20240503105505.839342-1-ast@fiberby.net (mailing list archive)
Headers show
Series net: qede: don't restrict error codes | expand

Message

Asbjørn Sloth Tønnesen May 3, 2024, 10:55 a.m. UTC
This series fixes the qede driver, so that when a helper function fails,
then the callee should return the returned error code, instead just
assuming that the error is eg. -EINVAL.

The patches in this series, reduces the change of future bugs, so new
error codes can be returned from the helpers, without having to update
the call sites.

This is a follow-up to my recent series "net: qede: avoid overruling
error codes", which fixed the cases where the implicit assumption of
failing with specific error codes had been broken.
https://lore.kernel.org/netdev/20240426091227.78060-1-ast@fiberby.net/

Asbjørn Sloth Tønnesen (3):
  net: qede: use return from qede_parse_actions() for flow_spec
  net: qede: use return from qede_flow_spec_validate_unused()
  net: qede: use return from qede_flow_parse_ports()

 .../net/ethernet/qlogic/qede/qede_filter.c    | 27 ++++++++++++-------
 1 file changed, 18 insertions(+), 9 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org May 7, 2024, 9:20 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Fri,  3 May 2024 10:55:00 +0000 you wrote:
> This series fixes the qede driver, so that when a helper function fails,
> then the callee should return the returned error code, instead just
> assuming that the error is eg. -EINVAL.
> 
> The patches in this series, reduces the change of future bugs, so new
> error codes can be returned from the helpers, without having to update
> the call sites.
> 
> [...]

Here is the summary with links:
  - [net-next,1/3] net: qede: use return from qede_parse_actions() for flow_spec
    https://git.kernel.org/netdev/net-next/c/146817ec3209
  - [net-next,2/3] net: qede: use return from qede_flow_spec_validate_unused()
    https://git.kernel.org/netdev/net-next/c/e5ed2f0349bf
  - [net-next,3/3] net: qede: use return from qede_flow_parse_ports()
    https://git.kernel.org/netdev/net-next/c/c0c66eba6322

You are awesome, thank you!