Message ID | c245ca90872db741429cc2a7e9862558f561c848.1681976818.git.leon@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 697b3518ebfd1d0ccae455d8ac1ac9c88884f4e5 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Fixes to mlx5 IPsec implementation | expand |
On Thu, Apr 20, 2023 at 11:02:48AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@nvidia.com> > > Addition of new err_xfrm label caused to error messages be overwritten. > Fix it by using proper NL_SET_ERR_MSG_WEAK_MOD macro together with change > in a default message. > > Fixes: aa8bd0c9518c ("net/mlx5e: Support IPsec acquire default SA") > Reviewed-by: Raed Salem <raeds@nvidia.com> > Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Simon Horman <simon.horman@corigine.com>
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c index 5fd609d1120e..1547d8cda133 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c @@ -712,7 +712,7 @@ static int mlx5e_xfrm_add_state(struct xfrm_state *x, kfree(sa_entry->work); err_xfrm: kfree(sa_entry); - NL_SET_ERR_MSG_MOD(extack, "Device failed to offload this policy"); + NL_SET_ERR_MSG_WEAK_MOD(extack, "Device failed to offload this state"); return err; }