summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ichreg.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-10-26 23:01:34 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-10-26 23:01:34 +0000
commitd1e7983d035ff489de69556cd484fe089acf7e4b (patch)
treeae984bee3f45ac9ba14a821a4ae9230de1d24747 /sys/dev/pci/ichreg.h
parent00d2d25764dcd4eb1fbe19182d6bf34c546fe306 (diff)
avoid rxr races between rxfill from the interrupt and timeout paths
vmx "hardware" seems to be able to use rx descriptors as soon as theyre filled in, which means filling the ring from a timeout can run conccurently with an isr that's pulling stuff off the ring. this is mostly a problem with the rxr accounting, so we serialise updates to the alive counter by running rxfill in a mutex. most of the investigation was done by claudio@ and mathieu@ an earlier version of this diff was tested hard by mathieu@ and was ok@ claudio
Diffstat (limited to 'sys/dev/pci/ichreg.h')
0 files changed, 0 insertions, 0 deletions