From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH] examples/vhost: fix extend MAX_QUEUES to resolve startup failure Date: Tue, 9 Jan 2018 21:23:47 +0800 Message-ID: <20180109132347.GL29540@yliu-mob> References: <20180104063332.5248-1-zhiyong.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, stable@dpdk.org To: Zhiyong Yang Return-path: Content-Disposition: inline In-Reply-To: <20180104063332.5248-1-zhiyong.yang@intel.com> 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 Thu, Jan 04, 2018 at 02:33:32PM +0800, Zhiyong Yang wrote: > When binding X710 NIC (i40e driver) to DPDK, vhost sample startups > failure. > The sample requires that MAX_QUEUES should be defined no less than 320. > So, the patch redefines MAX_QUEUES 320 to fix the issue. It just makes the issue disappear. It doesn't really fix the issue. And I belive we have tried to fix this kind of issues in this way many times. (just check the git history). As you known, none of them really worked. You just added one more try, which is very likely will be broken again when Intel has one more new NIC. The error comes from: if (dev_info.max_rx_queues > MAX_QUEUES) { rte_exit(EXIT_FAILURE, "please define MAX_QUEUES no less than %u in %s\n", dev_info.max_rx_queues, __FILE__); } I think such check is overkill and we don't really need that. Could you just remove such check and do some validations on few difference nics? Thanks. --yliu