<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/netmap, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-07-09T13:41:19Z</updated>
<entry>
<title>netmap: Don't assume that user-provided strings are nul-terminated</title>
<updated>2026-07-09T13:41:19Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-07-08T17:11:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e1ab35148dd425340a88a2acaf10b972cb119f8f'/>
<id>urn:sha1:e1ab35148dd425340a88a2acaf10b972cb119f8f</id>
<content type='text'>
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>netmap: Drain selinfo sleepers in nm_os_selinfo_uninit()</title>
<updated>2026-05-20T19:34:50Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-05-19T00:09:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4c09834afad02f97f7daeabc3c281784a04880a3'/>
<id>urn:sha1:4c09834afad02f97f7daeabc3c281784a04880a3</id>
<content type='text'>
Approved by:	so
Security:	FreeBSD-SA-26:19.file
Security:	CVE-2026-45251
</content>
</entry>
<entry>
<title>netmap: check for possible out-of-bound write with options</title>
<updated>2026-04-29T21:13:09Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2026-04-29T20:59:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0216ea8598af7d4170a8660f48981fb12b7b1d67'/>
<id>urn:sha1:0216ea8598af7d4170a8660f48981fb12b7b1d67</id>
<content type='text'>
Submitted by:	hari.thirusangu@sophos.com
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>netmap: silence -Wdefault-const-init-field-unsafe warning</title>
<updated>2025-12-16T20:21:45Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2025-12-16T18:09:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2ed21f90906b230476d3f12ff9dce0e2c4642af2'/>
<id>urn:sha1:2ed21f90906b230476d3f12ff9dce0e2c4642af2</id>
<content type='text'>
The netmap_ring struct starts with various const members and rencent
clang warns about leaving them uninitialized. Having them const in the
first place is highly suspicious since they are updated with various
macros but using hand-coded __DECONST(). But fixing that is a more
invasive change that I am unable to test.

```
.../freebsd/sys/dev/netmap/netmap_kloop.c:320:21: error: default initialization of an object of type 'struct netmap_ring' with const member leaves the object uninitialized [-Werror,-Wdefault-const-init-field-unsafe]
  320 |         struct netmap_ring shadow_ring; /* shadow copy of the netmap_ring */
      |                            ^
.../freebsd/sys/net/netmap.h:290:16: note: member 'buf_ofs' declared 'const' here
  290 |         const int64_t   buf_ofs;
      |                         ^
```

Test Plan: Compiles

Reviewed by:	vmaffione, jhb
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D52568
</content>
</entry>
<entry>
<title>netmap: Let memory allocator parameters be settable via loader.conf</title>
<updated>2025-12-14T15:47:48Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-12-14T15:47:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c694122f3cfb7d52b882fa79086d49f45a2c7fd2'/>
<id>urn:sha1:c694122f3cfb7d52b882fa79086d49f45a2c7fd2</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>kqueue: handle copy for netmap filters</title>
<updated>2025-10-18T05:12:36Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-08-23T14:42:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a72e88781ae294aae6b97e1972cb19b2a670412'/>
<id>urn:sha1:7a72e88781ae294aae6b97e1972cb19b2a670412</id>
<content type='text'>
Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:  https://reviews.freebsd.org/D52045
</content>
</entry>
<entry>
<title>netmap: Fix error handling in nm_os_extmem_create()</title>
<updated>2025-10-17T12:55:17Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-10-17T12:55:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dfc1041c08ba32f24b8050b4d635a0bbbfd9b767'/>
<id>urn:sha1:dfc1041c08ba32f24b8050b4d635a0bbbfd9b767</id>
<content type='text'>
We bump the object reference count prior to mapping it into the kernel
map, at which point the vm_map_entry owns the reference.  Then, if
vm_map_wire() fails, vm_map_remove() will release the reference, so we
should avoid decrementing it in the error path.

Reported by:	Ilja van Sprundel &lt;ivansprundel@ioactive.com&gt;
Reviewed by:	vmaffione
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53066
</content>
</entry>
<entry>
<title>vtnet, ptnet: include opt_*.h files early</title>
<updated>2025-08-21T15:18:07Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-08-21T15:18:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3077532b1bb2911d3012ee90bae9d9499c960569'/>
<id>urn:sha1:3077532b1bb2911d3012ee90bae9d9499c960569</id>
<content type='text'>
Include opt_inet.h and opt_inet6.h early in the files including
virtio_net.h, since they use INET and/or INET6.
While there, remove redundant inclusion of sys/types.h, since it is
included already by sys/param.h.

There was a discussion to include opt_inet.h and opt_inet6.h also
in virtio_net.h. glebius suggested to add a mechanism for files
to check, if required opt_*.h files were included. virtio_net.h
will be the first consumer of this mechanism.

Reviewed by:		glebius, Peter Lei
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52046
</content>
</entry>
<entry>
<title>netmap: Add a cdev_pg_path hook that returns the name of the cdev</title>
<updated>2025-03-27T20:45:06Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-03-27T20:45:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7a5b9c4abcf24856b0a9bd2517373ada261ef943'/>
<id>urn:sha1:7a5b9c4abcf24856b0a9bd2517373ada261ef943</id>
<content type='text'>
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D49337
</content>
</entry>
<entry>
<title>kern: Make fileops and filterops tables const where possible</title>
<updated>2024-11-26T21:04:21Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-11-25T22:39:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ef9ffb8594eee294334ced627755bf5b46b48f9f'/>
<id>urn:sha1:ef9ffb8594eee294334ced627755bf5b46b48f9f</id>
<content type='text'>
No functional change intended.

MFC after:	1 week
</content>
</entry>
</feed>
