ixgbe: fix vector receive of chained mbuf
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 6 Feb 2015 13:41:08 +0000 (13:41 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 10:58:07 +0000 (11:58 +0100)
commit51d4554896302704f92d7a3b8ecceacfc4816e1d
tree38529ab138293d6d2d89a275cfd29bb9ba6b6d19
parent3658eb95fe65bf42bdfb80b0a7ecd1e4d484bf5f
ixgbe: fix vector receive of chained mbuf

When the vector pmd was receiving a mix of packets of various sizes,
some of which were split across multiple mbufs, there was an issue
with reassembly of the jumbo frames. This was due to a skipped increment
when using "continue" in a while loop. Changing the loop to a "for"
loop fixes this problem, by ensuring the increment is always performed.

Reported-by: Prashant Upadhyaya <praupadhyaya@gmail.com>
Reported-by: Martin Weiser <martin.weiser@allegro-packets.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Martin Weiser <martin.weiser@allegro-packets.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c