Skip to content

Commit 697b351

Browse files
rleondavem330
authored andcommitted
net/mlx5e: Don't overwrite extack message returned from IPsec SA validator
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: aa8bd0c ("net/mlx5e: Support IPsec acquire default SA") Reviewed-by: Raed Salem <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e239e31 commit 697b351

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en_accel

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ static int mlx5e_xfrm_add_state(struct xfrm_state *x,
712712
kfree(sa_entry->work);
713713
err_xfrm:
714714
kfree(sa_entry);
715-
NL_SET_ERR_MSG_MOD(extack, "Device failed to offload this policy");
715+
NL_SET_ERR_MSG_WEAK_MOD(extack, "Device failed to offload this state");
716716
return err;
717717
}
718718

0 commit comments

Comments
 (0)