Page MenuHomeFreeBSD

hyperv/hn: Use buf_ring for txdesc list

Authored by on Feb 16 2016, 5:33 AM.



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 or improvement is observed.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline retitled this revision from to hyperv/hn: Use buf_ring for txdesc list. updated this object. edited the test plan for this revision. (Show Details)
adrian accepted this revision.Feb 17 2016, 7:16 PM
adrian edited edge metadata.
This revision is now accepted and ready to land.Feb 17 2016, 7:16 PM
This revision was automatically updated to reflect the committed changes.