freebsd-dev/sys/dev/netmap
Vincenzo Maffione 45100257c6 netmap: don't schedule kqueue notify task when kqueue is not used
This change adds a counter (kqueue_users) to keep track of how many
kqueue users are referencing a given struct nm_selinfo.
In this way, nm_os_selwakeup() can schedule the kevent notification
task only when kqueue is actually being used.
This is important to avoid wasting CPU in the common case where
kqueue is not used.

Reviewed by:	Aleksandr Fedorov <aleksandr.fedorov@itglobal.com>
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D19177
2019-02-18 14:21:41 +00:00
..
if_ptnet.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
if_re_netmap.h netmap: align codebase to the current upstream (commit id 3fb001303718146) 2018-04-12 07:20:50 +00:00
if_vtnet_netmap.h netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_bdg.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_bdg.h netmap: align codebase to the current upstream (760279cfb2730a585) 2018-12-05 11:57:16 +00:00
netmap_freebsd.c netmap: don't schedule kqueue notify task when kqueue is not used 2019-02-18 14:21:41 +00:00
netmap_generic.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_kern.h netmap: don't schedule kqueue notify task when kqueue is not used 2019-02-18 14:21:41 +00:00
netmap_kloop.c netmap: upgrade sync-kloop support 2019-02-02 22:39:29 +00:00
netmap_legacy.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_mbq.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
netmap_mbq.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
netmap_mem2.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_mem2.h netmap: align codebase to the current upstream (760279cfb2730a585) 2018-12-05 11:57:16 +00:00
netmap_monitor.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_null.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_offloadings.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_pipe.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_pt.c netmap: pull fix for 32-bit support from upstream 2018-05-18 03:38:17 +00:00
netmap_vale.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap.c netmap: revert netmap_attach_ext() to pre-r343772 2019-02-07 11:28:53 +00:00