fm10k: add vector pre-condition check
authorChen Jing D(Mark) <jing.d.chen@intel.com>
Fri, 30 Oct 2015 08:02:55 +0000 (16:02 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 Nov 2015 08:59:00 +0000 (09:59 +0100)
commit039991bc28ff29dbd171dd6b06e0b3a28873a5cc
treedfc209e5cd22a77cdff2c6f4717d918f35318635
parenta6ce64a9752004c101a5e7a15ae0b016d35fd77f
fm10k: add vector pre-condition check

Add condition check in rx_queue_setup func. If number of RX desc
can't satisfy vPMD requirement, record it into a variable. Or
call fm10k_rxq_vec_setup to initialize Vector RX.

Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
drivers/net/fm10k/fm10k.h
drivers/net/fm10k/fm10k_ethdev.c
drivers/net/fm10k/fm10k_rxtx_vec.c