From nobody Tue Dec 03 00:51:28 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y2MXx4hszz5fGm5; Tue, 03 Dec 2024 00:51:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2MXx0hjDz4TVJ; Tue, 3 Dec 2024 00:51:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733187089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9ri4jH/rneaXyoznzixS2hnhB4DXXSKusOXlWVs2c3M=; b=orKI/4V3culFclr+Cq3CXtrz0/AOIdq76j7SzMnl4RXThyiTIExOKXSbFwGf4C3WtaNjtj PJayjsQM+mWnqsKhnMgvLZBteRVaynVk27dXJjU9QtI0OGGmhQ02Q4XypXnNglkGfv4fYp fzzp9npJHfcA4i3E+qada/q9RJrIaSVQxzO0dRfXwv28Oli96NqR93BxSnsUiSr9RVBAZ+ SiSQOJ0Ef4DuH2zfjspkeqVBFWXfBJZ3R30HNbmsHCelFm9BfoG+Zz9ZhUeZ+i5BhBZXW9 BYjFoz5TBB5V+F3bUH6iAPCIrJ/AHDfua85UeArjz/aHBAWTm1wYtRrk7vx5Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733187089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9ri4jH/rneaXyoznzixS2hnhB4DXXSKusOXlWVs2c3M=; b=NPE5XK8/hYTIglhSvp2NRfKwiFlnjboRm52+soW3gMdQEIYBHhtxNEMPt0VVlSQsWgd+TR +vQShGKervYUGZZSaWTQ3b1L25eCh+iUOSjF5hAQYkh4fB3VAHEcvWtpn3eXKsthrLlCg9 9U4b4Av/fUZVDpxcv70vh12P9808L46u+E5ntBi20TZVJ2+tJxCAwtxmcRv73nzgBSqgSM /7ZrLv8GXVQJ+2T8NeE+eQ+NlvWOoVaA7L8XvzHiGYm+gGjvKYR3LkXfqPK+WvCBCmEatP EvVdzUtlDyM/afBFF2Zza5cCO8m7UYgj1fN8v1q2kONF94U72lMbJQSOGmn5hA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733187089; a=rsa-sha256; cv=none; b=EdGBsI6ZBw2axBClr+ZQDbuGdanVI+t6vcfSNuyPAszuHbkKtkTnhDjAYxB7MGpAr0c8pZ k1cddcjUphnLLXlF9EDJ8Yg0n9DtiCWTeWYdksQ1fvb1NmCoXIR3PQwm86yFxGrnT6xc/Z gYIk/HCLJ2NKnZ/jpk1je5F7I4PfTUkCretKfUPxV2SSa1m00sR7uZeyv1pxNqly+6fMyZ WaiIwQzZ3I/tPJsvaYX1JspQBkl3jhM2JrABf0Z7seyGY2dvvKVKE2NucUudwCbChBqVIi Z5p+rViYlFuDtkQ89pHMso47jqepaDDmzGhNZhPYyRKidPmhMC0auPMDoTjiOA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y2MXw64BNz11hv; Tue, 3 Dec 2024 00:51:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B30pSAl016422; Tue, 3 Dec 2024 00:51:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B30pST1016419; Tue, 3 Dec 2024 00:51:28 GMT (envelope-from git) Date: Tue, 3 Dec 2024 00:51:28 GMT Message-Id: <202412030051.4B30pST1016419@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: e6bcfb14f27d - stable/14 - mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e6bcfb14f27df1704d77cacfe9962d3fbc49f20e Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e6bcfb14f27df1704d77cacfe9962d3fbc49f20e commit e6bcfb14f27df1704d77cacfe9962d3fbc49f20e Author: Konstantin Belousov AuthorDate: 2024-11-20 13:00:00 +0000 Commit: Konstantin Belousov 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);