From nobody Tue Dec 03 00:51:25 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 4Y2MXt05p6z5fGWw; Tue, 03 Dec 2024 00:51:26 +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 4Y2MXs38m9z4TTX; Tue, 3 Dec 2024 00:51:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733187085; 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=ZUuqVqGWoP9DsBY89FF03Ut4LVzSWgI4pvOzz+YY4HE=; b=w99/NdqdjWvGmVcwMhUsdtt6rzV6o3Y06kXh3wFXEO8hFTcJ7C04iwhyv9zaYAS60o7SRu JerLPw6ObfOgE44bQXsUsJUEijdLBNnH6CUmu1pFkVtgAnLeY2/ZMOb1NoOvat66OGSGmv 9s/B3rUWhn+5WcXs+v+CKmUYb3A5AHdNYXpQWjcjpzARNtJweuyU5ZKhEV1bVvx+autxey 0S9L2xxES6Or3os4KnTHjB41uyOiBjuJi3K+vxSeKQAlC9VfSpeadq8UcHzOZXRwYmjnja M9rCqSikCEDVEkkPcTTR4bAuQQp/SXktmq26bsPmrH1rSdTsXkMPtNHwK1zNSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733187085; 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=ZUuqVqGWoP9DsBY89FF03Ut4LVzSWgI4pvOzz+YY4HE=; b=p1H+Kp6FfJGd8PU4b5xkHO3qDuBLXx5EHEV+HDE72qR81HgHqOsBNxSFI4Pi2ll0ko8SbP 0QSx7kkICL8fXZhDJFLSHxsfiV6UhZa0e40QWbu6Jlc2BHwyxQ7+idwNuU7O4pWgaE4kzx v/mQepTNJG8XdkHqLBMI1s91d1mPB3hDZXTcHsTsuURh8j3tIRN/ibuIL0pn+I4MPB7qQj /pKr7RfmULyUAHAd3TJyT4r5jT2kqmaBMP5+xub3wMpY9ktzkssX9Tn4eL+gHGUVPryOil AxL0iSN055M4T8ZoFaJ/ZCje9NETz8pCkUDEEfJp/4NXYu9DLMVULngxYR0Npg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733187085; a=rsa-sha256; cv=none; b=WoPKLuEWFAXCFhCqe27w8eIQZVmRbEcgfu6rw0wXIv0zzkorxFpp/YqF4wra0EkhR+RbEX sr5lIfz9sWGE+wOY/TVpAO5ivvxAZJLopkxc4qTeUNxrvIxMq+erZwz8mACiJRoTZArwo0 CkRTjtIYbfovggTExe5tx9mkeJdp7HBWszJht3Gw6lJtpvYA2v3qHnV92a2K0IwpfrESY6 olulyTp9IVUKz0E4VJ/VtYuRzOLdO9ceMe7hyllEY6Yz3TuE4es8wkjw5zOGYUOFgruf1g 0uwZHNM6ldbWfzfyUqPj5FkdMxAfgJ4rlsvsOuU46MCxV62lrRKzBPEI5DMbLg== 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 4Y2MXs2mv2z11M4; Tue, 3 Dec 2024 00:51:25 +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 4B30pPFg016259; Tue, 3 Dec 2024 00:51:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B30pPKc016256; Tue, 3 Dec 2024 00:51:25 GMT (envelope-from git) Date: Tue, 3 Dec 2024 00:51:25 GMT Message-Id: <202412030051.4B30pPKc016256@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: 5cd87fd6df53 - stable/14 - mlx5e: Use M_WAITOK when allocating TLS tags 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: 5cd87fd6df53482f84fd26b99cc43d9045cff87b Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5cd87fd6df53482f84fd26b99cc43d9045cff87b commit 5cd87fd6df53482f84fd26b99cc43d9045cff87b Author: Andrew Gallatin AuthorDate: 2024-10-23 19:56:14 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-03 00:39:22 +0000 mlx5e: Use M_WAITOK when allocating TLS tags (cherry picked from commit 49597c3e84c4a1cc35f2c392d93db8d0a1cccac2) --- sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c | 4 +--- 1 file changed, 1 insertion(+), 3 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 de0cd49eeab5..f84493f49b5d 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c @@ -333,9 +333,7 @@ mlx5e_tls_snd_tag_alloc(if_t ifp, return (EOPNOTSUPP); /* allocate new tag from zone, if any */ - ptag = uma_zalloc(priv->tls.zone, M_NOWAIT); - if (ptag == NULL) - return (ENOMEM); + ptag = uma_zalloc(priv->tls.zone, M_WAITOK); /* sanity check default values */ MPASS(ptag->dek_index == 0);