diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-08-03 15:08:07 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-08-03 15:08:07 +0000 |
commit | d5e8a41ffadecb1b1e004f7d6eebfbd63371238a (patch) | |
tree | f13b51f2437db8d31fe790335f22b39a390e6b57 /sbin/restore | |
parent | 0b31645cb70567309e5f7e97786d8813e1e1b35e (diff) |
Remove the periodic timer and do rescheduling during Rx completion
This change adds a check into the Rx ring completion routine that
schedules an interrupt task to be executed immediately after if
consumer index has already advanced itself. The benefit of doing
this compared to an additional loop after replenishing the ring
(as done in FreeBSD for example) is that first of all this goes
through the loop in the taskqueue thread with a yeild check to
prevent CPU hogging and second is that it triggers Tx completion
as well since interrupt handler runs both.
Diffstat (limited to 'sbin/restore')
0 files changed, 0 insertions, 0 deletions