ethdev: move a queue id check to generic layer
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 17 Feb 2017 15:25:33 +0000 (16:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Mar 2017 18:29:51 +0000 (19:29 +0100)
The check of queue_id is done in all drivers implementing
rte_eth_rx_queue_count(). Factorize this check in the generic function.

Note that the nfp driver was doing the check differently, which could
induce crashes if the queue index was too big.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>

No differences found