Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1751914ybl; Tue, 3 Dec 2019 12:05:40 -0800 (PST) X-Google-Smtp-Source: APXvYqx82C50b0sArTU+wG/ngUwZOybu6dbsdzpy/we16AKx/vNj2sDatwCjkKkdM6omtQ9QFshL X-Received: by 2002:aca:1817:: with SMTP id h23mr5322638oih.167.1575403540543; Tue, 03 Dec 2019 12:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575403540; cv=none; d=google.com; s=arc-20160816; b=sJOCf/9rXpALXIz/eriGoREJg/ZyEmLMWKKEXrwyypyrbU57iCFH786osw/Z2ivhe9 yL/2don7jD0iBNifopdj70espbP594PDR+xRJ+nopxDIrnLxI+xGcGeyOwnD+ixJVgRd OEzAEQYDURllG1z2YoioVhyp6XAqL45HydCGBKqMU1+HDTtkOV21OmHBrkIvvPyR2OSZ 9IRCntQHSIeHYt4iQelHZBHuZtt/mJpYZ+G14Y4NbrWM8jUCOCejCWxH2Gvf9vmFJai/ 259gEjiuroY4TOm2aleRv7H/lbeDXDcoPYNOxktDuRYiMELmyepMFTCWfcq/L+NlMyBr 1Fdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=VZy3b2sJqOPadE7gaKlbeJchIAlYOyJ+QAzM+KPmmFA=; b=dXhR20RtJEJq8I3ScrTbmM4PhBZ50fPlQs6fPcgtGl/n6vMNLWzsJeWtcw3StadJCc lCTg4wErxC/qXnL038sva3fHF5FCqDyXY9OaWhm1RNqUWS1+hzTDRgPFsGHBNfqG1Hcl vESpNp67NWr4mp5yx+r7uvVsTLyNnw8QoBe2g5jklCFecD/cWoPq/jLoZ9CiyzAvhwnn 10JYELtSppo/AGn1Soy6isWy8qMlcVdo5uM5dFQ3UHWZZBC1YtwTNX8ixTc6T9EOUA6O WdVq4kRyaBBLtsDQcCi1G8hAb5Qs4HOcP3IZbauEOHCVgggo9BqHyUhE9wm7ZXIRQe4c xk4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b="WMyT/GO0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si1757707oti.61.2019.12.03.12.05.27; Tue, 03 Dec 2019 12:05:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b="WMyT/GO0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbfLCTrr (ORCPT + 99 others); Tue, 3 Dec 2019 14:47:47 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44257 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbfLCTrr (ORCPT ); Tue, 3 Dec 2019 14:47:47 -0500 Received: by mail-pl1-f196.google.com with SMTP id az9so2087393plb.11 for ; Tue, 03 Dec 2019 11:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=VZy3b2sJqOPadE7gaKlbeJchIAlYOyJ+QAzM+KPmmFA=; b=WMyT/GO0Y2I2VLICpbCCKvAvQMKRe2JwdmPtPAr8Ow1tNeMvGbkLwOK/7qRLLO3PsF xZJKprAjMbYkYEgjBNN81NavUXlKsKpplItcFzJqG49u1Ngr2VLxpZNHZGzGsCRpCuDn z9NRV4SIYJ7fziD05cu6ZZddWs8d64FsPo+8dWDS4TRW6PW81NB9EFHXRjXEnOEiwLk+ lMGcPCRT3iJHiYiwgwMVFBjkX4s0f8w+P4UeqeOuMBBMnhwo2TR790uq/7G4aC4fu68e DYnjsrzP/mhK3lThAQJmNkLh/YMVU8/XubH4JXk69xD69JyJbhNd8qY3D/h8Z5+INXGO jTdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=VZy3b2sJqOPadE7gaKlbeJchIAlYOyJ+QAzM+KPmmFA=; b=YUArtpvMAn5O2uXjFGX/kIniVz3y/ka24TFwNEkhb1X8FlKPVwHvJi8A2Oqu6JSNhf ou1bjuVIjGdqWlEaPledXm2J9JptqZ5gOsP5QiDmBtShacZVc4EetrVvDsnEmJ9/qF7I 8M12T2bhKW888kf1krEjBThWa0UR7ICsi6GgGBze8DJ0cCQrFfrV/r6oOq5SBYwY3K5f Bsmff/KApwGFVbBs8GLWF3AsxzF15I+xfNL9AqIok+QwErrlwhlGCe2j9Wp/VJYJZZwv GzZaTkTdO+EJJ23FTZ2rXFOTLSCsH99rIyJunJhAyMQ2G9MjoCRJUL14hG4LNrurJEux N9SA== X-Gm-Message-State: APjAAAW3JZYpp2IfsGqPvMg6G8DAPf2q9Y4zCA5uRgXOzhhdrr1J9P7H bFebZlCACtcS2mbd3Zu0J9kWmQ== X-Received: by 2002:a17:90a:2201:: with SMTP id c1mr7247627pje.31.1575402466612; Tue, 03 Dec 2019 11:47:46 -0800 (PST) Received: from Shannons-MacBook-Pro.local (static-50-53-47-17.bvtn.or.frontiernet.net. [50.53.47.17]) by smtp.gmail.com with ESMTPSA id h7sm5293581pfq.36.2019.12.03.11.47.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Dec 2019 11:47:45 -0800 (PST) Subject: Re: [PATCH RFC v7 net-next] netdev: pass the stuck queue to the timeout handler To: "Michael S. Tsirkin" , jcfaracco@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, jasowang@redhat.com, virtualization@lists.linux-foundation.org, dnmendes76@gmail.com References: <20191203071101.427592-1-mst@redhat.com> From: Shannon Nelson Message-ID: <80070eaa-84b2-5f41-db72-d8bf594924fd@pensando.io> Date: Tue, 3 Dec 2019 11:47:44 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191203071101.427592-1-mst@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/2/19 11:12 PM, Michael S. Tsirkin wrote: > This allows incrementing the correct timeout statistic without any mess. > Down the road, devices can learn to reset just the specific queue. > [...] > diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c > index 20faa8d24c9f..f7beb1b9e9d6 100644 > --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c > +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c > @@ -1268,7 +1268,7 @@ static void ionic_tx_timeout_work(struct work_struct *ws) > rtnl_unlock(); > } > > -static void ionic_tx_timeout(struct net_device *netdev) > +static void ionic_tx_timeout(struct net_device *netdev, unsigned int txqueue) > { > struct ionic_lif *lif = netdev_priv(netdev); > > [...] For drivers/net/ethernet/pensando/ionic: Acked-by: Shannon Nelson