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

Vector PMD will check 4 descs in one time, but the statuses are not
consistent because the memory allocated for RX descriptors is cacheable
huagepage.
This patch is to calculate the number of received packets by scann DD bit
sequentially, and stops when meeting the first packet with DD bit unset.

Fixes: b20971b6cca0 ("net/ixgbe: implement vector driver for ARM")
Cc: stable@dpdk.org
Signed-off-by: Jianbo Liu <jianbo.liu@linaro.org>
drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c