From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22363C433E2 for ; Tue, 15 Sep 2020 01:26:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0B1D216C4 for ; Tue, 15 Sep 2020 01:26:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726094AbgIOB04 (ORCPT ); Mon, 14 Sep 2020 21:26:56 -0400 Received: from mga17.intel.com ([192.55.52.151]:19876 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbgIOB04 (ORCPT ); Mon, 14 Sep 2020 21:26:56 -0400 IronPort-SDR: ACLzazRlii4pXL+zz0yuIApwvt9VfsIoiKsZnb3H3tXIxJ9ozAqJ0sYVlsuGCmSBWRYIP0OzBD 7tv2BL7IODmw== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="139195469" X-IronPort-AV: E=Sophos;i="5.76,427,1592895600"; d="scan'208";a="139195469" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.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 Cc: Joao Pinto , Arnd Bergmann , Rusell King , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ong Boon Leong , Voon Wei Feng , Wong Vee Khee , Vijaya Balan Sadhishkhanna , Seow Chen Yong 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.17.0