From nobody Mon Oct 21 18:39: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 4XXPH45xxWz5Zc6q; Mon, 21 Oct 2024 18:39:28 +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 4XXPH44G8Lz4GLy; Mon, 21 Oct 2024 18:39:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729535968; 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=is8illmMqBRebcYT/V+27zA2SV/r5FJueM6hobSGezg=; b=KVH160/TU4TN/dgzzQs/5bHZhCIAflZRqPeBIMJ1l/zthj+rHZvQxpT1/0fgVfTWOiSrhg ge/e9eSVQhrkGkId3+ZFST1UbvBF1BKTQUkjiy//gKGoJ7FiijjaOXajFHN1VXKCqz41pu Tl8YE3Xzri3S69uU2Q7QCqQWh4iKZkZ7AEDy3PK6V/bXTttLtEMFuejJ4V6EYa1LkptXm3 oPET84q+2D72TpuqTZSzLZYvH5xXGqvMLuqdESW5+PVhftuahNKnp6/zxsp1nnpUkJuP7l mNd38n+CK6by+2wLI81BwITJKdAoFIFsZAchZVuKPEmty7c7Qh6hNBKZuVtZuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729535968; 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=is8illmMqBRebcYT/V+27zA2SV/r5FJueM6hobSGezg=; b=Dt3XTA2vv1MJGZCwEHYCJOaIS34pMAOsIPyBX3DDVl0KWCd/bMISzRvgjFGWn1uXPDGFrN nOQAbNqOscnzp5EXJHsO2yA/I4AZ/k+3z+GpXYUPxk32CUfvm0/VFOqC1NSz7TTPlrp+pV JHJokr6uCzrQrGAFCjwcoMRUigT0fttXbajkKAPoaYfFRCxTnvX8ktdTFZwA0VVfDx8ip6 FADRnEI2NBU0U6VeDNIm1OnCIk91vokQm/bQq2/8VIz62DKP+f3JThC3qjuui0h4ZzTBg7 oTE7My1Dv9WHLMOG1xEUbt8fUDIqxwm5QfHKBRrT6szMKy7BMyZB1efM3vftqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729535968; a=rsa-sha256; cv=none; b=XAXisKXZ+i199dCmWaWb9zUOYumVPEfK9KyNhk6H6w48e7OhKm3RCdfvTR6Xu0WcdZJbwb kGzZryc/v4v/24B5QP0silvm3+deIfLWN5Jfp0beX1E0pKNMULoHepKFn60S3eiw8A0WdG mJewbCvsp8eUrIt0E75lrFxhhS+QIn8G+DS14jUx3gYmdaTgK3uKfB/rM4aj9R8KNeQJZn ncJ50IGlMGKw+E1e42AkP9ZvEOIj80OWR26HIf5QvWbua51C5vXl7D6RVd8cx1aI2wkLSN siGjWD7n54f4oWq165ZBFeBfDnvoARs9y1o2fXYcnvf8cX+wyf8/jvgcZJnvgw== 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 4XXPH43tTTzhYL; Mon, 21 Oct 2024 18:39: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 49LIdSmM037030; Mon, 21 Oct 2024 18:39:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LIdSIL037027; Mon, 21 Oct 2024 18:39:28 GMT (envelope-from git) Date: Mon, 21 Oct 2024 18:39:28 GMT Message-Id: <202410211839.49LIdSIL037027@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Navdeep Parhar Subject: git: 610ff48406ef - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 610ff48406ef779922298e3b9759fb0abb57e0eb Auto-Submitted: auto-generated The branch stable/14 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=610ff48406ef779922298e3b9759fb0abb57e0eb commit 610ff48406ef779922298e3b9759fb0abb57e0eb Author: Navdeep Parhar AuthorDate: 2024-09-11 07:11:13 +0000 Commit: Navdeep Parhar CommitDate: 2024-10-21 17:09:52 +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. Sponsored by: Chelsio Communications (cherry picked from commit 171e57967b3e53f0fb48116df5003ce17163295c) --- 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