]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: use pages correctly in Rx
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 14 Jan 2016 00:51:49 +0000 (16:51 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:23 +0000 (08:37 -0800)
commit7d9c57e9df0dee1f7261e894aad8e479971d896c
treef47eaa5281c31aa50f27d702c07937f30d278009
parent042739ae820ed0ba3b7fe80c9c923f84d9cf936a
i40e/i40evf: use pages correctly in Rx

Orabug: 22342532

Refactor the packet split Rx code to properly use half-pages for
receives. The previous code was doing way more mapping and unmapping
than it needed to, and wasn't properly using half-pages.

Increment the page use count each time we give a half-page to an skb,
knowing that the stack will probably process and release the page before
we need it again. Only free and reallocate pages if the count shows that
both half-pages are in use. Add counters to track reallocations and page
reuse.

Change-ID: I534b299196036b64be82b4861a0a4036310a8f22
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit f16704e5e8aed1dfed4084c56dde17006c2e81f1)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.h