Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1622035yba; Tue, 2 Apr 2019 12:24:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5de8+ECrv0vAVWFFQqXQ/cJgmo5Ei81Nky0qaC0eFoGkGTxe7oZvot/GjV7+Sz09B6AhT X-Received: by 2002:a63:3d85:: with SMTP id k127mr53232929pga.152.1554233096906; Tue, 02 Apr 2019 12:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554233096; cv=none; d=google.com; s=arc-20160816; b=GG89XEnmWz+OjpemUpoFt/p4C6qh8Drv1AG2grj6S0eGKGQ1yhqS3bOSkXjvGlBAtc 7DqEl3gmOMsEimHcWzYvh83pbsbSYSJiCtQhuTB4bqyuItUyQI0wkmpeN7gYA9WRhw7K wKYVbPc16iwUeHjc2d++IepSwQZaiGmHuebtDZYX939rsq2vS4cUFSpidLkOFxsTQ/Pw bzCSsfPs5Aq1gE9GtNhmQfLyGUe8wDL25DmB03PaYD6DUl/NA7WPuhUVfGdhPAxNsa2g 7wMRCf/RJlEjhZt5LYueneelSUJdmpP0QsNL6+LS/qnm4GGhzYD1vH5zQ1bat+wxh9u/ Jfmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=AxZ3pcXGfqruMoPJ3nAyRjOWLU9Qw0INwMvJskbGadg=; b=O4ra2xTylG9L6M6wJE1WjjHey0dbCL6XbeXq7ibsnaLB48yhZy0Q31SJZqYT9sOUxX baAAcKz9XOHz24eLmq9rNrk93MKXs0caYvVqGQdfNHgwVB21CGPTHpD1UN8Ex/ld8nEY jvgxuAM61B5udzGy4dorPuoD19uSmHdDAOFDAnkySbPpYQNhIoCF8ysW6/6ZmlxjTnNq Wi6z0NP2kN6j8puoChb2NZB8uR/5yDjtuocfGYOzngTln9srm5J3YGa9mUyQue0TfMYy HBsPQer5NvGeGXleCLg75Rs/cb447JagIcSdir3FaM7K20nPDj9fBnjF2q4ADux8oyFy b3JQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g4si11484331plt.215.2019.04.02.12.24.40; Tue, 02 Apr 2019 12:24:56 -0700 (PDT) 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; 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 S1729004AbfDBRzY (ORCPT + 99 others); Tue, 2 Apr 2019 13:55:24 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:58018 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726582AbfDBRzY (ORCPT ); Tue, 2 Apr 2019 13:55:24 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E4F11133FCD40; Tue, 2 Apr 2019 10:55:22 -0700 (PDT) Date: Tue, 02 Apr 2019 10:55:22 -0700 (PDT) Message-Id: <20190402.105522.2070788862454259965.davem@davemloft.net> To: jmaxwell37@gmail.com Cc: siva.kallam@broadcom.com, prashant@broadcom.com, mchan@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jmaxwell@redhat.com Subject: Re: [net-next] tg3: allow ethtool -p to work for NICs in down state From: David Miller In-Reply-To: <20190402050756.20507-1-jmaxwell37@gmail.com> References: <20190402050756.20507-1-jmaxwell37@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 02 Apr 2019 10:55:23 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Maxwell Date: Tue, 2 Apr 2019 16:07:56 +1100 > Make tg3 behave like other drivers and let "ethtool -p" identify the > NIC even when it's in the DOWN state. Before this patch it would get an > error as follows if the NIC was down: > > # ip link set down dev em4 > # ethtool -p em4 > Cannot identify NIC: Resource temporarily unavailable > > With this patch ethtool identify works regardless of whether the NIC is up > or down as it does for other drivers. > > Signed-off-by: Jon Maxwell Applied, thanks Jon.