From 1d729817a657a7c9b7b5a7a77cc8a7ad7e6bfe95 Mon Sep 17 00:00:00 2001 From: Joachim Foerster Date: Mon, 4 Jul 2022 17:08:37 +0200 Subject: [PATCH] modules/mqnic: Turn "TX ring ... full ..." message into netdev-related debug message To not overwhelm any logging daemon. Full TX queues can be quite common depending on a system's context and capabilities. Mostly all the details are not required anyway in such cases. To enable such debug messages and have their text turn up in dmesg and logging daemons, the mqnic module has to be compiled with CPP symbol DEBUG being (`make DEBUG=yes`) defined, or the kernel in use has to support "Dynamic Debug" [1]. In the latter case all such debug messages in module mqnic can be enabled with: echo 'module mqnic +pflmt' | sudo tee /sys/kernel/debug/dynamic_debug/control To enable just this specific messages, based on its (partial) format: echo 'format "TX ring %d full" +pflmt' | sudo tee /sys/kernel/debug/dynamic_debug/control [1] https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html Signed-off-by: Joachim Foerster --- modules/mqnic/mqnic_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mqnic/mqnic_tx.c b/modules/mqnic/mqnic_tx.c index 0bd269e7c..b29f87fd2 100644 --- a/modules/mqnic/mqnic_tx.c +++ b/modules/mqnic/mqnic_tx.c @@ -484,7 +484,7 @@ netdev_tx_t mqnic_start_xmit(struct sk_buff *skb, struct net_device *ndev) stop_queue = mqnic_is_tx_ring_full(ring); if (unlikely(stop_queue)) { - netdev_info(ndev, "%s: TX ring %d full on port %d", + netdev_dbg(ndev, "%s: TX ring %d full on port %d", __func__, ring_index, priv->index); netif_tx_stop_queue(ring->tx_queue); }