aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2017-11-09 11:37:20 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2017-11-09 11:37:20 +0000
commitca61e2d994c3b6aa60cf067da743afec94e12597 (patch)
tree57a95e78e6dc429ad851294452f2f0e54047965a
parent6371f456375e6a1dcaf0b4046e2ad661378f9520 (diff)
downloadsrc-ca61e2d994c3b6aa60cf067da743afec94e12597.tar.gz
src-ca61e2d994c3b6aa60cf067da743afec94e12597.zip
Update ena-com HAL to newest versionvendor/ena-com/1.1.4.4
The newest ena-com HAL update adds dynamically controlled logging level functionality. Obtained from: Amazon, Inc.
Notes
Notes: svn path=/vendor-sys/ena-com/dist/; revision=325572 svn path=/vendor-sys/ena-com/1.1.4.4/; revision=325573; tag=vendor/ena-com/1.1.4.4
-rw-r--r--ena_plat.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/ena_plat.h b/ena_plat.h
index 199427013dd9..3ac94f57cdeb 100644
--- a/ena_plat.h
+++ b/ena_plat.h
@@ -104,14 +104,11 @@ extern struct ena_bus_space ebs;
#define ENA_IOQ (1 << 7) /* Detailed info about IO queues. */
#define ENA_ADMQ (1 << 8) /* Detailed info about admin queue. */
-#ifndef ENA_DEBUG_LEVEL
-#define ENA_DEBUG_LEVEL (ENA_ALERT | ENA_WARNING)
-#endif
+extern int ena_log_level;
-#ifdef ENA_TRACE
#define ena_trace_raw(level, fmt, args...) \
do { \
- if (((level) & ENA_DEBUG_LEVEL) != (level)) \
+ if (((level) & ena_log_level) != (level)) \
break; \
printf(fmt, ##args); \
} while (0)
@@ -120,10 +117,6 @@ extern struct ena_bus_space ebs;
ena_trace_raw(level, "%s() [TID:%d]: " \
fmt " \n", __func__, curthread->td_tid, ##args)
-#else /* ENA_TRACE */
-#define ena_trace_raw(...)
-#define ena_trace(...)
-#endif /* ENA_TRACE */
#define ena_trc_dbg(format, arg...) ena_trace(ENA_DBG, format, ##arg)
#define ena_trc_info(format, arg...) ena_trace(ENA_INFO, format, ##arg)