From nobody Sat Nov 23 10:21:32 2024 X-Original-To: dev-commits-src-main@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 4XwSgJ59dSz5fHPq; Sat, 23 Nov 2024 10:21:32 +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 4XwSgJ4gx6z4lqq; Sat, 23 Nov 2024 10:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732357292; 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=d7SAoHWeu3/pm2+XO37hHGxM/74dh8XrM8EMzk080O4=; b=wKlGQK8DC6Pt7ZC484pkngNcvmTrV0rsVsj14lG81HMYO1BSrjC3+wYEBP4Um1YIgfPa5q EPKE4aZ7E3rXuBl9VavxpCYhNQkVitn53bVulqz/cmRxYySJBVe3ebplYSNpal2nB7NS84 2T7n8GzhrJB2NCl4r3vXLqmVQscPovB2339CIRYJla5abaPXqjbQma6hR8k2khoKiaukx+ WAcMaGSkojYvnD5SqzdCDUGaZ/FCzR60MuFviB1x+09j7V7/b+wdAkKUnw8eKag24Hkmsw kcUlZDlGFIDcIR6wUtXNQHR+7nN4ZQVzZfDxBEaPHwt/XYRV3QufPsTGqz+T2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732357292; 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=d7SAoHWeu3/pm2+XO37hHGxM/74dh8XrM8EMzk080O4=; b=pPdl6JtDazJUJc8L1AoY02VGSNr6rjlTuZJRnq+wg22Fst7jTs5fPkFKPEpPj+DIqsSmp7 5gQjNJ90oBYVJd5nk2OpgKwksUnWUzfIOsMbdIWuUKpZWgkkFLOOlVe5XdyuxtZmzHQjUr 5yF+a1pkZqaNsl3HB+ee1ier8aI1Ur4xs+UPvtpGpz0UzxLiD6je1w0gkf2RFumrtpOz9M DNN5Hi3W4JWE+aLD9hxqPePNDxh3jU6wP98PKzlMXjbknjs2oI0xF51F2SefbETV16zx7/ rcUq4gEkf3lzqcltuU/hfZYZo2DE6d6ECSeHHTV3ZJk70b4xXuh/Yiplbp1FBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732357292; a=rsa-sha256; cv=none; b=q/QxNlWvXp452eQbhKdyZB6qUTXnER4lPVmwkC9YgWSwn4zscRAS5/EaW56T2CvFudemU5 yTi+eDBWhkfmb4wU9XSlBkbVODy4wIr33+x7Sm/jCuMxPZMF9oNkhgno1bMAe28KyLox7x OOeDTneS53PkXItdR2irpe4WKAHXnRRwaQ8JKeiRkFBml4HP9ZrmPi3idE3lrK8KUZmLY7 28WhZVyFJQDFanfHzoZYkd7PAnI+vcQFbdg2tNr31dK5itm9qZ9W16vZyaR2+T9BGy5TcM 2c2A8bQIQbakEgNOLFNtwZjNFYrEdCOAAC1fdreUmSjr+R/caUjTHT9xFbIY2Q== 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 4XwSgJ4HZKz15FJ; Sat, 23 Nov 2024 10:21:32 +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 4ANALWuE039275; Sat, 23 Nov 2024 10:21:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ANALWSQ039272; Sat, 23 Nov 2024 10:21:32 GMT (envelope-from git) Date: Sat, 23 Nov 2024 10:21:32 GMT Message-Id: <202411231021.4ANALWSQ039272@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 0d38b0bc8fbc - main - mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 0d38b0bc8fbc82e3b4664d34d30d9e0091b277b9 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0d38b0bc8fbc82e3b4664d34d30d9e0091b277b9 commit 0d38b0bc8fbc82e3b4664d34d30d9e0091b277b9 Author: Konstantin Belousov AuthorDate: 2024-11-20 13:00:00 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-23 10:09:50 +0000 mlx5en: fix the sign of mlx5e_tls_st_init() error, convert from Linux to BSD Sponsored by: NVidia networking MFC after: 1 week --- 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 56c7c3c5631f..dce16f8df96d 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c @@ -301,7 +301,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); @@ -314,7 +314,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);