bnxt_en: Make PTP TX timestamp HWRM query silent
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Tue, 12 Dec 2023 00:51:22 +0000 (16:51 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Dec 2023 00:05:59 +0000 (16:05 -0800)
commit056bce63c469ca397e30d16bdbd4408489f089a9
treec6abd112c20976418226d76d83017497f974479c
parent84793a499578a5447b90b298aa8ac4fd314f6f9f
bnxt_en: Make PTP TX timestamp HWRM query silent

In a busy network, especially with flow control enabled, we may
experience timestamp query failures fairly regularly. After a while,
dmesg may be flooded with timestamp query failure error messages.

Silence the error message from the low level hwrm function that
sends the firmware message.  Change netdev_err() to netdev_WARN_ONCE()
if this FW call ever fails.

Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231212005122.2401-14-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c