[dpdk-dev] [PATCH v1] doc/eth: update document for functional limitation

Zhang, Qi Z qi.z.zhang at intel.com
Fri May 25 02:44:12 CEST 2018



> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas at monjalon.net]
> Sent: Friday, May 25, 2018 1:06 AM
> To: Varghese, Vipin <vipin.varghese at intel.com>
> Cc: dev at dpdk.org; Zhang, Qi Z <qi.z.zhang at intel.com>; Kovacevic, Marko
> <marko.kovacevic at intel.com>; Jain, Deepak K <deepak.k.jain at intel.com>;
> Yigit, Ferruh <ferruh.yigit at intel.com>
> Subject: Re: [dpdk-dev] [PATCH v1] doc/eth: update document for functional
> limitation
> 
> 23/05/2018 12:05, Vipin Varghese:
> > --- a/lib/librte_ethdev/rte_ethdev.h
> > +++ b/lib/librte_ethdev/rte_ethdev.h
> > @@ -1479,6 +1479,9 @@ int rte_eth_dev_attach(const char *devargs,
> uint16_t *port_id);
> >   * This function must be called when the device is in the
> >   * closed state.
> >   *
> > + * Note:
> > + * - Currently supported for primary process only.
> 
> I think it should be possible to attach a device in secondary process.
> If it is a recent limitation, it should be in "known issues" of the release notes.

For PCI device, we can only attached a device that is already resource mapped in primary process (for example, a device not in secondary process' white list but in primary process's)
And we should not detached a device in secondary process, that will mess primary process and cause it can't be attached again.

For vdev, I think we still can attached/detach a new device which does not exist in primary process.

> 
> 



More information about the dev mailing list