summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2017-03-07 01:29:53 +0000
committerdlg <dlg@openbsd.org>2017-03-07 01:29:53 +0000
commit32290fe61df6b9e28098b8ebc4a6e3b8e8b5333e (patch)
tree3a3658f0fc696c029dbb8b9bee125b8e84cb5b45 /sys/kern/uipc_socket.c
parentUse an unsigned loop variable to avoid a comparison between signed (diff)
downloadwireguard-openbsd-32290fe61df6b9e28098b8ebc4a6e3b8e8b5333e.tar.xz
wireguard-openbsd-32290fe61df6b9e28098b8ebc4a6e3b8e8b5333e.zip
deprecate ifq_enqueue_try, and let backends drop arbitrary mbufs.
mikeb@ wants priq to be able to drop lower priority packets if the current one is high. because ifq avoids freeing an mbuf while an ifq mutex is held, he needs a way for a backend to return an arbitrary mbuf to drop rather than signal that the current one needs to be dropped. this lets the backends return the mbuf to be dropped, which may or may not be the current one. to support this ifq_enqueue_try has to be dropped because it can only signal about the current mbuf. nothing uses it (except ifq_enqueue), so we can get rid of it. it wasnt even documented. this diff includes some tweaks by mikeb@ around the statistics gathered in ifq_enqueue when an mbuf is dropped.
Diffstat (limited to 'sys/kern/uipc_socket.c')
0 files changed, 0 insertions, 0 deletions