[PATCH v1 2/2] net/cpfl: fix log flood on empty mailbox
Soumyadeep Hore
soumyadeep.hore at intel.com
Thu Nov 19 08:31:47 CET 2026
The alarm handler polls the mailbox every 50 ms. When the receive
queue is empty, the receive call returns -ENOMSG, which was logged
as a read failure on every poll and flooded the log on an idle
device.
Do not log when the receive queue is empty.
Fixes: 2d823ecd671c ("net/cpfl: support device initialization")
Cc: stable at dpdk.org
Signed-off-by: Soumyadeep Hore <soumyadeep.hore at intel.com>
---
drivers/net/intel/cpfl/cpfl_ethdev.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/intel/cpfl/cpfl_ethdev.c b/drivers/net/intel/cpfl/cpfl_ethdev.c
index fd84d9b21e..26e69514b4 100644
--- a/drivers/net/intel/cpfl/cpfl_ethdev.c
+++ b/drivers/net/intel/cpfl/cpfl_ethdev.c
@@ -1945,7 +1945,11 @@ cpfl_handle_virtchnl_msg(struct cpfl_adapter_ext *adapter)
while (pending) {
ret = idpf_vc_ctlq_recv(hw->arq, &pending, &ctlq_msg);
if (ret) {
- PMD_DRV_LOG(INFO, "Failed to read msg from virtual channel, ret: %d", ret);
+ /* -ENOMSG only means the receive queue is empty */
+ if (ret != -ENOMSG)
+ PMD_DRV_LOG(INFO,
+ "Failed to read msg from virtual channel, ret: %d",
+ ret);
return;
}
--
2.43.0
More information about the dev
mailing list