All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] Tuning the napi_poll function.
@ 2017-09-07 14:56 Kushal Gautam
  2017-09-07 15:52 ` Duyck, Alexander H
  0 siblings, 1 reply; 6+ messages in thread
From: Kushal Gautam @ 2017-09-07 14:56 UTC (permalink / raw)
  To: intel-wired-lan

I have gone through multiple posts (in and outside Stackoverflow) regarding
this topic. Currently, I am working on to modify the i40e-2.0.30 driver for
Intel X710 NIC.

My query is particularly concerned with the NAPI Poll mechanism. I
understand that napi_poll function is triggered when a packet arrives, and
if the amount of work done while receiving the packets exceeds the
allocated budget, NAPI Polling continues; else polling stops.

Based on this information, I modified my driver to keep polling if a
particular signature of data arrives on a particular queue ( using flow
director), e.g. UDP Packets on Port XXX for 10,000 poll cycles. But, I am
trying to eliminate the possibility of interrupts as much as possible.

Thus, here is my main question. Will I be able to schedule the NAPI poll to
be executed at a certain point in time ? Like, I want NAPI poll to be
executed every 500 ms and may be last for 20ms. For instance, I will be
expecting my packet at time *T ms*, while I might start the polling at
time *(T-10)
ms* and stop polling at *(T + 10) ms*. This may, I might be able to reduce
the usage of interrupts. Right now, I have been resetting the interrupts
every 10,000 poll cycles.

Any explanation or reference on this would be really helpful.


Regards,
Kushal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20170907/8698f32f/attachment.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-12 16:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-07 14:56 [Intel-wired-lan] Tuning the napi_poll function Kushal Gautam
2017-09-07 15:52 ` Duyck, Alexander H
2017-09-10 18:07   ` Kushal Gautam
2017-09-10 18:09     ` Kushal Gautam
2017-09-11 15:51     ` Alexander Duyck
2017-09-12 16:11       ` Kushal Gautam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.