Page MenuHomeFreeBSD

if_awg: mark the first tx descriptor as ready only after all the other tx descriptors are set up
ClosedPublic

Authored by guyyur_gmail.com on Nov 10 2017, 4:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 2:05 PM
Unknown Object (File)
Tue, Apr 16, 2:06 AM
Unknown Object (File)
Mon, Apr 15, 1:23 AM
Unknown Object (File)
Mar 16 2024, 7:27 AM
Unknown Object (File)
Mar 3 2024, 10:22 AM
Unknown Object (File)
Jan 29 2024, 10:50 PM
Unknown Object (File)
Dec 20 2023, 2:10 AM
Unknown Object (File)
Dec 13 2023, 4:22 PM
Subscribers

Details

Summary

In a multi segment frame, if the first tx descriptor is marked with TX_DESC_CTL
but not all tx descriptors for the other segments in the frame are set up,
the TX DMA may transmit an incomplete frame.
To prevent this, set TX_DESC_CTL for the first tx descriptor only when done
with all the other segments.

Also, don't bother cleaning transmitted tx descriptors since TX_DESC_CTL
is cleared for them by the hardware and they will be reprogrammed before
TX_DESC_CTL is reenabled for them.

Diff Detail

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