opnsense-src/sys/dev/netmap
Vincenzo Maffione 09a1893398 netmap: fix refcount bug in netmap allocator
Symptom: when a single extmem memory region is provided to netmap
multiple times, for multiple interfaces, the memory region is
never released by netmap once all the existing file descriptors
are closed.

Fix the relevant condition in netmap_mem_drop(): release the memory
when the last user of netmap_adapter is gone, rather then when
the last user of netmap_mem_d is gone.

MFC after:	2 weeks
2022-03-06 16:39:16 +00:00
..
if_ptnet.c Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that process 2020-02-11 18:57:07 +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: vtnet: remove unused variable 2021-04-09 19:33:41 +00:00
netmap.c netmap: fix refcount bug in netmap allocator 2022-03-06 16:39:16 +00:00
netmap_bdg.c netmap: several typo fixes 2021-04-02 07:01:20 +00:00
netmap_bdg.h netmap: add kernel support for the "offsets" feature 2021-03-29 16:29:01 +00:00
netmap_freebsd.c netmap: several typo fixes 2021-04-02 07:01:20 +00:00
netmap_generic.c netmap: several typo fixes 2021-04-02 07:01:20 +00:00
netmap_kern.h netmap: import changes from upstream 2021-08-22 09:31:05 +00:00
netmap_kloop.c netmap: several typo fixes 2021-04-02 07:01:20 +00:00
netmap_legacy.c netmap: fix parsing of legacy nmr->nr_ringid 2020-08-18 08:03:28 +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: fix refcount bug in netmap allocator 2022-03-06 16:39:16 +00:00
netmap_mem2.h netmap: several typo fixes 2021-04-02 07:01:20 +00:00
netmap_monitor.c netmap: monitor: support offsets in copy mode 2021-09-26 13:52:16 +00:00
netmap_null.c netmap: add kernel support for the "offsets" feature 2021-03-29 16:29:01 +00:00
netmap_offloadings.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_pipe.c netmap: add kernel support for the "offsets" feature 2021-03-29 16:29:01 +00:00
netmap_vale.c netmap: several typo fixes 2021-04-02 07:01:20 +00:00