Page MenuHomeFreeBSD

netmap: Check if we already ran mmap before we attempt it
ClosedPublic

Authored by nc on Nov 15 2019, 7:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 29, 12:49 AM
Unknown Object (File)
Sun, Jul 26, 12:07 AM
Unknown Object (File)
Tue, Jul 21, 3:30 AM
Unknown Object (File)
Sun, Jul 19, 6:15 PM
Unknown Object (File)
Sat, Jul 18, 12:53 PM
Unknown Object (File)
Jun 25 2026, 12:22 PM
Unknown Object (File)
Jun 25 2026, 6:53 AM
Unknown Object (File)
Jun 21 2026, 1:47 PM

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

head/sys/net/netmap_user.h
985

I would just return here. If done_mmap == 1, it means that somebody already went through the initializations a the end of this function.

1003

This can go away (see above).

Completely makes sense. New diff incorporates your recommended changes.

Just one question: did this change come from some usage scenario? In theory you should not call nm_mmap() more than once.

This revision is now accepted and ready to land.Nov 18 2019, 8:32 PM

I was just grepping through the source tree for TODO occurrences and make patches from them.

Also, how long would it take for the patch to land in HEAD?