From patchwork Tue Sep 15 01:28:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wong, Vee Khee" X-Patchwork-Id: 11775183 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 24687618 for ; Tue, 15 Sep 2020 01:28:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E378820738 for ; Tue, 15 Sep 2020 01:28:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NUEmckTQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E378820738 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=vSHy44qNRrdJVL2Z5n3XZc5fPQ930VXemfNQDxrYfe4=; b=NUEmckTQlr02kQUpM++FTKI1NY A8X5y43gGSobvJIAPFBkP3/vcfyg/HuRSzHR/V8lk0V3HcVW8ikIu0pCijfcrR5BmS7JTu6TPZ2aj HZfrkfm4qUbYl2bW0tp44yn6tXYd3X5EWc/OqxHhhThnjLdgtnd5zhxJ2uyJ7HzBBIwQJc3v7aEOv Jek8fzNVNABWNW+QPERI+q62uh1QN0/+brd2uQjDM0uQYfxV+U1jFlcfXcrAk+Utmj+TN4WyWucNn kBNxdbyVeO3z6AGlQ6puY3mQaHV6umWDlBQdzhQD/uc57gdo3sR1b/NmZ/enrR1a+GgM+JxycbF4o mlecz5UA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHzkP-0003Rb-8B; Tue, 15 Sep 2020 01:27:05 +0000 Received: from mga11.intel.com ([192.55.52.93]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHzkL-0003Pw-OV for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 01:27:02 +0000 IronPort-SDR: gpej1OA9uOyYMYUP+H6mwUq88WwsoqXNKhD4ZDyeaI2l54g11FIGTEzkrp0Ezptni10/Isza6P IIvCdjM0PdTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="156615181" X-IronPort-AV: E=Sophos;i="5.76,427,1592895600"; d="scan'208";a="156615181" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2020 18:26:55 -0700 IronPort-SDR: X1mLw+WKIcGdRUEAS6YE3OAgd0yykakJDcHVHbcztrxjTp4xUteXKRmpVAqN8mjkKphG9dntir efLOrLzVs3Rw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,427,1592895600"; d="scan'208";a="345632589" Received: from glass.png.intel.com ([172.30.181.92]) by orsmga007.jf.intel.com with ESMTP; 14 Sep 2020 18:26:50 -0700 From: Wong Vee Khee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Maxime Coquelin , Jakub Kicinski Subject: [PATCH net-next 0/3] net: stmmac: Add ethtool support for get|set channels Date: Tue, 15 Sep 2020 09:28:37 +0800 Message-Id: <20200915012840.31841-1-vee.khee.wong@intel.com> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_212701_956677_ED47D897 X-CRM114-Status: GOOD ( 13.31 ) X-Spam-Score: -3.8 (---) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-3.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [192.55.52.93 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.2 AC_FROM_MANY_DOTS Multiple periods in From user name X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joao Pinto , Voon Wei Feng , Arnd Bergmann , Wong Vee Khee , netdev@vger.kernel.org, Rusell King , linux-kernel@vger.kernel.org, Seow Chen Yong , Vijaya Balan Sadhishkhanna , Ong Boon Leong , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch set is to add support for user to get or set Tx/Rx channel via ethtool. There are two patches that fixes bug introduced on upstream in order to have the feature work. Tested on Intel Tigerlake Platform. Aashish Verma (1): net: stmmac: Fix incorrect location to set real_num_rx|tx_queues Ong Boon Leong (2): net: stmmac: add ethtool support for get/set channels net: stmmac: use netif_tx_start|stop_all_queues() function drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 + .../ethernet/stmicro/stmmac/stmmac_ethtool.c | 26 ++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 135 +++++++++--------- 3 files changed, 98 insertions(+), 64 deletions(-)