net/mlx5e: Flatten the IPsec RX add rule path
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 2 Dec 2022 20:10:34 +0000 (22:10 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 6 Dec 2022 13:04:55 +0000 (14:04 +0100)
commit384298c28aac42fcc93e3ff83fe627c900821804
treec4b1d92c8e8b828a025fc2734fc9d202ad5a5634
parent35324bbb962e984fe58e783ccad20bcfccc65cba
net/mlx5e: Flatten the IPsec RX add rule path

Rewrote the IPsec RX add rule path to be less convoluted
and don't rely on pre-initialized variables. The code now has clean
linear flow with clean separation between error and success paths.

Reviewed-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c