(2014/10/30 0:14), Bruce Richardson wrote:
> Given that apps may regularly use eth_dev_count, might it not be
> worthwhile to retain the nb_ports local variable to make this API call
> just be a variable read. The other APIs to enable/disable individual
> ports could easily just inc/dec this var
To remove assumption, do like followings.
- Add 'attached' member to rte_eth_dev structure.
This member is used for indicating the port is attached, or not.
- Delete nb_ports, and fix rte_eth_dev_count().
The value was used for counting attached ports and also used for indicating
maximum
On Wed, Oct 29, 2014 at 05:49:13PM +0900, Tetsuya Mukawa wrote:
> To remove assumption, do like followings.
>
> - Add 'attached' member to rte_eth_dev structure.
> This member is used for indicating the port is attached, or not.
> - Delete nb_ports, and fix rte_eth_dev_count().
> The value
3 matches
Mail list logo