]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Apply fixes in ena-com
authorMarcin Wojtas <mw@FreeBSD.org>
Thu, 10 May 2018 09:25:51 +0000 (09:25 +0000)
committerMarcin Wojtas <mw@FreeBSD.org>
Thu, 10 May 2018 09:25:51 +0000 (09:25 +0000)
commit6461d6a396e1aff4b306593229cf136a52c3ced1
tree5b1c18367246be3278988ceb7dd828866d76af8e
parentfbb0ed71b2191a485e33bd3002d17ba911332a00
parent5fa38c5c6ede652e7cc2497140ef2538648bdd48
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