]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv/hn: Recover half of the chimney sending space
authorSepherosa Ziehau <sephe@FreeBSD.org>
Fri, 5 Feb 2016 05:31:31 +0000 (05:31 +0000)
committerSepherosa Ziehau <sephe@FreeBSD.org>
Fri, 5 Feb 2016 05:31:31 +0000 (05:31 +0000)
commit1e4bb37d22ade9698a2e48dd689f471d3a60483e
treef78da2b03ed839abc7b60dad4f622c25ed79e972
parentb256e945495456a72ef69d8e0d87a08abd488947
hyperv/hn: Recover half of the chimney sending space

We lost half of the chimney sending space, because we mis-used
ffs() on a 64 bits mask, where ffsl() should be used.

While I'm here:
- Use system atomic operation instead.
- Stringent chimney sending index assertion.

Reviewed by: adrian
Approved by: adrian (mentor)
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5159
sys/dev/hyperv/netvsc/hv_net_vsc.c