]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Clear Rx buffer_info in configure instead of clean
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 7 Feb 2017 02:25:50 +0000 (18:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Mar 2017 19:11:44 +0000 (12:11 -0700)
commitc9826789a26c4cc70528a2189f83d33e81305fef
treeef6ec3767553e886f4e8144aa3238bbecff2eca4
parent632b51aa7a691df2b67dc6f9efba967b0c3266a0
igb: Clear Rx buffer_info in configure instead of clean

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@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c