]> Git Repo - linux.git/commit
net: busy-poll: return busypolling status to drivers
authorEric Dumazet <[email protected]>
Tue, 15 Nov 2016 18:15:13 +0000 (10:15 -0800)
committerDavid S. Miller <[email protected]>
Wed, 16 Nov 2016 18:40:58 +0000 (13:40 -0500)
commit364b6055738b4c752c30ccaaf25c624e69d76195
tree4992c104a968cc42db4e45151426388845903ad3
parent21cb84c48ca0619181106f0f44f3802a989de024
net: busy-poll: return busypolling status to drivers

NAPI drivers use napi_complete_done() or napi_complete() when
they drained RX ring and right before re-enabling device interrupts.

In busy polling, we can avoid interrupts being delivered since
we are polling RX ring in a controlled loop.

Drivers can chose to use napi_complete_done() return value
to reduce interrupts overhead while busy polling is active.

This is optional, legacy drivers should work fine even
if not updated.

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Cc: Adam Belay <[email protected]>
Cc: Tariq Toukan <[email protected]>
Cc: Yuval Mintz <[email protected]>
Cc: Ariel Elior <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/netdevice.h
net/core/dev.c
This page took 0.054574 seconds and 4 git commands to generate.