All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: linux-kernel@vger.kernel.org, Julio Faracco <jcfaracco@gmail.com>
Cc: dnmendes76@gmail.com,
	Jakub Kicinski <jakub.kicinski@netronome.com>,
	mst@redhat.com, netdev@vger.kernel.org,
	virtualization@lists.linux-foundation.org, davem@davemloft.net
Subject: [PATCH RFC net-next v8 3/3] netronome: use the new txqueue timeout argument
Date: Tue, 3 Dec 2019 15:18:43 -0500	[thread overview]
Message-ID: <20191203201804.662066-4-mst@redhat.com> (raw)
In-Reply-To: <20191203201804.662066-1-mst@redhat.com>

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
---

Changes from v7:
	combine two warnings into one

 drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
index 41a808b14d76..eb1f9bed4833 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
+++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
@@ -1323,14 +1323,8 @@ nfp_net_tx_ring_reset(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring)
 static void nfp_net_tx_timeout(struct net_device *netdev, unsigned int txqueue)
 {
 	struct nfp_net *nn = netdev_priv(netdev);
-	int i;
 
-	for (i = 0; i < nn->dp.netdev->real_num_tx_queues; i++) {
-		if (!netif_tx_queue_stopped(netdev_get_tx_queue(netdev, i)))
-			continue;
-		nn_warn(nn, "TX timeout on ring: %d\n", i);
-	}
-	nn_warn(nn, "TX watchdog timeout\n");
+	nn_warn(nn, "TX watchdog timeout on ring: %u\n", txqueue);
 }
 
 /* Receive processing
-- 
MST

WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: linux-kernel@vger.kernel.org, Julio Faracco <jcfaracco@gmail.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, mst@redhat.com,
	jasowang@redhat.com, virtualization@lists.linux-foundation.org,
	dnmendes76@gmail.com,
	Jakub Kicinski <jakub.kicinski@netronome.com>
Subject: [PATCH RFC net-next v8 3/3] netronome: use the new txqueue timeout argument
Date: Tue, 3 Dec 2019 15:18:43 -0500	[thread overview]
Message-ID: <20191203201804.662066-4-mst@redhat.com> (raw)
In-Reply-To: <20191203201804.662066-1-mst@redhat.com>

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
---

Changes from v7:
	combine two warnings into one

 drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
index 41a808b14d76..eb1f9bed4833 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
+++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
@@ -1323,14 +1323,8 @@ nfp_net_tx_ring_reset(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring)
 static void nfp_net_tx_timeout(struct net_device *netdev, unsigned int txqueue)
 {
 	struct nfp_net *nn = netdev_priv(netdev);
-	int i;
 
-	for (i = 0; i < nn->dp.netdev->real_num_tx_queues; i++) {
-		if (!netif_tx_queue_stopped(netdev_get_tx_queue(netdev, i)))
-			continue;
-		nn_warn(nn, "TX timeout on ring: %d\n", i);
-	}
-	nn_warn(nn, "TX watchdog timeout\n");
+	nn_warn(nn, "TX watchdog timeout on ring: %u\n", txqueue);
 }
 
 /* Receive processing
-- 
MST


  parent reply	other threads:[~2019-12-03 20:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-03 20:18 [PATCH RFC net-next v8 0/3] netdev: ndo_tx_timeout cleanup Michael S. Tsirkin
2019-12-03 20:18 ` [PATCH RFC net-next v8 1/3] netdev: pass the stuck queue to the timeout handler Michael S. Tsirkin
2019-12-09  7:40   ` Geert Uytterhoeven
2019-12-09  7:40   ` Geert Uytterhoeven
2019-12-10 14:27     ` Michael S. Tsirkin
2019-12-10 14:27     ` Michael S. Tsirkin
2019-12-03 20:18 ` Michael S. Tsirkin
2019-12-03 20:18 ` Michael S. Tsirkin [this message]
2019-12-03 20:18   ` [PATCH RFC net-next v8 3/3] netronome: use the new txqueue timeout argument Michael S. Tsirkin
2019-12-03 20:19 ` [PATCH RFC net-next v8 2/3] mlx4: use " Michael S. Tsirkin
2019-12-03 20:19 ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191203201804.662066-4-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=davem@davemloft.net \
    --cc=dnmendes76@gmail.com \
    --cc=jakub.kicinski@netronome.com \
    --cc=jcfaracco@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.