From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] lib: fix DCB config issue on ixgbe Date: Mon, 11 Apr 2016 11:52:05 +0200 Message-ID: <2081231.H599pWkcUZ@xps13> References: <1460363050-27962-1-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Wenzhuo Lu Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id D1DF02E8A for ; Mon, 11 Apr 2016 11:52:07 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id a140so5444660wma.0 for ; Mon, 11 Apr 2016 02:52:07 -0700 (PDT) In-Reply-To: <1460363050-27962-1-git-send-email-wenzhuo.lu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-04-11 16:24, Wenzhuo Lu: > An issue is found that DCB cannot be configged on ixgbe > NICs. It's said the TX queue number is not right. > On ixgbe the max TX queue number is not fixed, it depends > on the multi-queue mode. The API rte_eth_dev_configure > should be used to config this mode. But the input of this > API includes TX queue number. The problem is before the > mode is configged, we cannot decide the TX queue number. > > This patch adds an API to config RX & TX multi-queue mode > separately. After the mode is configged, the max RX & TX > queue number is decided. Then we can set the appropriate > RX & TX queue number. > > Fixes: 96c0450dff86 (ixgbe: fix dropping packets from unsupported Tx queues) > Signed-off-by: Wenzhuo Lu > --- > app/test-pmd/testpmd.c | 40 +++++++++++++++++++--------------- > lib/librte_ether/rte_ethdev.c | 17 +++++++++++++++ > lib/librte_ether/rte_ethdev.h | 19 ++++++++++++++++ > lib/librte_ether/rte_ether_version.map | 1 + > 4 files changed, 59 insertions(+), 18 deletions(-) Obviously, it will be considered for 16.07.