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 0CD141B1B9 for ; Wed, 24 Jan 2018 16:40:29 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B86F7226E2; Wed, 24 Jan 2018 10:40:28 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:40:28 -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=qf4lrCbwoZWX1OErU XCpcSPFoqumMDh7ozwhi2EHiZ0=; b=fWC80IWia0PQOio4Vbs+6n4204BydF7H2 T7MuC1UFdPTg/jhgyCuHPfiXQTSKCAKyEZShhcFrccZqolakDn9O/mXrCCf0lhpS pLiYOMLSv6rBLXDW4Oh21mbCOys9TAwsn6fXv4IpBMqsUeKjtyHZNM+TwXPypsE5 obLLDbglCE/LwWfhhV7PBko6cAhTIiMxUBcvsliKf3WrpL8HCAeS9Z4icymAN5Dp Yl4plHhPWf8F4AdhCCLDbid0b45phICePFlwsYD63g5SLRd+QN89+Ca6qtUc4wBI dZhd7G9HASAlWdayBpRYVqS+lwb6vv+cWRLpVZfKStSoTBM9SJlFg== 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=qf4lrCbwoZWX1OErUXCpcSPFoqumMDh7ozwhi2EHiZ0=; b=I+ubmrYj xYs3PsUTddOHVPldazQDht753M/DiuGP/yuw3uJeXtvrKbCcttVW7i7Dd/r4c1TB jJEMwgi3sf9MKfPQ9GM6la5gvGYARzS/r618NqiySuslRSZ3DTLRBJ5an7Ksn7h9 Okpvf68iPdpZkXzoiYYai/+0/t7osPpoYoSkYdQyNrf6umEt3oGAmeBf6flq4Nzg 5cOgxRuUv99GIpF7HDAavTjxXtBvV1Ot6/6B+1Vh+2Lzha9jT1aGso6PgTRIIJXN zfx/HaXkVSbD/EaT5eqNjtM48T/3jIQlVzMmzmDTJNaWiT3N4eCeNrvn6JduIJAR RcbvyxK9e4dygA== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 0ED927E1A2; Wed, 24 Jan 2018 10:40:25 -0500 (EST) From: Yuanhan Liu To: Yanglong Wu Cc: Wei Dai , dpdk stable Date: Wed, 24 Jan 2018 23:32:51 +0800 Message-Id: <1516808026-25523-103-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/ixgbe: fix max queue number for VF' 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: Wed, 24 Jan 2018 15:40:29 -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 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 3779d4c6dd74012ae5cea390256a2b917ef48f7b Mon Sep 17 00:00:00 2001 From: Yanglong Wu Date: Tue, 9 Jan 2018 14:32:05 +0800 Subject: [PATCH] net/ixgbe: fix max queue number for VF [ upstream commit 03231aec448e0596da1cac6ad8543ff937c24eae ] VF can't run in multiple queue mode, if nb_q_per_pool is set to 1. Nb_q_per_pool is passed through to max_rx_q and max_tx_q in VF. So if nb_q_per_pool is equal to 1, max_rx_q and max_tx_q shouldn't be more than 1, otherwise VF multiple queue mode will fail. RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool is the Max number of queue can be used in VF, that would be assigned as IXGBE_MAX_RX_QUEUE_NUM / RTE_ETH_DEV_SRIOV(dev).active, so that assigning nb_q_per_pool as 1 when PF is in ETH_MQ_RX_NONE, which will make VF can just use only 1 queue, is not right. Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific drivers") Signed-off-by: Yanglong Wu Acked-by: Wei Dai --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index b720485..9c09610 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -2240,8 +2240,6 @@ ixgbe_check_mq_mode(struct rte_eth_dev *dev) case ETH_MQ_RX_NONE: /* if nothing mq mode configure, use default scheme */ dev->data->dev_conf.rxmode.mq_mode = ETH_MQ_RX_VMDQ_ONLY; - if (RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool > 1) - RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 1; break; default: /* ETH_MQ_RX_DCB, ETH_MQ_RX_DCB_RSS or ETH_MQ_TX_DCB*/ /* SRIOV only works in VMDq enable mode */ -- 2.7.4