Page MenuHomeFreeBSD

if_awg: avoid hole in the rx ring buffer when mbuf allocation fails
ClosedPublic

Authored by guyyur_gmail.com on Sep 28 2017, 6:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 4:29 AM
Unknown Object (File)
Fri, May 3, 1:09 AM
Unknown Object (File)
Tue, Apr 30, 7:44 AM
Unknown Object (File)
Tue, Apr 30, 7:44 AM
Unknown Object (File)
Tue, Apr 30, 7:44 AM
Unknown Object (File)
Tue, Apr 30, 7:07 AM
Unknown Object (File)
Fri, Apr 26, 9:03 PM
Unknown Object (File)
Apr 9 2024, 8:44 PM
Subscribers

Details

Summary

Use a spare dma map when attempting to map a new mbuf on the rx path.
If the mbuf allocation fails or the dma map loading for the new mbuf fails just reuse the old mbuf
and increase the drop counter.

Diff Detail

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

Event Timeline

guyyur_gmail.com retitled this revision from if_awg rx path changes to avoid hole in the ring buffer to if_awg: avoid hole in the rx ring buffer when mbuf allocation fails.
guyyur_gmail.com added a reviewer: jmcneill.
guyyur_gmail.com set the repository for this revision to rS FreeBSD src repository - subversion.
This revision is now accepted and ready to land.Nov 18 2017, 9:07 PM
This revision was automatically updated to reflect the committed changes.