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 3BEC9A0547; Fri, 25 Jun 2021 14:03:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA42640698; Fri, 25 Jun 2021 14:03:42 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by mails.dpdk.org (Postfix) with ESMTP id 4D4984068A for ; Fri, 25 Jun 2021 14:03:41 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CA836320089C; Fri, 25 Jun 2021 08:03:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 25 Jun 2021 08:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= VNzPhIy5WIWJTIxWx/ZagmObMF97wI37BqrV7NfqRq0=; b=CjJ8wZ4WeFmT3A9/ XppuEQyeQsQax6Wm/HCTHLjJavmZdOpJIGdO2vikogFTT+6SvERI1SA9oRQmSzIS hdjDGj6eLKuhZGr0wLneZoU5nJRiLFAMliP+f+YtkJMwb7WGK4RtRnAYvt8tMOgB QS1Jaxj7qGC8jtA0a184wYQumaZkJMZr1l2SrY/EyvuIJzXpUcERLlOg70baoDxJ fC0OShFl8E9x74FB/xqaIn3Ux1xnubvQMBcr9LnIOrAHrT6HkZH41uydlH0uZEZv KgAomjPYuUc3+UMCsNOx02Kpx9DvBHBAdXigQ32/KRO97FoCJ77mvzQysH/GhYGg Clx+gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=VNzPhIy5WIWJTIxWx/ZagmObMF97wI37BqrV7NfqR q0=; b=MDyySaPm0T7fzpH8E3TDtZM4q7bC1pPELgXtQQ9Gct/mX98EI5Db2j9Y+ vqtVnFJe3yCeLElNmkG/QyIuNqk2ns7CYA1NJiVl9YPWHUWh9OnOMfv2wq9Iyt8w 4ifGr/pIt/YR04epunVU2dGXvA+lDxY1TklV26lrts1iCB31e1Eni+1cxT9Exgku HX3v+pXEt51OMHXfXecIggx+Dv5WA9sevuOyZt4rwyslsnJb+NfBEQdvgsu4K42q nprikvHWsDHkfphxL97MhbzH2+oEto1kRyeX5bzoogrvdzhQbPG9iiwWYdPWk7MW V82/b3br/DfVlHj7s2UB/7O0t/u6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegjedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Jun 2021 08:03:38 -0400 (EDT) From: Thomas Monjalon To: "Xueming(Steven) Li" Cc: "dev@dpdk.org" , Wang Haiyue , Kinsella Ray Date: Fri, 25 Jun 2021 14:03:36 +0200 Message-ID: <1900165.Bcuhz5Peu3@thomas> In-Reply-To: References: <20210613125846.19852-1-xuemingl@nvidia.com> <2020318.PlHIg8rldJ@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v5 2/2] bus/auxiliary: introduce auxiliary bus 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" 25/06/2021 05:26, Xueming(Steven) Li: > From: Thomas Monjalon > > 23/06/2021 02:03, Xueming Li: > > > +static int > > > +auxiliary_parse(const char *name, void *addr) { > > > + struct rte_auxiliary_driver *drv = NULL; > > > + const char **out = addr; > > > + > > > + /* Allow dummy name to prevent bus scan. */ > > > + if (strlen(name) == 0) > > > + return 0; > > > > Which syntax is it? > > Allow empty device name "auxiliary:" to bypass entire auxiliary bus scan. Ah OK A suggestion of comment: /* Skip auxiliary bus scan if name is empty. */