ethdev: add a missing sanity check for Tx queue setup
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 20 Nov 2015 10:26:37 +0000 (15:56 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Nov 2015 22:51:14 +0000 (23:51 +0100)
commit386c993e95f13b555afe240f29679c19dcf4a73a
treeceb3033e4f6d805ce83cb641eae3d9e4283b38ad
parent87ea2524210120225c4e38456880bcdd951877f8
ethdev: add a missing sanity check for Tx queue setup

Add a sanity check for number of tx descriptors requested during tx
queue setup.  Return -EINVAL if the number requested does not meet
the tx descriptor requirements of the device.

Fixes: 80a1deb4c77a ("ethdev: add API to retrieve queue information")

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/rte_ethdev.c