fm10k: fix maximum queue number for VF
authorChen Jing D(Mark) <jing.d.chen@intel.com>
Fri, 12 Jun 2015 07:06:29 +0000 (15:06 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 22 Jun 2015 15:27:58 +0000 (17:27 +0200)
commit829db9e1818ef88cc276d69f2942c48fce394369
tree698b4a822f1ad5aa58d7a1b15fc74afa76eafb91
parent87afbbc7cacf122141ebfa090e15c00a6a8823a6
fm10k: fix maximum queue number for VF

Both PF and VF shared code in function fm10k_stats_get().
The function works well with PF, but has problem with VF since
VF has less queues than PF.

Fixes: a6061d9e7075 ("fm10k: register PF driver")

Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
drivers/net/fm10k/fm10k_ethdev.c