CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2021/01/02 00:25:42
Modified files:
sys/net : bpf.c
Log message:
optimise bpf_catchpacket and bpf_wakeup.
bpf_catchpacket had a chunk to deal with reader timeouts, but that
has largely been moved to bpfread. the vestigal code that was left
still tried to wake up a reader when a buffer got full, but there
already is a chunk of code that wakes up readers when the buffer
gets full.
bpf_wakeup now checks for readers before calling wakeup directly,
rather than pushing the wakeup to a task and calling it unconditionally.
the task_add is now only done when the bpfdesc actually has something
that needs it.
ok visa@