]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Apply fixes in ena-com
authormw <mw@FreeBSD.org>
Thu, 10 May 2018 09:25:51 +0000 (09:25 +0000)
committermw <mw@FreeBSD.org>
Thu, 10 May 2018 09:25:51 +0000 (09:25 +0000)
commit18c1d537254f375055df4eaae6f11f685bbd364c
tree5b1c18367246be3278988ceb7dd828866d76af8e
parent196546a6e65941065d19c1e728c5c6a5509ba184
Apply fixes in ena-com

* Change ena-com BIT macro to work on unsigned value.
  To make the shifting operations safer, they should be working on
  unsigned values.

* Fix a mutex not owned ASSERT panic in ENA control path.
  A thread calling cv_broadcast()/cv_signal() must hold the mutex used for
  cv_wait(). Fix the ENA control path code that has this problem.

Submitted by:   Krishna Yenduri <kyenduri@brkt.com>
Reviewed by:    Michal Krawczyk <mk@semihalf.com>
Tested by:      Michal Krawczyk <mk@semihalf.com>
sys/contrib/ena-com/ena_plat.h