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
F154385690: D22390.id64499.diff
Tue, Apr 28, 6:38 AM
F154385208: D22390.diff
Tue, Apr 28, 6:34 AM
F154379119: D22390.id64499.diff
Tue, Apr 28, 5:36 AM
Unknown Object (File)
Mon, Apr 27, 10:57 AM
Unknown Object (File)
Sat, Apr 25, 9:06 PM
Unknown Object (File)
Mon, Apr 20, 7:09 AM
Unknown Object (File)
Sun, Apr 19, 11:41 PM
Unknown Object (File)
Sun, Apr 19, 9:28 PM

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

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?