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 9FB3DA034F; Mon, 22 Feb 2021 18:55:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9941022A278; Mon, 22 Feb 2021 18:54:16 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 92DFC4003C for ; Mon, 22 Feb 2021 18:54:14 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id A438020B6C40; Mon, 22 Feb 2021 09:54:13 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A438020B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1614016453; bh=9J3mU3DGUuKs0SNKXesCy7G7CkE6RBNmL/2di62nC4E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wf2D9X6ahXUprlPjaIoHIBhDwKhZ+4rANbRNzUNwNbAIVgM38YWR1XWEiZ6D21fAP m50j4Ye3F50J2mhIAMNZkcoo/7bzsz3D0aGw5935Fp2FggCXhKrRKjcID+99+wiWpb ZxITKlsM3BlyY1LPKzhuhkoQ5Gq14ADqn2bhSlTI= Date: Mon, 22 Feb 2021 09:54:13 -0800 From: Tyler Retzlaff To: David Marchand Cc: Dmitry Kozlyuk , dev , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam Message-ID: <20210222175413.GA23653@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20210221005149.10576-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [dpdk-dev] [kmods PATCH] windows/netuio: add vmxnet3 device ID 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 Mon, Feb 22, 2021 at 10:20:41AM +0100, David Marchand wrote: > > diff --git a/windows/netuio/netuio.inf b/windows/netuio/netuio.inf > > index 666a69c..db97366 100644 > > --- a/windows/netuio/netuio.inf > > +++ b/windows/netuio/netuio.inf > > @@ -42,6 +42,7 @@ HKR,,Icon,,-5 > > %Intel.F101F.Description%=netuio_Device, PCI\VEN_8086&DEV_101F > > %Intel.F104F.Description%=netuio_Device, PCI\VEN_8086&DEV_104F > > %Intel.F104E.Description%=netuio_Device, PCI\VEN_8086&DEV_104E > > +%vmxnet3.Description%=netuio_Device, PCI\VEN_15AD&DEV_07B0 > > > > Is there no other way than hardcoding those values in the driver? > Something à la driverctl? This is how support for vendor / device is expressed for a driver to the Windows PnP subsystem. The device ids listed in the .inf file are used to match the driver when the device is enumerated. It's not really hardcoded though (not compiled anyway) so the list of ids in a .inf can be changed without recompiled it is just a text file. > > > -- > David Marchand