[dpdk-dev] [RFC PATCH 02/25] ethdev: Remove assumption that port will not be detached

2014-10-30 Thread Tetsuya Mukawa
(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

[dpdk-dev] [RFC PATCH 02/25] ethdev: Remove assumption that port will not be detached

2014-10-29 Thread Tetsuya Mukawa
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

[dpdk-dev] [RFC PATCH 02/25] ethdev: Remove assumption that port will not be detached

2014-10-29 Thread Bruce Richardson
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