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
F168407831: D12538.id35045.diff
Fri, Aug 28, 2:45 AM
F168401534: D12538.id35045.diff
Fri, Aug 28, 1:40 AM
F168392597: D12538.id35435.diff
Thu, Aug 27, 11:47 PM
Unknown Object (File)
Thu, Aug 27, 12:43 AM
Unknown Object (File)
Wed, Aug 26, 8:52 AM
Unknown Object (File)
Mon, Aug 24, 4:29 AM
Unknown Object (File)
Sat, Aug 22, 9:21 AM
Unknown Object (File)
Wed, Aug 19, 7:52 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.