net/ixgbe: fix received packets number for ARM
authorJianbo Liu <jianbo.liu@linaro.org>
Thu, 9 Feb 2017 04:05:25 +0000 (12:05 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:49 +0000 (12:25 +0100)
commita98212de4ac958f5919a96771287a9617a4e5848
treec0a3873eb385016eab18cd7aa2d7ad207070dcb2
parent9e226650fdc5657b5c94c7d59d515c789010f7b9
net/ixgbe: fix received packets number for ARM

To get better performance, Rx bulk alloc recv function will scan 8 descs
in one time, but the statuses are not consistent on ARM platform because
the memory allocated for Rx descriptors is cacheable hugepages.
This patch is to calculate the number of received packets by scan DD bit
sequentially, and stops when meeting the first packet with DD bit unset.

Fixes: 7431041062b9 ("ixgbe: allow rx bulk alloc")
Cc: stable@dpdk.org
Signed-off-by: Jianbo Liu <jianbo.liu@linaro.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/ixgbe/ixgbe_rxtx.c