[dpdk-dev] [PATCH v2 2/6] ethdev: add port ownership

Thomas Monjalon thomas at monjalon.net
Fri Jan 19 15:07:28 CET 2018


19/01/2018 14:57, Neil Horman:
> > > I specifically pointed that out above.  There is no reason an owernship record
> > > couldn't be added to the rte_eth_dev structure.
> >
> > Sorry, don't understand why.
> >
> Because, thats the resource your trying to protect, and the object you want to
> identify ownership of, no?

No
The rte_eth_dev structure is the port representation in the process.
The rte_eth_dev_data structure is the port represenation across multi-process.
The ownership must be in rte_eth_dev_data to cover multi-process protection.





More information about the dev mailing list