[Intel-wired-lan] [PATCH 3/9] ixgbevf: use length to determine if descriptor is done

Singh, Krishneil K krishneil.k.singh at intel.com
Thu Jan 4 15:44:48 UTC 2018



> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf
> Of Emil Tantilov
> Sent: Monday, December 11, 2017 10:37 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 3/9] ixgbevf: use length to determine if
> descriptor is done
> 
> Based on:
> commit 7ec0116c9131 ("igb: Use length to determine if descriptor is done")
> 
> This change makes it so that we use the length of the packet instead of the
> DD status bit to determine if a new descriptor is ready to be processed.
> The obvious advantage is that it cuts down on reads as we don't really even
> need the DD bit if going from a 0 to a non-zero value on size is enough to
> inform us that the packet has been completed.
> 
> In addition we only reset the Rx descriptor length for descriptor zero when
> resetting a ring instead of having to do a memset with 0 over the entire
> ring. By doing this we can save some time on initialization.
> 
> Signed-off-by: Emil Tantilov <emil.s.tantilov at intel.com>
> ---

Tested-by: Krishneil Singh <krishneil.k.singh at intel.com>



More information about the Intel-wired-lan mailing list