git: e0d2e3c06856 - Create tag vendor/ena-com/2.4.0
Marcin Wojtas
mw at FreeBSD.org
Thu Jun 24 14:34:54 UTC 2021
The annotated tag vendor/ena-com/2.4.0 has been created by mw:
URL: https://cgit.FreeBSD.org/src/tag/?h=vendor/ena-com/2.4.0
tag vendor/ena-com/2.4.0
Tagger: Marcin Wojtas <mw at FreeBSD.org>
TaggerDate: 2021-06-24 13:53:41 +0000
Upgrade ENA HAL to v2.4.0
Sponsored by: Amazon, Inc.
commit 1f4f67f52424ac53d07ff524af9762fdf2e2b210
Author: Marcin Wojtas <mw at FreeBSD.org>
AuthorDate: 2021-06-24 13:48:26 +0000
Commit: Marcin Wojtas <mw at FreeBSD.org>
CommitDate: 2021-06-24 13:48:26 +0000
ena-com: restructure the ENA logging system
Introduce a new logging system, which replaces the old logging method.
All logs are now displayed in `device_printf` format, requiring
`adapter->pdev` to be passed down to `ena_log`. Whenever that's
impossible, a `printf` wrapped `ena_log_raw` is provided.
For netmap logs, `ena_log_nm` is available, prepending "[nm] " to
an `ena_log` formatted message.
Tx/Rx data path logs are now printed via `ena_log_io`. This allows them
to be conditionally compiled out, depending on the presence of
ENA_LOG_IO_ENABLE compilation flag. By default this flag is disabled.
All `ena_trc_*` ena_com level messages are now also wrapped around
`ena_log` and require `ena_dev->dmadev` to be present.
There are four log levels:
* 0 - ENA_ERR - enable driver error messages and ena_com error logs,
* 1 - ENA_WARN - enable logs for non-critical errors,
* 2 - ENA_INFO - make the driver more verbose about its actions,
* 3 - ENA_DBG - enable debug logs
Please see `ena_fbsd_log.h` for implementation details.
Submitted by: Artur Rojek <ar at semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.
More information about the dev-commits-src-all
mailing list