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 D11D11B1BE for ; Wed, 24 Jan 2018 16:39:27 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 84BD5226CA; Wed, 24 Jan 2018 10:39:27 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:39:27 -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=bJ8nD6CLqLb3aLT3o M6ej66AjefP6bNFHyjRaCHZfh8=; b=qex5aFwZ/JIovovEpKgyjVoY7lRwbfEPM Y+Xliqw7ufkdVeEDOASUPD/LM5vDypQyP/W8rV1rZJibn80a//TkstoGkp5744Si x9Ll1kZ8FeeUt/3qORBTJTSHDirbu9uNvOxGE1vtBXgakZAzoGdu2jVhtAzfQptc 6s0vvr+63dtIDIahuDxfk31Age2YWdhL2UScD8PTuzdnyM8FSiHZNwZjPUUqjdXH tqqWIeOyjkUfvxutV4iHO6nwnojWKEPgUz+3toCTLk2Zj5I2Og+GRgep7mnHi3f0 Y4JPNDDrZvgmkrCQe/UAU5/OpbPRw+GCPCTttSuICED0ngFpc8xrg== 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=bJ8nD6CLqLb3aLT3oM6ej66AjefP6bNFHyjRaCHZfh8=; b=LCnotD2f 5WgEvS16MSI/DsoNgXA7AOViKgtpkLAYhS/5OZf7oCX6XMsrjx7AeZL5MASIQyeV ChfOLhNg+vmRPTDiawEL6ZhbiiZ2qwMwCJJ+h0tH7NLIvFbi9pmjoCC0KEqRuRz9 PkhAolcz71gDEbciLKwfQm4FAOHxRFOqqq7z0vG51RpIf5YSRoFDMwfCNhgxz6oD w0EjM6vNt17Cfy7Dy///RhpHP50l+9vY6dRqQruZZ4HOAuRlrvgY89/2ig6pcHEU PTfj2r85jlu5noYyZ4XPeCQnadOEwjWz/nLwZqw+jzYZR2l7+HOLqAJr4+UNYMF/ CUlEe8zjzEG7QQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 519047E46B; Wed, 24 Jan 2018 10:39:24 -0500 (EST) From: Yuanhan Liu To: Yanglong Wu Cc: Konstantin Ananyev , dpdk stable Date: Wed, 24 Jan 2018 23:32:27 +0800 Message-Id: <1516808026-25523-79-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 the failure of number of Tx queue check' 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:39:28 -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 5c9b886f3b5a1e6a8ec7c01cfecd64bce08c18ec Mon Sep 17 00:00:00 2001 From: Yanglong Wu Date: Wed, 10 Jan 2018 09:51:36 +0800 Subject: [PATCH] net/ixgbe: fix the failure of number of Tx queue check [ upstream commit 12da1deb89806c0a0d974948d11712e4f06c6b93 ] Tx_q check fails when the SRIOV is active and tx_q > rx_q. It has to use the maximum HW queue number for calculation, to get the right number of queue can be used. Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific drivers") Signed-off-by: Yanglong Wu Acked-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ff19a56..b720485 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -95,6 +95,9 @@ /* Timer value included in XOFF frames. */ #define IXGBE_FC_PAUSE 0x680 +/*Default value of Max Rx Queue*/ +#define IXGBE_MAX_RX_QUEUE_NUM 128 + #define IXGBE_LINK_DOWN_CHECK_TIMEOUT 4000 /* ms */ #define IXGBE_LINK_UP_CHECK_TIMEOUT 1000 /* ms */ #define IXGBE_VMDQ_NUM_UC_MAC 4096 /* Maximum nb. of UC MAC addr. */ @@ -2194,9 +2197,10 @@ ixgbe_check_vf_rss_rxq_num(struct rte_eth_dev *dev, uint16_t nb_rx_q) return -EINVAL; } - RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = nb_rx_q; - RTE_ETH_DEV_SRIOV(dev).def_pool_q_idx = pci_dev->max_vfs * nb_rx_q; - + RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = + IXGBE_MAX_RX_QUEUE_NUM / RTE_ETH_DEV_SRIOV(dev).active; + RTE_ETH_DEV_SRIOV(dev).def_pool_q_idx = + pci_dev->max_vfs * RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool; return 0; } -- 2.7.4