HomeFreeBSD

hyperv/hn: Use buf_ring for txdesc list

Description

hyperv/hn: Use buf_ring for txdesc list

So one spinlock is avoided, which would be potentially dangerous for
virtual machine, if the spinlock holder was scheduled out by the host,
as noted by royger.

Old spinlock based txdesc list is still kept around, so we could have
a safe fallback.

No performance regression nor improvement is observed.

Reviewed by: adrian
Approved by: adrian (mentor)
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5290

Details

Provenance
sepheAuthored on
Reviewer
adrian
Differential Revision
D5290: hyperv/hn: Use buf_ring for txdesc list
Parents
rS295747: hyperv/hn: Split TX ring data structure out of softc
Branches
Unknown
Tags
Unknown