From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E718DA052A; Tue, 26 Jan 2021 19:33:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08023140F56; Tue, 26 Jan 2021 19:33:01 +0100 (CET) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by mails.dpdk.org (Postfix) with ESMTP id 9FF21140F4A for ; Tue, 26 Jan 2021 19:32:56 +0100 (CET) Received: by mail-lj1-f177.google.com with SMTP id t8so13482130ljk.10 for ; Tue, 26 Jan 2021 10:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xKsiPwgK9JCQHpFxekftFwZoJ8MkDnBQ1cpbltlOuqc=; b=XK9/2t6ZCNscyZXYfDFP4P3I0wLhGceKc9/oAg2N5CHIQ9f3H1QoBeSo01u4AFNXXR oXBkzvsvuZOQFO/UtCgVV5f7eWeM8G4NwzstsfcK9DnWIhaMg+5EP/AY2Cs+gDBJBD7f t+SxpNcGtTCbSL6QxJTGWKxcAnYW0lm4Pj20Agp3iM0GW8OwKrbjrpix4jv0Fur493Wy qZ9RyudU0TKWMuJGNQ6x/HIoHD6XRc3Q9JJjNkRH6BQ3j+XEOvHWNSiIvgVmappi8fFh /y5JF/nSrsrfWRkyqvqYlFStt0IZzyNO5lqsZO7TxB9TvpvSyV/FFq+paS8ayvap4Eyp 3mRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xKsiPwgK9JCQHpFxekftFwZoJ8MkDnBQ1cpbltlOuqc=; b=D2TuyRJ0yqQrkcLWElUE4ZIgLO3OI9Gk2rEdLhT6MyZ0V1UpljZfEDlFX5YNowIw0q mXmo/TD0keB973B5h0yMuCYFxkXLd8eCky4HU5DqGmrPioNotmG/SZIViACQRxovF2tx caa32k6RKjyq7nhV3edb3p8C5wODrS7Of+5PfzSuz5lt6QLu9W5I7pMgKVXRcMD82r4W Aw7CYzz0c39Wb1V16Lt8yK5D/49tkbleAXGY0XanfoV2QCUt9LBDif/XOFH1UoPK+wyj lRRPIT9Pi5gMI3NDMXIaRBqZVE8cWJjjuVMmxFrBJbnfJ4dDdYtNFwsqDGJTN1DlqObN 6lqQ== X-Gm-Message-State: AOAM530AmL516BQmyEydoGXqqVW8cMiCEuFoIsfsMYbf8lI51Q1C0ce7 cvpQQ10nHZw0Yllne5LtUzYlhOm13EA6Tg5G X-Google-Smtp-Source: ABdhPJzFrb5eDd1gdj8JEnN32wnv5nD/EJ811Zcu+vqdpbH4IPQeo4wTR2ElG+znUYF/RZeonef0sw== X-Received: by 2002:a2e:8085:: with SMTP id i5mr3646614ljg.5.1611685976093; Tue, 26 Jan 2021 10:32:56 -0800 (PST) Received: from mkPC.int.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id s3sm3351036ljo.41.2021.01.26.10.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 10:32:55 -0800 (PST) From: Michal Krawczyk To: dev@dpdk.org Cc: gtzalik@amazon.com, igorch@amazon.com, mw@semihalf.com, Amit Bernstein , stable@dpdk.org, Michal Krawczyk Date: Tue, 26 Jan 2021 19:32:23 +0100 Message-Id: <20210126183226.2420903-3-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126183226.2420903-1-mk@semihalf.com> References: <20210126183226.2420903-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/5] net/ena: Tx doorbell statistics fix X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Amit Bernstein Increment Tx doorbell statistics on tx_pkt_burst after writing to doorbell and in case max burst size achieved Fixes: c7519ea5eb8d ("net/ena: call additional doorbells if needed") Cc: stable@dpdk.org Signed-off-by: Amit Bernstein Reviewed-by: Michal Krawczyk Reviewed-by: Igor Chauskin --- drivers/net/ena/ena_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 516e244295..111e830bfa 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -2519,6 +2519,7 @@ static int ena_xmit_mbuf(struct ena_ring *tx_ring, struct rte_mbuf *mbuf) "llq tx max burst size of queue %d achieved, writing doorbell to send burst\n", tx_ring->id); ena_com_write_sq_doorbell(tx_ring->ena_com_io_sq); + tx_ring->tx_stats.doorbells++; } /* prepare the packet's descriptors to dma engine */ -- 2.25.1