]> git.baikalelectronics.ru Git - kernel.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)
commit35052d749f195f429d7ebf945e4c38b21eeeda7d
treeb1b60e73f4aa0214eb5fde8bf7fe130f5d6650bc
parent1fb151f75933b132b8ea42601c0ddd6db7957544
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