[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Thomas Monjalon
2016-05-19 12:18, Yang, Ziye: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > 2016-05-11 14:08, Ziye Yang: > > + dev->id.class_id = (uint32_t)tmp && CLASS_ANY_ID; > > Should be a bitwise &. Why masking is needed? > [Ziye] Only 24bit info is needed. What are the other bits?

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Yang, Ziye
-Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Thursday, May 19, 2016 8:57 PM To: Yang, Ziye Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] pci: Add the class_id support in pci probe 2016-05-19 12:18, Yang, Ziye: > From: Thomas Monja

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Thomas Monjalon
2016-05-11 14:08, Ziye Yang: > This patch is used to add the class_id (class_code, > subclass_code, programming_interface) support for > pci_device probe. With this patch, it will be > flexible for users to probe a class of devices > by class_id. > > Signed-off-by: Ziye Yang > --- >

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-19 Thread Yang, Ziye
-Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Thursday, May 19, 2016 6:34 PM To: Yang, Ziye Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] pci: Add the class_id support in pci probe 2016-05-11 14:08, Ziye Yang: > This patch is used to

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-11 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger > Sent: Wednesday, May 11, 2016 4:21 PM > To: Yang, Ziye > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] pci: Add the class_id support in pci probe > > On W

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-11 Thread Ziye Yang
This patch is used to add the class_id (class_code, subclass_code, programming_interface) support for pci_device probe. With this patch, it will be flexible for users to probe a class of devices by class_id. Signed-off-by: Ziye Yang --- lib/librte_eal/bsdapp/eal/eal_pci.c | 4

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-05-11 Thread Stephen Hemminger
On Wed, 11 May 2016 14:08:15 +0800 Ziye Yang wrote: > This patch is used to add the class_id (class_code, > subclass_code, programming_interface) support for > pci_device probe. With this patch, it will be > flexible for users to probe a class of devices > by class_id. > > Signed-off-by: Ziye

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-29 Thread Panu Matilainen
On 01/29/2016 12:10 PM, Panu Matilainen wrote: > On 01/29/2016 11:34 AM, Thomas Monjalon wrote: >> 2016-01-29 11:21, Panu Matilainen: >>> On 01/28/2016 11:38 PM, Thomas Monjalon wrote: 2016-01-13 14:22, Panu Matilainen: > On 01/13/2016 01:55 PM, Bruce Richardson wrote: >> On Thu, Dec

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-29 Thread Panu Matilainen
On 01/29/2016 11:34 AM, Thomas Monjalon wrote: > 2016-01-29 11:21, Panu Matilainen: >> On 01/28/2016 11:38 PM, Thomas Monjalon wrote: >>> 2016-01-13 14:22, Panu Matilainen: On 01/13/2016 01:55 PM, Bruce Richardson wrote: > On Thu, Dec 31, 2015 at 09:12:14AM -0800, Stephen Hemminger wrote:

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-29 Thread Panu Matilainen
On 01/28/2016 11:38 PM, Thomas Monjalon wrote: > 2016-01-13 14:22, Panu Matilainen: >> On 01/13/2016 01:55 PM, Bruce Richardson wrote: >>> On Thu, Dec 31, 2015 at 09:12:14AM -0800, Stephen Hemminger wrote: On Tue, 29 Dec 2015 10:53:26 +0800 Ziye Yang wrote: > This patch is used

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-29 Thread Thomas Monjalon
2016-01-29 11:21, Panu Matilainen: > On 01/28/2016 11:38 PM, Thomas Monjalon wrote: > > 2016-01-13 14:22, Panu Matilainen: > >> On 01/13/2016 01:55 PM, Bruce Richardson wrote: > >>> On Thu, Dec 31, 2015 at 09:12:14AM -0800, Stephen Hemminger wrote: > On Tue, 29 Dec 2015 10:53:26 +0800 >

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-28 Thread Thomas Monjalon
2016-01-13 14:22, Panu Matilainen: > On 01/13/2016 01:55 PM, Bruce Richardson wrote: > > On Thu, Dec 31, 2015 at 09:12:14AM -0800, Stephen Hemminger wrote: > >> On Tue, 29 Dec 2015 10:53:26 +0800 > >> Ziye Yang wrote: > >> > >>> This patch is used to add the class_id support > >>> for pci_probe

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-13 Thread Panu Matilainen
On 01/13/2016 01:55 PM, Bruce Richardson wrote: > On Thu, Dec 31, 2015 at 09:12:14AM -0800, Stephen Hemminger wrote: >> On Tue, 29 Dec 2015 10:53:26 +0800 >> Ziye Yang wrote: >> >>> This patch is used to add the class_id support >>> for pci_probe since some devices need the class_info >>>

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2016-01-13 Thread Bruce Richardson
On Thu, Dec 31, 2015 at 09:12:14AM -0800, Stephen Hemminger wrote: > On Tue, 29 Dec 2015 10:53:26 +0800 > Ziye Yang wrote: > > > This patch is used to add the class_id support > > for pci_probe since some devices need the class_info > > (class_code, subclass_code, programming_interface) > > > >

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2015-12-31 Thread Stephen Hemminger
On Tue, 29 Dec 2015 10:53:26 +0800 Ziye Yang wrote: > This patch is used to add the class_id support > for pci_probe since some devices need the class_info > (class_code, subclass_code, programming_interface) > > Signed-off-by: Ziye Yang Since rte_pci is exposed to application this breaks the

[dpdk-dev] [PATCH] pci: Add the class_id support in pci probe

2015-12-29 Thread Ziye Yang
This patch is used to add the class_id support for pci_probe since some devices need the class_info (class_code, subclass_code, programming_interface) Signed-off-by: Ziye Yang --- lib/librte_eal/bsdapp/eal/eal_pci.c | 4 lib/librte_eal/common/eal_common_pci.c | 3 +++