[PATCH] doc: announce some raw/ifpga API removal
    David Marchand 
    david.marchand at redhat.com
       
    Fri Jul  1 09:21:51 CEST 2022
    
    
  
On Fri, Jul 1, 2022 at 9:16 AM Huang, Wei <wei.huang at intel.com> wrote:
> > What is the PCI bus used for, in this application?
> >
> In this application, target PCI device is Intel FPGA, it supports some special operation like removing it from PCI bus and rescanning it back from PCI bus,
> So there are two things need to be done directly on rte_pci_bus:
> 1. Rescan PCI bus
>      pci_bus->bus.scan()
> 2. Get pci_dev by specified PCI address, and remove it
>     TAILQ_FOREACH(pci_dev, &pci_bus->device_list, next) {
>         if (!rte_pci_addr_cmp(&pci_dev->addr, &addr))
>                 return pci_dev;
>     }
>     ....
>     pci_drv = pci_dev->driver;
>     pci_drv->remove(pci_dev);
Can't this application use rte_dev_remove and rte_dev_probe?
If not, we should add the missing parts in the API.
-- 
David Marchand
    
    
More information about the dev
mailing list