[Intel-wired-lan] [next PATCH v5 03/12] igb: Clear Rx buffer_info in configure instead of clean

Brown, Aaron F aaron.f.brown at intel.com
Fri Feb 17 03:26:54 UTC 2017


> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Alexander Duyck
> Sent: Monday, February 6, 2017 6:26 PM
> To: intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T
> <jeffrey.t.kirsher at intel.com>
> Subject: [Intel-wired-lan] [next PATCH v5 03/12] igb: Clear Rx buffer_info in
> configure instead of clean
> 
> From: Alexander Duyck <alexander.h.duyck at intel.com>
> 
> This change makes it so that instead of going through the entire ring on Rx
> cleanup we only go through the region that was designated to be cleaned up
> and stop when we reach the region where new allocations should start.
> 
> In addition we can avoid having to perform a memset on the Rx buffer_info
> structures until we are about to start using the ring again.  By deferring
> this we can avoid dirtying the cache any more than we have to which can
> help to improve the time needed to bring the interface down and then back
> up again in a reset or suspend/resume cycle.
> 
> Signed-off-by: Alexander Duyck <alexander.h.duyck at intel.com>
> ---
>  drivers/net/ethernet/intel/igb/igb_main.c |   24 ++++++++++--------------
>  1 file changed, 10 insertions(+), 14 deletions(-)

Tested-by: Aaron Brown <aaron.f.brown at intel.com>


More information about the Intel-wired-lan mailing list