From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id E09FB2C57 for ; Thu, 1 Feb 2018 10:49:24 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9A7E920BA3; Thu, 1 Feb 2018 04:49:24 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:49:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vs1p7U61bUm73RrUX siYP5DlK4K8ksV7630xdXJeZwA=; b=FENdandbm9S7iiC+/8avGVYj4PsUrT25/ RcvloBRetrNyaPl0To2Fuf4HTYD1ACqsgyya9/oRgQuNAwNLFmWqSOHpQd+YROWm pivXo1BMpfZoSMLmjWUPgFLtD2qoCPhb5PK6X9aglcjNCFr2rsYBtTBdUcR6v0fJ L5rAA5oHaFXJazQ1NkR42SLA/icS35GkvedzENyRFkSSR9+9WO16mv8BPHd78Hl6 w/SOhQ+uP0xapaa9f3CQtAmuJKqBMrGD91cyYs1VwvcwP77DJV71nMIeQLcORszW ex10ktG6amyE8nIp0qbMEJqzwb/oYT37qmhItQw1WLePojYRJJXiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=vs1p7U61bUm73RrUXsiYP5DlK4K8ksV7630xdXJeZwA=; b=ZfcUNUuf yq9L9izBjx5VOrb0bCyDEUa1rUe9L8rUifDjcqkxnYtZVmhL153JHefqRw7uHzGp uWgGPUaxdeHYttAQeyAxGPXyXcNQiZOrfasxzwKqz/U+WhF3naGcwCZkMBPh9Zgv OCYg5iQgCyYhhy8OSV9O9+GoPG6lBrqYgbD2dvQ70qU5MIlPQ80W/qQbgRBTzdP7 nF0mXelNT0Bv/B0/wrYVtDZfTMbCfRx09UuqscdLrZd4wSySgPrM2UsUAe3jC8FI skoTTQh+vjTxhw1BLmmdYUetQl1mKw2RoOQrsFLA6kQclGpI5DQA0Yg0xVdrCjFJ iDJ2S0+c+c8eRA== X-ME-Sender: Received: from yliu-mob.mtl.com (unknown [115.150.27.200]) by mail.messagingengine.com (Postfix) with ESMTPA id 698E3240B6; Thu, 1 Feb 2018 04:49:23 -0500 (EST) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable Date: Thu, 1 Feb 2018 17:47:44 +0800 Message-Id: <1517478479-12417-30-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: fix size of Tx ring in HW' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 09:49:25 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/03/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 601ef07d8547a90e3f7c2224e106f559a538cb2f Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Fri, 26 Jan 2018 09:31:54 -0800 Subject: [PATCH] net/bnxt: fix size of Tx ring in HW [ upstream commit c771d289cb6295dd0d4abd37cc1689f0bc87cfcb ] During Tx ring allocation, the actual ring size configured in the HW ends up being twice the number of txd parameter specified to the driver. The power of 2 ring size wrongly adds a +1 while sending the ring create command to the FW. Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_txr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index 4a152aa..03d2652 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -101,7 +101,7 @@ int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id) if (ring == NULL) return -ENOMEM; txr->tx_ring_struct = ring; - ring->ring_size = rte_align32pow2(txq->nb_tx_desc + 1); + ring->ring_size = rte_align32pow2(txq->nb_tx_desc); ring->ring_mask = ring->ring_size - 1; ring->bd = (void *)txr->tx_desc_ring; ring->bd_dma = txr->tx_desc_mapping; -- 2.7.4