From nobody Thu Dec 28 13:57:16 2023 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 4T19703XvSz55tCZ; Thu, 28 Dec 2023 13:57:16 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T197022bCz4WtW; Thu, 28 Dec 2023 13:57:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703771836; 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=m1RTD4QR60BgCdqbsiRbiXG9jiSKhFYAu24H7Lqw3OE=; b=drbiO/mRyiWTYYqgsfq+TFoeft0g1CQYkUXEq9xjI7XKR4c/QWvim2FC1WFbC+KP+IAP/s yI+i6Z2bUC10dCIrAAIGSlHzZ9TYIKXuLSM9AxtUuDrpAptbm+7Yw5sbZMgzIPcurE++xl V0DgpVXkn4F68753wpkwkBj3S8rkyDRowtYxbSr1YIT6zmRBRfefNSEz9XKJ1oG9KeMvGF 9EGKFjo6hJO4EGqFc7uIS0dL4KomTQfYvdJwNL0ShGmuRwXfwlXITQ8i7vVzbGc+rr5kVg slSS1qxZsK8uja62XEors9qoDAbO2CKYCIlP4zOsbxyX2ULRw6dLbVJb0v4LMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703771836; a=rsa-sha256; cv=none; b=VrQbhhG/+dcRwmV7XhgCYO5FC9x7N4bsm6N2tBUggV8nER4e28lF5n/rc9j/4QqKiJraik ThmPpFZb7Ova2ZPiHHHZvY20KokAsJnTPvTLtvPVXpoLIE5Rtp4tUW4IMRsfHO5+bwSuKm oEL3mlWTChYiKmE0SmcSqMTWuS06y1+2VzssrR8c83Yyd2hL7AXVHUZ4BI+DF7IrhT8bQf PHTCHjH5nU/DyM4rWExhewtcXV4+XmNDFr8kF+XR74ROTZl8axHiAc9th2TncEQlz2b+Sm C1Q25J0i56SQvVdCkTHzyWIpEhOl7r9NM42DijpTy+TOMck8zpLVWHljY1BozQ== 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=1703771836; 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=m1RTD4QR60BgCdqbsiRbiXG9jiSKhFYAu24H7Lqw3OE=; b=Plxu6U3ulCa5SAaWIoog/ws2Ym0ihRh/zkE1DDQ5FKOq4bdoMogrn1R2/jMYzn9UJiGi7g kdC+KM3ZapnKqqJ0uM+vg6624ENDd8rd7JrC4UGKT56/fB1u1HV6Hs5NOL8DIW6uwfMddn Tqsh9GVy+owkkVQ7UQRwvdolVyJDtw+YYquWIUqr5SzTL5FGSEpblAO45tC4sh5D5LNzyy ztxCO4WCCVxF4SmhzKPbtMUcg7UtWj5MJDVB3y5odfT0JRB/cHfylhppR8T+jALrhtfWuf l/yHzA+mYAEje9eG2X1/9hPkdHS/IsMe2Xd98SB2IXCtgFlM6qXU4A/endwECQ== 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 4T19700qTKz9y9; Thu, 28 Dec 2023 13:57:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BSDvGSq036083; Thu, 28 Dec 2023 13:57:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BSDvGW5036080; Thu, 28 Dec 2023 13:57:16 GMT (envelope-from git) Date: Thu, 28 Dec 2023 13:57:16 GMT Message-Id: <202312281357.3BSDvGW5036080@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Arthur Kiyanovski Subject: git: 72e34ebdd088 - main - ena: Update ena_com_update_intr_reg API usage 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: akiyano X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72e34ebdd08854dc896f267b0461e241c4040241 Auto-Submitted: auto-generated The branch main has been updated by akiyano: URL: https://cgit.FreeBSD.org/src/commit/?id=72e34ebdd08854dc896f267b0461e241c4040241 commit 72e34ebdd08854dc896f267b0461e241c4040241 Author: Osama Abboud AuthorDate: 2023-09-11 08:38:39 +0000 Commit: Arthur Kiyanovski CommitDate: 2023-12-28 13:56:05 +0000 ena: Update ena_com_update_intr_reg API usage This commit fixes the usage of this function to be compatible with the new API introduced by ena-com update to v2.7.0 Approved by: cperciva (mentor) MFC after: 2 weeks Sponsored by: Amazon, Inc. --- sys/dev/ena/ena.c | 2 +- sys/dev/ena/ena_datapath.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c index ba1712093a7a..aca2e0b43041 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -2026,7 +2026,7 @@ ena_unmask_all_io_irqs(struct ena_adapter *adapter) for (i = 0; i < adapter->num_io_queues; i++) { ena_qid = ENA_IO_TXQ_IDX(i); io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; - ena_com_update_intr_reg(&intr_reg, 0, 0, true); + ena_com_update_intr_reg(&intr_reg, 0, 0, true, false); tx_ring = &adapter->tx_ring[i]; counter_u64_add(tx_ring->tx_stats.unmask_interrupt_num, 1); ena_com_unmask_intr(io_cq, &intr_reg); diff --git a/sys/dev/ena/ena_datapath.c b/sys/dev/ena/ena_datapath.c index 3e0a8aa2bd74..e5c424139d3c 100644 --- a/sys/dev/ena/ena_datapath.c +++ b/sys/dev/ena/ena_datapath.c @@ -104,7 +104,7 @@ ena_cleanup(void *arg, int pending) /* Signal that work is done and unmask interrupt */ ena_com_update_intr_reg(&intr_reg, ENA_RX_IRQ_INTERVAL, - ENA_TX_IRQ_INTERVAL, true); + ENA_TX_IRQ_INTERVAL, true, false); counter_u64_add(tx_ring->tx_stats.unmask_interrupt_num, 1); ena_com_unmask_intr(io_cq, &intr_reg); }