]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: avoid atomics
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 15 Jan 2016 22:33:15 +0000 (14:33 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:29 +0000 (08:37 -0800)
commitdd472c4b476314fdea24b5bea5b107d4417153f5
treef4763f6faf9f870799006770bfe421d7ff918389
parente0019933d7e7ba81c64aeb124ff483651b327c7b
i40e/i40evf: avoid atomics

Orabug: 22342532

In the case where we have a page fully used by receive data, we need to
release the page fully to the stack. Instead of calling get_page (which
increments the page count) followed by free_page (which decrements the
page count), just donate our reference to the stack. Although this
donation is not tax deductible, it does allow us to avoid two very
expensive atomic operations that reverse each other.

Change-ID: If70739792d5748995fc175ec92ac2171ed4ad8fc
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 16fd08b85962f6288fe1191856aa98cb0d40aa30)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c