From nobody Thu Sep 17 05:16:33 2026 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 4hlkWP5vS7z6sQcK for ; Thu, 17 Sep 2026 05:16:33 +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 4hlkWP3py3z4MKf for ; Thu, 17 Sep 2026 05:16:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789622193; 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=h8Rhu4J2f1eMLpZ6nEjUPKK0wC5d6o5XtrkwQ82uBWHoDhpnQS8lA8/4ISY3XixSoOQ7ql 6uZHqfYPfsqY99Da9gWBvJAgv12ZhlLsKhqqywt7cUJcda9Ua1jKPK6hST6PmztHH7B/cF /vo2pl8bLjuh5qTWIHuhjfzUcTzbOLTYfuyPGeb9qhB1jeyhT/ZV2K8PU1KonkOS5P7JUx E6JJlINVzOAuySNrAk8q7DaiuLkrDWQrDGoDAY4HnrIA+NV/Notj7GdGEUOBnDxqamYroH ro8X3ReAHFCCwmNYb1ed23Zvlolgnc3OVwkIyTlCLHPN5bW1gYuCa/cTCR3wkQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789622193; b=I+hmd6XZl9go2pwahR/UJ3pNqb5gLXPXkhesiR1gsZHovNC8f5ZE1GgVQLaUvI+ifbn0S5 eYOiM0pFR95/ILll+6ds5XijtnW5ogBLNWspOZfvBA2jjj8DPx3ttC2SOrsUmYPbWeF6Ui bgE1Yr3sxm6lblYzy6hDWeuc61HmCt9pjwpzDGaoxm7KzHoJPxTdUdUJrGRmZ1gZQogzT+ 9Swpb24rVHEH5tHWb181aNOfDyGFejU9GI7pwBagVjF3y7H3gxxN8dN5WPyAy7caoEIUZf NSa8OHrClvce/rris2L9Xv0O84TGBQm7bAG0sYZ0kXUw9BLL2bLNrYN8XdJu6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789622193; 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=lc5VrSXUCprzvD5ccble1RJfelHRwb4G2mufZggsBWtMVEOGm8r8JWd9RoqLj9J48udXZ1 apdNLFGKQ6MQCxmxt6cuO5cP/vvZPILFqDKw7G1fcZXK5G3cc08owd7w+jvMy7Mw7Q19c4 4TM1x0/JRX11WQhxsZLesAaoKUBcxKcpGP6yBMYcNaRdNVXjiPTSpG0XNcOpk8Be1JB/oB ZA8hd/KNFVrRPxFFTj0RVOijr+Yh55/cryHWYg7crH3IJ5EjWlBfgEJrKVYp2NWZT4U5q5 i1QZVz/S+ZeQoFWhA1A5gDFdup87F3+39Y5uOy6bK+v7SOATNtOng3C+PjNl+A== 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 4hlkWP2twdzJ7q for ; Thu, 17 Sep 2026 05:16:33 +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 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 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);