- Move polling disablement, i.e. deregistering all NICs, out of hot code path.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 1 Oct 2007 11:18:44 +0000 (11:18 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 1 Oct 2007 11:18:44 +0000 (11:18 +0000)
commit0eb141f0f456d506435d98d22089c4979c5b3b19
tree45d58a7d59f73895da1f97dac74cbd4afcdb6e74
parente79f335661dca45202301cb3d95824287934a8fd
- Move polling disablement, i.e. deregistering all NICs, out of hot code path.
- When the last NIC is deregistered or polling is disabled, reset all interval
  state.
- Return immediately in netisr_poll/netisr_pollmore if no NIC is registered.
- Add assertion in netisr_poll/netisr_pollmore: it is not possible that polling
  is not enabled but there are registered NIC.
- Comment pollctx structure fields.
sys/kern/kern_poll.c