From nobody Wed Sep 11 19:22:52 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 4X3r7c3gVZz5VFZ7; Wed, 11 Sep 2024 19:22:52 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X3r7c35Rdz4WWg; Wed, 11 Sep 2024 19:22:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726082572; 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=yQnljp6n28o3NhD9E+i6MxXS2ZULpZSUVKHAXf1b5Tc=; b=o0qUy101Ovz6jGiOUToNusytlEVOBGXDVqwi5QF4iyOQezq4y5PSJzCyM49lTx6aQ97Pv3 dZkkt/otEFhPC8dVpetuhBg45VlJVjJFaQERjXU20gt4Mb0geagamcHCV27Li3KtjPrjQI Q8L389FRRK/Kzvvn/GUMfJ/DDQ5iV64dsbxuU1dbg0KccDKoOr5UmWhZAtHwKdrFVqv9Rz YClMB0glCw/tyq035umMdd/1egOxx6rj0vz6k+FKQlBRbKE1P2SHMh3IMgAV9gEYSbVkUa UpfTS4ej32jzCQoZ3T9hVkvt4HAKbgt5Mpan1UYEnOI45stu2MvYnTS5A0UOwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726082572; a=rsa-sha256; cv=none; b=qXkRaMw31iETHlIuocEB/dEQV5VHbHOsdtzIVTGAjBY3mU+ZRlmwXtH6mihJbsuJaYa4ZZ tkiVOWp5KSIyQanEA0hulMrGBylk1GXZMD2jtwDa07CqeY7fR/xJCv0H2Ha+iHfkRwulss CAS+gmiqNUXoL3vc0oMlk3+7hOXOSAR0jbxGsjrNmkXLO1JUepD8Y3MfWoUdMvIkt5mA91 EbVkIAWmqpzAzocjXOM8ly8S3dDcERKrUQZmYTEPrcJlfdJ5nHEQVu5Dz7dFuFg9+uWPZb j4GI2yVS3IrnEQeHCdgDy9o82aPhNWWDI1Or0fZIq2Rii/STsM3HKuzzo2XIpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726082572; 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=yQnljp6n28o3NhD9E+i6MxXS2ZULpZSUVKHAXf1b5Tc=; b=laFBPUst/ZSU/lLxOuFXUQfDE4aNgO36YE9QA8yCp457oos5gxxwIG6UH5eLjfWVi9nnpf DhSv5cmYPaGH4CLhyFbwCLqMezmF4RtMvNzgHov1egihmAiYNUWRVWQanyeAIdVqYP/U1Q UH7YLSjHFg7ekDaUtoCbFJMnsjJ/oaiVurxjRxZNV4d5Ds7cczURWqHfLz9PVjgb3rVbQa OZZOusNPmPh6VA/J0zZunIxDMq2w0bI2Pdxnm70zW5poUS1CZm8QUN1hOIK/KRkJodZc3Q bwV9FyC31U42h2w+QZBUfTkZ4tNNSD+ChX+HgTGmjx54Pxmhyo33OS4PdR4w2Q== 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 4X3r7c2jmWzkZg; Wed, 11 Sep 2024 19:22:52 +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 48BJMqj8096443; Wed, 11 Sep 2024 19:22:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48BJMqX2096440; Wed, 11 Sep 2024 19:22:52 GMT (envelope-from git) Date: Wed, 11 Sep 2024 19:22:52 GMT Message-Id: <202409111922.48BJMqX2096440@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: 171e57967b3e - main - cxgbe/t4_tom: Demote STALE L2 table entries to RESOLVING in uld_stop. 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: np X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 171e57967b3e53f0fb48116df5003ce17163295c Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=171e57967b3e53f0fb48116df5003ce17163295c commit 171e57967b3e53f0fb48116df5003ce17163295c Author: Navdeep Parhar AuthorDate: 2024-09-11 07:11:13 +0000 Commit: Navdeep Parhar CommitDate: 2024-09-11 19:09:48 +0000 cxgbe/t4_tom: Demote STALE L2 table entries to RESOLVING in uld_stop. The STALE state means the L2T entry is valid in hardware but needs to be refreshed (ARP/NDP) in software. But stop/suspend wipes the hardware L2T and STALE entries need to be updated just like VALID entries to match actual hardware state. Fixes: c1c524852f62 cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/tom/t4_tom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/tom/t4_tom.c b/sys/dev/cxgbe/tom/t4_tom.c index 9b1dcf304196..356ac7edc134 100644 --- a/sys/dev/cxgbe/tom/t4_tom.c +++ b/sys/dev/cxgbe/tom/t4_tom.c @@ -2115,7 +2115,7 @@ stop_tom_l2t(struct adapter *sc) for (i = 0; i < d->l2t_size; i++) { e = &d->l2tab[i]; mtx_lock(&e->lock); - if (e->state == L2T_STATE_VALID) + if (e->state == L2T_STATE_VALID || e->state == L2T_STATE_STALE) e->state = L2T_STATE_RESOLVING; /* * stop_atids is going to clean up _all_ atids in use, including