From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 8F947237 for ; Tue, 21 Nov 2017 14:23:15 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 42EEB20C94; Tue, 21 Nov 2017 08:23:15 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:23:15 -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=fm1; bh=mDq7sZydjxZecDP+x ntcWibcopWRR9gdEo51l/eje6c=; b=K8Anp719ksPhnkTMd8PhzHzn4ONbYZnbw oaiP0DX68jMJOyKnr9RuBdmenrDJZTmBFl2YkY8PLtR2WR3rI4dcJJfdROdph7+j NHpXDCKefdrVgZ3JspILNvqsHlqEgapCP2tPkobGE7sd1AyJ99R/gEIicKI3eFk1 Vp1IpecPfl3NY3hLdfQGMOxh+oPQpGMgUa59QELlyNe2AXWdL8y6adlQIiNgF2Jb XTsBxK7nz003B87PzyUCl2CS46ufaKXFK7mFedYpIxskystimZAXXITh7sd7fefS x9BuBryb+nXquQPAm8LJO0FSs3QUWk26JGPnxy5CPIVCiBM9/mkpA== 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=mDq7sZydjxZecDP+xntcWibcopWRR9gdEo51l/eje6c=; b=RRXEE0dl vVCdK52BOgOTSnnyaWtB+jI+6yOpdQuJ2Mxdu5c9V1YuGVGFN/8b8yq5E8vu7CHQ Zs1vlEgVnwTwTeSET7eDdrQzpynIGBJWKsilVbjI5pXds8d0aV8MNTBKxTXZlLOZ L5XgjK1ysk0PWKPe6JrOmt2795sQNsTOEENjWnhvngvV62sb9QQAs29CcKBqry95 5WhljKVHwZr3cEIpUNQ8xAvp93srhgwkEvf6yoVWlu3XxVoD5B6u/VdnZJsU+OFl VtC4ot1vK79rIAkmJV61SICWU8U8h/pHVEgFWognt/dkIfsh3tIS3/latWs11CFt Y5yumg+tmHHb3A== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 9BA7F243B9; Tue, 21 Nov 2017 08:23:12 -0500 (EST) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable Date: Tue, 21 Nov 2017 21:16:40 +0800 Message-Id: <1511270333-31002-58-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: fix calculation of number of pools' has been queued to stable release 17.08.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: Tue, 21 Nov 2017 13:23:15 -0000 Hi, FYI, your patch has been queued to stable release 17.08.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 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 6c872d556e370af080a16d5a068b8f80a8019e3a Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Thu, 28 Sep 2017 16:43:25 -0500 Subject: [PATCH] net/bnxt: fix calculation of number of pools [ upstream commit e28538f1620ea815e879df92d2a5c5dc8b4ec8d0 ] The calculation for number of pools is wrong. We are wrongly overwriting the calculated value with ETH_64_POOLS. Accordingly fix the size of ff_pools array. Fix the log message as well. Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h | 2 +- drivers/net/bnxt/bnxt_rxq.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt.h b/drivers/net/bnxt/bnxt.h index 405d94d..3579505 100644 --- a/drivers/net/bnxt/bnxt.h +++ b/drivers/net/bnxt/bnxt.h @@ -217,7 +217,7 @@ struct bnxt { STAILQ_HEAD(, bnxt_filter_info) free_filter_list; /* VNIC pointer for flow filter (VMDq) pools */ -#define MAX_FF_POOLS ETH_64_POOLS +#define MAX_FF_POOLS 256 STAILQ_HEAD(, bnxt_vnic_info) ff_pool[MAX_FF_POOLS]; struct bnxt_irq *irq_tbl; diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c index ef5e47d..441e543 100644 --- a/drivers/net/bnxt/bnxt_rxq.c +++ b/drivers/net/bnxt/bnxt_rxq.c @@ -125,8 +125,7 @@ int bnxt_mq_rx_configure(struct bnxt *bp) RTE_MIN(bp->max_l2_ctx, RTE_MIN(bp->max_rsscos_ctx, ETH_64_POOLS))); RTE_LOG(ERR, PMD, - "VMDq pool not set, defaulted to 64\n"); - pools = ETH_64_POOLS; + "VMDq pool not set, defaulted to %d\n", pools); } nb_q_per_grp = bp->rx_cp_nr_rings / pools; start_grp_id = 0; -- 2.7.4