From nobody Thu Sep 17 05:16:33 2026 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 4hlkWV4N5fz6sPmM for ; Thu, 17 Sep 2026 05:16:38 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hlkWV3yQdz4MYl for ; Thu, 17 Sep 2026 05:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789622198; 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=nu3EU34cWfaAVpUsjWGsTke9a6WLa2a7NQcnGlivtN8=; b=PXPZC6pBNCKIEerr32PFiOPJKOgihgIzh6A851hE4kFef3HABW3XeykboyYJVEVOfwes6N 1gw1DIdcof0SYgeCIgqKxDtoRnj6+uX7OBKZp2vdE/JlK/XRjO9yWso91Ph36pQ9/qPGas saMU/a9X/skXMIitxVE5K/CHDP6e8zveAY0FZ5YhFbnZEO3iag8Rz0u70F3qlfjVyAO4In HmBxK9minLTbmxfNNw0zueKpcSSjiFlDKSSY/v+dp5btIQwX9Zab6726XG3uBZg69chR5x 57DUtCjT2HygILEYOw9IBNeLPUK/HA2g0RPhSvc+BQqGKvggwYT3W/+g6kWt7A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789622198; b=uSFt44BtfH07dP4bU08mz2MxNKO6zkbPt42Tl9V0PUDfmlAnCdI5vZeTEiPjndcfNkGQEq QNwKZU+FcasR1qDDw0pa1t5NxuBI1vYFV0lDHeoijw0NAIN23M3Y0MXWT0DNvjxhiWilIS U0CmUUNeqotN7W9hD6NfPhynQkE61hn63HMpW9YbhP12AM1NJGqbF6A1NmeASOTle/jVw2 TwGGIxFeYVxb3pIJHo41dftKioEhAfIgPD5kdAMAoMwGWx4G4wDGE2Kq0J59PuOhgjQt39 1gKlI4Hgxy6s+XfloyY+sWfKHCGFG236q6r4PZ6NrCnAAkh5pncWF+7KzJ2Gfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789622198; 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=nu3EU34cWfaAVpUsjWGsTke9a6WLa2a7NQcnGlivtN8=; b=nuPh+A8K5HrOpFId9X0mo9r/wbyjGNDlT3rHeMX7hBCmdEmZA6EQUmIqLqZL23kaVg7A1u wsbZyzo2JOhSGD4JrGY9uLofpaTwaBwbRK78otwROlLsZ13Q/mGybBiakrfnk2gM3CQh+x Klk3koL2ifbMj0Z4Wkzigjba6Hw8Uk3wmPwlsl3IQ0FxDQDkFAdC5PWumDa122wk+0AUvJ IYN2sG92Woe1gSUgNs/p9vWc1dnwPgQLWDU/OshrKjcH6vh0O2lLxhAeaJi1jX7ufoNe9b 35B0atRb0acgjBGhAt7m36CcEKcEbLVnMsG2yTs2gUeBrLlFrcdQWjcNz49MGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hlkWV32HNzJ3P for ; Thu, 17 Sep 2026 05:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1fab4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 17 Sep 2026 05:16:33 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: be36ceea1b8f - main - enic: Clean the completion ring matching each queue 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: be36ceea1b8f75f7f537e77dddb75666671fef8f Auto-Submitted: auto-generated Date: Thu, 17 Sep 2026 05:16:33 +0000 Message-Id: <6aab77b1.1fab4.7483744e@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=be36ceea1b8f75f7f537e77dddb75666671fef8f commit be36ceea1b8f75f7f537e77dddb75666671fef8f Author: Kevin Bowling AuthorDate: 2026-09-17 02:30:01 +0000 Commit: Kevin Bowling CommitDate: 2026-09-17 05:16:00 +0000 enic: Clean the completion ring matching each queue The transmit stop loop cleaned the receive completion ring, and the receive stop loop cleaned the transmit completion ring. Use enic_cq_wq() for transmit queues and enic_cq_rq() for receive queues, matching the queue indices used by the remaining ring bookkeeping. MFC after: 2 weeks Sponsored by: BBOX.io --- sys/dev/enic/if_enic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/enic/if_enic.c b/sys/dev/enic/if_enic.c index 82bed15e3f67..aa80ee6bafde 100644 --- a/sys/dev/enic/if_enic.c +++ b/sys/dev/enic/if_enic.c @@ -945,7 +945,7 @@ enic_stop(if_ctx_t ctx) for (index = 0; index < scctx->isc_ntxqsets; index++) { enic_stop_wq(enic, index); vnic_wq_clean(&enic->wq[index]); - vnic_cq_clean(&enic->cq[enic_cq_rq(enic, index)]); + vnic_cq_clean(&enic->cq[enic_cq_wq(enic, index)]); wq = &softc->enic.wq[index]; wq->ring.desc_avail = wq->ring.desc_count - 1; @@ -961,7 +961,7 @@ enic_stop(if_ctx_t ctx) for (index = 0; index < scctx->isc_nrxqsets; index++) { enic_stop_rq(enic, index); vnic_rq_clean(&enic->rq[index]); - vnic_cq_clean(&enic->cq[enic_cq_wq(enic, index)]); + vnic_cq_clean(&enic->cq[enic_cq_rq(enic, index)]); rq = &softc->enic.rq[index]; cq_rq = enic_cq_rq(&softc->enic, index);