]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: NAPI polling routine must return actual work done
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 20 Jun 2016 17:39:32 +0000 (10:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 29 Aug 2016 08:31:03 +0000 (01:31 -0700)
commit73b8b11eefed2c3ee9322abfd47c8a545cd5ad12
tree355097bd988d86b0d330105fb76c1571313f7629
parentac33cc9a7957eb9aa3de9d55a309da92c49a6f6f
fm10k: NAPI polling routine must return actual work done

When fm10k_poll fully cleans rings it returns 0. This is incorrect as it
messes up the budget accounting in the core NAPI code. Fix this by
returning actual work done, capped at budget - 1 since the core doesn't
expect a return of the full budget when the driver modifies the NAPI
status.

Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Venkatesh Srinivas <venkateshs@google.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c