Page MenuHomeFreeBSD

hyperv/hn: Use buf_ring for txdesc list
ClosedPublic

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

Details

Summary

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

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

Event Timeline

sepherosa_gmail.com retitled this revision from to hyperv/hn: Use buf_ring for txdesc list.
sepherosa_gmail.com updated this object.
sepherosa_gmail.com 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.