From patchwork Tue Dec 3 07:32:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 11270639 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E07C66C1 for ; Tue, 3 Dec 2019 07:32:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B70DA2073B for ; Tue, 3 Dec 2019 07:32:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JUCKwY0o" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbfLCHcS (ORCPT ); Tue, 3 Dec 2019 02:32:18 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:32034 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727408AbfLCHcR (ORCPT ); Tue, 3 Dec 2019 02:32:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575358336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QDZ6zkutNb+UsMTsOrqqbjPx6wHX610gfsQwcSvpFp8=; b=JUCKwY0oa/kjOHpIP1/HUQBZx0isquM9YMIVIYT0eJtsgijzWpNkkg6VwKr5dEJauHm+st WLL0+YCvYGIe8s6Do6RfacyzBJw3uQxY1niuILfucmbVoL8hTNH7CT04dhhEchVCfk0uWO 6UpxLLHhrhs2kN1rVd3+EFdNPsb37Gg= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-4-AtsIqnAYNmSCtOBpW2lEtw-1; Tue, 03 Dec 2019 02:32:15 -0500 Received: by mail-qk1-f198.google.com with SMTP id d26so1618046qkk.8 for ; Mon, 02 Dec 2019 23:32:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6xKT/ZrBuwY/dROOLKR3Rna6H1BFhaRlBSFPw3pHzCk=; b=TZF3FZvuKq7ueOyV2oZIgI28ztLu1W8nFDuVhOhoPdsqL5M1dCed4/6MnZonT0T/f3 Y1D++LdM6d7kw6dlwxONjgV/OTzwXFvlJ8D2Sh82+F0enD1lHjpMyBAQwTijoDKmaVVq 6Ri3OrWRMEIVFBvE2QQ7wbtYCibUTkpWt7cxKgdXTlLey1dhgw7GAUwrjlkGsjClCvic N7jRa/RhX4SyQI3UfivDHuwigaHtlnyXP+VNf/BmfKfYeW1HbIinQTMgMTFA9AZjkGgN JSqDtRQuPflDuxb0rwku6bVUAQtVl2NjdzLDzbESbYtSvruPheXxwWQDuXV7XYUwxuy3 rLlA== X-Gm-Message-State: APjAAAWTI0v/HnvMLf+rAhLqF4aSvfg5kB75QyaV9d0lfD50pyg23ANH tS9B0fsO6i4S8VqaCenVn/AbMQ7k2YAxIBUrjZRLT4Wy1XjbVSlJdn6ZDiewbXnrlkMsvL2A3An VEBtDEQz9U/cmIoZuIdY1GQ== X-Received: by 2002:a37:4f83:: with SMTP id d125mr3826269qkb.205.1575358334436; Mon, 02 Dec 2019 23:32:14 -0800 (PST) X-Google-Smtp-Source: APXvYqw9SwwNQE59WdoMcrLUQeGGNOBWpqfUZPXMhfa3nkO1AfEgg7+4frtIMTFsaovZ3lKFFAH+BA== X-Received: by 2002:a37:4f83:: with SMTP id d125mr3826243qkb.205.1575358334155; Mon, 02 Dec 2019 23:32:14 -0800 (PST) Received: from redhat.com (bzq-79-181-48-215.red.bezeqint.net. [79.181.48.215]) by smtp.gmail.com with ESMTPSA id q126sm1299731qkd.21.2019.12.02.23.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 23:32:13 -0800 (PST) Date: Tue, 3 Dec 2019 02:32:10 -0500 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Tariq Toukan , "David S. Miller" , netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH RFC v7 net-next 2/1] mlx4: use new txqueue timeout argument Message-ID: <20191203072757.429125-1-mst@redhat.com> References: <20191203071101.427592-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20191203071101.427592-1-mst@redhat.com> X-Mailer: git-send-email 2.22.0.678.g13338e74b8 X-Mutt-Fcc: =sent X-MC-Unique: AtsIqnAYNmSCtOBpW2lEtw-1 X-Mimecast-Spam-Score: 0 Content-Disposition: inline Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Michael S. Tsirkin --- untested drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index d2728933d420..3bcf5f682af5 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c @@ -1363,15 +1363,9 @@ static void mlx4_en_tx_timeout(struct net_device *dev, unsigned int txqueue) if (netif_msg_timer(priv)) en_warn(priv, "Tx timeout called on port:%d\n", priv->port); - for (i = 0; i < priv->tx_ring_num[TX]; i++) { - struct mlx4_en_tx_ring *tx_ring = priv->tx_ring[TX][i]; - - if (!netif_tx_queue_stopped(netdev_get_tx_queue(dev, i))) - continue; - en_warn(priv, "TX timeout on queue: %d, QP: 0x%x, CQ: 0x%x, Cons: 0x%x, Prod: 0x%x\n", - i, tx_ring->qpn, tx_ring->sp_cqn, - tx_ring->cons, tx_ring->prod); - } + en_warn(priv, "TX timeout on queue: %d, QP: 0x%x, CQ: 0x%x, Cons: 0x%x, Prod: 0x%x\n", + txqueue, tx_ring->qpn, tx_ring->sp_cqn, + tx_ring->cons, tx_ring->prod); priv->port_stats.tx_timeout++; en_dbg(DRV, priv, "Scheduling watchdog\n");