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, Nov 13, 4:01 AM
Unknown Object (File)
Fri, Nov 8, 1:44 PM
Unknown Object (File)
Fri, Nov 1, 3:11 PM
Unknown Object (File)
Oct 18 2024, 1:18 PM
Unknown Object (File)
Oct 16 2024, 1:39 PM
Unknown Object (File)
Sep 27 2024, 12:29 PM
Unknown Object (File)
Sep 20 2024, 9:47 AM
Unknown Object (File)
Sep 18 2024, 5:41 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 Skipped
Unit
Tests Skipped

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.