]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: Drop useless "IN_NETPOLL" flag
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 24 Sep 2015 16:04:32 +0000 (09:04 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:47 +0000 (08:32 -0800)
commite80f1ad00512f915a040489461b4c34a82c64b6c
tree51107ce9a5914832444a31d7f30cb512b100f02d
parentafc9b0abbf3c65f70980de334323f314b47adff1
i40e/i40evf: Drop useless "IN_NETPOLL" flag

Orabug: 22342532

The code in i40e and i40evf is using an "IN_NETPOLL" flag that has never
added any value due to the fact that the Rx clean-up is handled in NAPI.
As such the flag was set, the queue was scheduled via NAPI, and then polled
from the netpoll controller and if any Rx packets were processed the were
processed in the wrong context.

In addition the flag itself just added an unneeded conditional to the
hot-path so it can safely be dropped and save us a few instructions.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 8b6503590510fd7a8b303feeaf8a45a192e2b8df)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40evf.h