[dpdk-dev] [PATCH v4 17/26] virtio: Use port IO to get PCI resource.

Ouyang, Changchun changchun.ouyang at intel.com
Thu Feb 12 01:52:47 CET 2015



> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> Sent: Wednesday, February 11, 2015 10:16 PM
> To: Stephen Hemminger
> Cc: dev at dpdk.org; Vincent JARDIN; Ouyang, Changchun
> Subject: Re: [dpdk-dev] [PATCH v4 17/26] virtio: Use port IO to get PCI
> resource.
> 
> 2015-02-11 05:50, Stephen Hemminger:
> > But driver needs to tell application via driver flags
> 
> I think it's done:
> > +	pci_dev->intr_handle.type = RTE_INTR_HANDLE_UIO;
> > +	pci_drv->drv_flags |= RTE_PCI_DRV_INTR_LSC;
> 
> In my understanding, Changchun chose to use ioports as a fallback if uio is
> not available. Seems OK.

Thomas is absolutely correct!  :-)

And on the other hand, without uio, disable the interrupt in driver flag:
+	/* can't support lsc interrupt without uio */
+	pci_drv->drv_flags &= ~RTE_PCI_DRV_INTR_LSC;

Thanks
Changchun



More information about the dev mailing list