[dpdk-dev] [PATCH v3 4/4] ethdev: check driver support for functions

2015-11-04 Thread Bruce Richardson
On Tue, Nov 03, 2015 at 02:00:29PM -0800, Stephen Hemminger wrote: > On Tue, 3 Nov 2015 12:00:59 + > Bruce Richardson wrote: > > > * @return > > - * The number of used descriptors in the specific queue. > > + * The number of used descriptors in the specific queue, or: > > + * (-EINVAL

[dpdk-dev] [PATCH v3 4/4] ethdev: check driver support for functions

2015-11-03 Thread Stephen Hemminger
On Tue, 3 Nov 2015 12:00:59 + Bruce Richardson wrote: > * @return > - * The number of used descriptors in the specific queue. > + * The number of used descriptors in the specific queue, or: > + * (-EINVAL) if *port_id* is invalid > + * (-ENOTSUP) if the device does not support thi

[dpdk-dev] [PATCH v3 4/4] ethdev: check driver support for functions

2015-11-03 Thread Bruce Richardson
The functions rte_eth_rx_queue_count and rte_eth_descriptor_done are supported by very few PMDs. Therefore, it is best to check for support for the functions in the ethdev library, so as to avoid run-time crashes at run-time if the application goes to use those APIs. The performance impact of this