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)
Dec 20 2023, 4:14 AM
Unknown Object (File)
Nov 8 2023, 2:10 AM
Unknown Object (File)
Nov 5 2023, 1:29 AM
Unknown Object (File)
Oct 7 2023, 1:06 AM
Unknown Object (File)
Oct 4 2023, 1:31 AM
Unknown Object (File)
Sep 30 2023, 1:29 AM
Unknown Object (File)
May 9 2023, 3:06 AM
Unknown Object (File)
Mar 4 2023, 12:28 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