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)
Tue, Dec 10, 11:30 PM
Unknown Object (File)
Wed, Dec 4, 12:07 AM
Unknown Object (File)
Wed, Dec 4, 12:07 AM
Unknown Object (File)
Wed, Dec 4, 12:07 AM
Unknown Object (File)
Wed, Dec 4, 12:07 AM
Unknown Object (File)
Tue, Dec 3, 11:45 PM
Unknown Object (File)
Nov 29 2024, 8:10 PM
Unknown Object (File)
Nov 29 2024, 5:58 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.