]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: Clean-up page reuse code
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Fri, 14 Nov 2014 00:56:24 +0000 (00:56 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Jan 2015 02:10:17 +0000 (18:10 -0800)
commitd053a46ee11d8f23d6b00dcf4d781a528a0a1a3e
tree3b43b21a39f8b9be84150672f42ce1fdb17ce27c
parent5c39b03f8867f33867a39a511d75a4355ead7657
fm10k: Clean-up page reuse code

This patch cleans up the page reuse code getting it into a state where all
the workarounds needed are in place as well as cleaning up a few minor
oversights such as using __free_pages instead of put_page to drop a locally
allocated page.

It also cleans up how we clear the descriptor status bits.  Previously they
were zeroed as a part of clearing the hdr_addr.  However the hdr_addr is a
64 bit field and 64 bit writes can be a bit more expensive on on 32 bit
systems.  Since we are no longer using the header split feature the upper
32 bits of the address no longer need to be cleared.  As a result we can
just clear the status bits and leave the length and VLAN fields as-is which
should provide more information in debugging.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c