Page MenuHomeFreeBSD

Add IFCAP_NOMAP to iflib
AcceptedPublic

Authored by gallatin on Sep 26 2019, 12:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 6:49 AM
Unknown Object (File)
Sep 14 2025, 3:37 PM
Unknown Object (File)
Aug 18 2025, 11:57 PM
Unknown Object (File)
Jul 20 2025, 12:42 PM
Unknown Object (File)
Jul 7 2025, 1:00 PM
Unknown Object (File)
Jul 5 2025, 9:46 PM
Unknown Object (File)
Jul 4 2025, 7:39 PM
Unknown Object (File)
Jul 4 2025, 5:10 AM
Subscribers

Details

Reviewers
shurd
erj
marius
jhb
Group Reviewers
iflib
Summary

IFCAP_NOMAP indicates that a driver is well behaved with respect to unmapped mbufs. This means that the driver not doing anything grotty with the contents of non-header mbufs on transmit. Specifically, it indicates that the driver is not doing something like calling mtod() and memcpy()'ing packets, and that the driver is using busdma (or sglist) to manage dma, rather than calling pmap_kextract(). Given that iflib fits this definition, and given that it does not pass raw mbufs to drivers, then we should allow it to skip the mb_unmapped_to_ext()

Note that unmapped mbufs have been well tested with iflib when using the ix and ixl drivers.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 26705