Merge ena-com 1.1.4.2

Update ENA HAL after fixing gcc build in r321861.

Submitted by: rlibby
Reviewed by: cognet (mentor)
Approved by: cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D11480
This commit is contained in:
mw 2017-08-01 11:00:04 +00:00
parent 61a9e101c9
commit 4a43503667

View File

@ -139,21 +139,12 @@ extern struct ena_bus_space ebs;
#define MAX_ERRNO 4095
#define IS_ERR_VALUE(x) unlikely((x) <= (unsigned long)MAX_ERRNO)
#define WARN_ON(condition) \
do { \
int __ret_warn_on = !!(condition); \
if (unlikely(__ret_warn_on)) \
printf("%s %s", __FUNCTION__, __FILE__); \
unlikely(__ret_warn_on); \
} while (0)
#define ENA_ASSERT(cond, format, arg...) \
do { \
if (unlikely(!(cond))) { \
ena_trc_err( \
"Assert failed on %s:%s:%d:" format, \
__FILE__, __func__, __LINE__, ##arg); \
WARN_ON(cond); \
} \
} while (0)