Re: [PATCH v3 1/2] net/ixgbe: calculate the correct number of received packets in bulk alloc function
From: Jianbo Liu <hidden>
Date: 2017-02-04 16:39:58
From: Jianbo Liu <hidden>
Date: 2017-02-04 16:39:58
On 5 February 2017 at 00:37, Jianbo Liu [off-list ref] wrote:
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. Signed-off-by: Jianbo Liu <redacted> --- drivers/net/ixgbe/ixgbe_rxtx.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 36f1c02..613890e 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c
There is no change for this patch from v2 to v3. But the other in this patchset, reading desc statuses is changed to be in order, not backward.