summaryrefslogtreecommitdiff
path: root/usr.bin/tic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2024-08-21 00:56:59 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2024-08-21 00:56:59 +0000
commit8ddfb1d70123b25e9ef2c69935b897635d237cbd (patch)
tree18b6fcf3f240e031da47a19f2294aa02fafecfd7 /usr.bin/tic
parentcbbaf640930e293c05eb6f6921efbc899ef0befa (diff)
be more careful about bus_dmamap_syncs for rx ring descriptors.
this is very similar to the changes made for tx where we fill in everything except the OWN flag on the rx descriptor, call bus_dmamap_sync as a barrier for the hw, and then flip the ownership of the OWN bit. this avoids the potential for the hw to see the own bit before other things in the descriptor, such as the address and length of the buffer. while here, trim code that's not currently used. we don't currently support rxing one packet by assembling buffers from multiple descriptors, so stop fiddling with the queue mbuf head and tail pointers. delete rge_discard_rxbuf() cos it looks like a leftover from code which tries to reuse mbufs on the rx ring. we free mbufs when there's an error and let the rxr stuff refill. ok patrick@ no objections from kevlo@
Diffstat (limited to 'usr.bin/tic')
0 files changed, 0 insertions, 0 deletions