git: e6bcfb14f27d - stable/14 - mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Dec 2024 00:51:28 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e6bcfb14f27df1704d77cacfe9962d3fbc49f20e commit e6bcfb14f27df1704d77cacfe9962d3fbc49f20e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-11-20 13:00:00 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-12-03 00:39:23 +0000 mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD (cherry picked from commit 0d38b0bc8fbc82e3b4664d34d30d9e0091b277b9) --- sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c index 2e31818df912..66ecf33e67b2 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c @@ -300,7 +300,7 @@ mlx5e_tls_st_init(struct mlx5e_priv *priv, struct mlx5e_tls_tag *ptag) priv->pdn, &ptag->tisn); if (err) { MLX5E_TLS_STAT_INC(ptag, tx_error, 1); - return (err); + return (-err); } } MLX5_SET(sw_tls_cntx, ptag->crypto_params, progress.pd, ptag->tisn); @@ -312,7 +312,7 @@ mlx5e_tls_st_init(struct mlx5e_priv *priv, struct mlx5e_tls_tag *ptag) &ptag->dek_index); if (err) { MLX5E_TLS_STAT_INC(ptag, tx_error, 1); - return (err); + return (-err); } MLX5_SET(sw_tls_cntx, ptag->crypto_params, param.dek_index, ptag->dek_index);