]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 16 Oct 2015 11:28:57 +0000 (04:28 -0700)
commit8b6503590510fd7a8b303feeaf8a45a192e2b8df
treeb1b60e73f4aa0214eb5fde8bf7fe130f5d6650bc
parentc67caceb864cf15731532ab25162166c228fa270
i40e/i40evf: Drop useless "IN_NETPOLL" flag

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>
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