ixgbe: fix array overflow in vector Rx
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Dec 2014 16:30:23 +0000 (16:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 23:40:37 +0000 (00:40 +0100)
commit199e6b913ed1500476c1ac79d4437a6b6600ea30
tree697d7f0902a995dd4f337f855e5da4c32da7e309
parent0d6e2d783d164503e75e57b7358dc3c5c09e0bf1
ixgbe: fix array overflow in vector Rx

Switch the order of the conditions in a while loop, so we check the
range of "i" against the max, before using it to index into the array.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c