From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94917A0C45; Mon, 13 Sep 2021 17:49:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3CD340151; Mon, 13 Sep 2021 17:49:22 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 9C2054014F for ; Mon, 13 Sep 2021 17:49:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631548159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x/hni4xBus14O2ic3joUjPJN39kiJxmSIMRoV9CIH14=; b=aJ9RP+jypNn4+uJrpszGQSaobopPb23mxxTzXF3vgRHUlDuVHpemOnmM4rsQxW+ov00rI4 VekDajYPpsmKILb8yjmykDeu+nixXWhT53vFaR1GmRcNlOYmYZQ+A4AtoscmuosypgGiDI cDS35cu3oFgj8sZm7SDgAnjp1/yxBfk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-295-TTIL3j1VPveLBFowdq0ymQ-1; Mon, 13 Sep 2021 11:49:16 -0400 X-MC-Unique: TTIL3j1VPveLBFowdq0ymQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5286536302; Mon, 13 Sep 2021 15:49:15 +0000 (UTC) Received: from [10.39.208.12] (unknown [10.39.208.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E81CD1972D; Mon, 13 Sep 2021 15:49:13 +0000 (UTC) To: "Xia, Chenbo" , "Ma, WenwuX" , "dev@dpdk.org" Cc: "Jiang, Cheng1" , "Hu, Jiayu" , "Wang, Yinan" References: <20210910135205.269651-1-wenwux.ma@intel.com> From: Maxime Coquelin Message-ID: <6bd637a9-6b7a-512c-43c4-6c50a5a9631f@redhat.com> Date: Mon, 13 Sep 2021 17:49:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] examples/vhost: change the default value of NIC's max queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/10/21 5:17 AM, Xia, Chenbo wrote: > Hi Wenwu, > >> -----Original Message----- >> From: Ma, WenwuX >> Sent: Friday, September 10, 2021 9:52 PM >> To: dev@dpdk.org >> Cc: maxime.coquelin@redhat.com; Xia, Chenbo ; Jiang, >> Cheng1 ; Hu, Jiayu ; Wang, Yinan >> ; Ma, WenwuX >> Subject: [PATCH] examples/vhost: change the default value of NIC's max queues >> >> vswitch can't launch with 40G FTV due to Device start fails > > Not many people can understand what's FTV. So let's describe it with a driver > name. Example if it's 'i40e': > > vswitch can't launch with a 40G i40e port... > > And Device -> device > >> if NIC’s max queues > the default number of 128, >> so, we changed the default value from 128 to 512. >> > > I'd say it's not cool to still hard-code the MAX_QUEUES so that only 'some' NICs > can work with the example. The app should have a way to check this kind of info > before init/start. But as I would like to see at some point, this example will > be removed and all our tests go to testpmd. Let's not waste too much effort on > this example. +1 on this, I agree with Chenbo it is better to invest time in porting existing tests to testpmd. > > Besides: it can be a fix. Let's backport it. > > Thanks, > Chenbo > >> Signed-off-by: Wenwu Ma >> --- >> examples/vhost/main.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/examples/vhost/main.c b/examples/vhost/main.c >> index bc3d71c898..36969a4de5 100644 >> --- a/examples/vhost/main.c >> +++ b/examples/vhost/main.c >> @@ -29,7 +29,7 @@ >> #include "main.h" >> >> #ifndef MAX_QUEUES >> -#define MAX_QUEUES 128 >> +#define MAX_QUEUES 512 >> #endif >> >> /* the maximum number of external ports supported */ >> -- >> 2.25.1 >