ixgbe: fix buffer overrun in non-bulk alloc mode
authorPawel Wodkowski <pawelx.wdkowski@intel.com>
Thu, 19 Mar 2015 16:09:16 +0000 (17:09 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Mar 2015 21:42:51 +0000 (22:42 +0100)
commit6cb0bf33838aa15f8eaf6dbde522f10355629603
tree8d7331b6b83be41eb5654dea184f8e3877b636f3
parent79586d502a14eb3aeca96096a3f064365792d167
ixgbe: fix buffer overrun in non-bulk alloc mode

When bulk alloc is enabled at compile time but preconditions for
it are not met at runtime the ixgbe_reset_rx_queue() function
overrides rxq->sw_ring not allocated elements.

Fixes: 01fa1d6215fa ("ixgbe: unify Rx setup")

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx.c