From nobody Sun Dec 08 05:59:07 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 4Y5Z7b28GFz5g86g; Sun, 08 Dec 2024 05:59:07 +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 4Y5Z7b1QVlz46LF; Sun, 8 Dec 2024 05:59:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733637547; 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=U0kgTohyza48qRGIXJll5niBASSP0lJnBXB55U2XNbQ=; b=XlA7zg5v0H8M3SVfI+9vHjJmytXjVHcuyjjLs6i+9gZDsFOuYXu2gOYXnCll3/bNG3mTTU GWK2eHPeEZKMbYi9payfV2v5baAaHRYYqSuHNea58N36awxFlbIHVnXUaeToUceNbchOHD yVwgpZo5mjQ185GXMvJ205GX9JQzT8lIHzr8GMnw7t5Y0CnEoPSsGVwGtc0Rac/RhqpQ7t 2571f5kJq57Otb44yTd+7HYc4CJeqJARTu3vktllfzSnPsXcCg+80m0GxNvcG1pLfi8Wgl /GzgOel2yML/GU0CrEj27XEaIIWwTlQpoc4S8SbsAPzsqVYbKbpXIfrKj3/48w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733637547; 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=U0kgTohyza48qRGIXJll5niBASSP0lJnBXB55U2XNbQ=; b=q33b2bvohoB6LB9nz8QdDWnU84E7vNA+ddvpAuft167qBelpbs8eR0MlPQEmVB7WYHmWDD rzAEYDr9n8kaPHRbT91CT/wjgKipBM33d6khuqQehAtqMM1598qlNPnNBRkLDTYJANqHJi cm57hSey37OfHTvi3CnpJG9ySN9KqzQPp06l0LzrCuWPUKmA3jsyS/bkq5vJsCN76boNKX auZmuBOyu1gmt2cdKKJjiRlZTXH4AQxgq4d0gHIllJ5gwAU2n70Wo4kjVsT23Vj4LY9sj1 MCQcI1vrPLwVj3iitUFQ4zc2XiPerSnCIhrTPnDxldxB0peajXZ6XYxe4KcBXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733637547; a=rsa-sha256; cv=none; b=KsTKdulNFGpqkUErYXSXpNxIQxSt6YIBCozaoiTzHl/4B9kikB3Wr0Mhl3fZhnbmK2AsXn hPrz/qVTibMbpiJrwb59h5YoDqNBX7lNoXDwQNCnhq2ZhOFjKCa1CHR4lg9BfzzziyHrgk lNOsraRLhL8js1BrcB6TarExpL0J11DTTo9wXMQ1ugjPrxOoAJMsVLcAMDPwwOC5y5woYL XTYZ4vu0TTRJHNKdon5OAyO5wLDRgTtGF06ZFEPPJqzQcmwHkzdumLvRMfpZ5LfRxX1T6Q gn5D1FuTtpPXTIpkEN6lyuREF6YeY8EcKrh1sOoqM61/thG/XsMmOFeJ1/xESQ== 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 4Y5Z7b11bbzgLY; Sun, 8 Dec 2024 05:59:07 +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 4B85x7GQ086543; Sun, 8 Dec 2024 05:59:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B85x7l2086541; Sun, 8 Dec 2024 05:59:07 GMT (envelope-from git) Date: Sun, 8 Dec 2024 05:59:07 GMT Message-Id: <202412080559.4B85x7l2086541@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: 45d5b9f0324a - main - cxgbe/t4_tom: Plug an stid leak. 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: np X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 45d5b9f0324a13df06712b7a9df5f2fbe8475764 Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=45d5b9f0324a13df06712b7a9df5f2fbe8475764 commit 45d5b9f0324a13df06712b7a9df5f2fbe8475764 Author: Navdeep Parhar AuthorDate: 2024-12-08 03:34:30 +0000 Commit: Navdeep Parhar CommitDate: 2024-12-08 05:54:30 +0000 cxgbe/t4_tom: Plug an stid leak. Normally the reply to destroy_server() releases the listen context but it is not called when the adapter is suspended. Release the context right away in that case. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/tom/t4_listen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/cxgbe/tom/t4_listen.c b/sys/dev/cxgbe/tom/t4_listen.c index c63c2565e743..06c495dcafc3 100644 --- a/sys/dev/cxgbe/tom/t4_listen.c +++ b/sys/dev/cxgbe/tom/t4_listen.c @@ -769,6 +769,8 @@ t4_listen_stop(struct toedev *tod, struct tcpcb *tp) if (lctx->flags & LCTX_SETUP_IN_HW) destroy_server(sc, lctx); + else + inp = release_lctx(sc, lctx); return (0); }