[Intel-wired-lan] [PATCH 1/2] fm10k: napi polling routine must return actual work done
Singh, Krishneil K
krishneil.k.singh at intel.com
Tue Aug 30 16:15:13 UTC 2016
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Jacob Keller
Sent: Monday, June 20, 2016 10:40 AM
To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
Cc: Paolo Abeni <pabeni at redhat.com>; Alexander Duyck <aduyck at mirantis.com>; Venkatesh Srinivas <venkateshs at google.com>
Subject: [Intel-wired-lan] [PATCH 1/2] 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.
Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
Cc: Paolo Abeni <pabeni at redhat.com>
Cc: Venkatesh Srinivas <venkateshs at google.com>
Cc: Alexander Duyck <aduyck at mirantis.com>
---
Tested-by: Krishneil Singh <Krishneil.k.singh at intel.com>
More information about the Intel-wired-lan
mailing list