]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rework printouts and logging level in ENA driver
authorMarcin Wojtas <mw@FreeBSD.org>
Thu, 9 Nov 2017 13:30:39 +0000 (13:30 +0000)
committerMarcin Wojtas <mw@FreeBSD.org>
Thu, 9 Nov 2017 13:30:39 +0000 (13:30 +0000)
commit4e8acd844fe8d229146effedd6d9b5ecc2672bba
treedea2b1d1d97ccbf9d141fbf36d8680988d209bb3
parentdc00696a274053504de504fc2c7c187380ccaee7
parentca61e2d994c3b6aa60cf067da743afec94e12597
Rework printouts and logging level in ENA driver

The driver was printing out a lot of information upon failure, which
does not have to be interested for the user.
Changing logging level required to rebuild driver with proper flags. The
proper sysctl was added, so the level now can be changed dynamically
using bitmask.

Levels of printouts were adjusted to keep on mind end user instead of
debugging purposes.

More verbose messages were added to align the driver with the Linux.

Fix building error introduced by the r325506 by casting csum_flags to
uint64_t.

Submitted by: Michal Krawczyk <mk@semihalf.com>
Reviewed by: byenduri_gmail.com
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D12868
sys/contrib/ena-com/ena_plat.h
sys/dev/ena/ena.c