opnsense-src/sys/dev/netmap
Mark Johnston 8c06422f28 netmap: Let memory allocator parameters be settable via loader.conf
This is useful when dev.netmap.port_numa_affinity is set to 1.  When
interfaces attach, they get a memory allocator that is copied from
nm_mem.  Parameters in nm_mem can be set using sysctls, but this happens
after their values are copied.

To work around this, we can make it possible to set these memory
parameters as tunables.

Reviewed by:	vmaffione
MFC after:	1 week
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54178

(cherry picked from commit c694122f3cfb7d52b882fa79086d49f45a2c7fd2)
2026-01-10 08:57:40 +01:00
..
if_ptnet.c vtnet, ptnet: include opt_*.h files early 2025-09-08 10:25:23 +02:00
if_re_netmap.h sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
if_vtnet_netmap.h sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
netmap.c netmap: Make memory pools NUMA-aware 2024-10-28 16:39:50 +00:00
netmap_bdg.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netmap_bdg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
netmap_freebsd.c netmap: Fix error handling in nm_os_extmem_create() 2025-12-17 08:01:57 +01:00
netmap_generic.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netmap_kern.h netmap: Make memory pools NUMA-aware 2024-10-28 16:39:50 +00:00
netmap_kloop.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
netmap_legacy.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
netmap_mbq.c sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
netmap_mbq.h sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
netmap_mem2.c netmap: Let memory allocator parameters be settable via loader.conf 2026-01-10 08:57:40 +01:00
netmap_mem2.h netmap: Make memory pools NUMA-aware 2024-10-28 16:39:50 +00:00
netmap_monitor.c sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
netmap_null.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
netmap_offloadings.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
netmap_pipe.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
netmap_vale.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00