From patchwork Mon Dec 4 09:18:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13477981 Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A0DC3 for ; Mon, 4 Dec 2023 01:25:05 -0800 (PST) X-QQ-mid: bizesmtp89t1701681820t87juxp4 Received: from wxdbg.localdomain.com ( [115.204.154.156]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 04 Dec 2023 17:23:31 +0800 (CST) X-QQ-SSF: 01400000000000K0Z000000A0000000 X-QQ-FEAT: mA5V8Pu2WCHHIdKaFSV17jjvrB8/JYycbxWOF8vs6B9uom7o6vmDJXSWJX984 /vx8FdrHTcrcwxktPzYhAAd9e9gnKtY2p7q4vmJYat0DJx4d4+0+pNTeGbNyyOBopNHlnFy QmEcxx1Frc5sLNSBNUoOxHjW3aJMQJ+6vX9WXFFdyg06IGP7LrzEV5QupqdH6r77ks+P1I+ mdasQQvqQsyTDko6wzzQRTAl5LPtLKcb/beT7BRjXLhxjz9neZ8rLi2FGkfSuoJr/UwTqK9 qaQeCSFleDtZWlqevKGUc1D8VwsDc5NySYxe7I9o8rJdmrB1D4RuCF0vLdq5mOUquiPZ/5o Oq8VeY1pFKOrs+d3zUEByLtqs89aCD4pnp7dSOpzUJZ5UCElXI= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 9152533148110777110 From: Jiawen Wu To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, andrew@lunn.ch, netdev@vger.kernel.org Cc: mengyuanlou@net-swift.com, Jiawen Wu Subject: [PATCH net-next v2 0/7] Implement more ethtool_ops for Wangxun Date: Mon, 4 Dec 2023 17:18:58 +0800 Message-Id: <20231204091905.1186255-1-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Patchwork-Delegate: kuba@kernel.org Provide ethtool functions to operate pause param, ring param, coalesce channel number and msglevel, for driver txgbe/ngbe. v1 -> v2: - Add phylink support for ngbe. - Fix issue on interrupts when queue number is changed. - Add more marco defines. - Fix return codes. Jiawen Wu (7): net: ngbe: implement phylink to handle PHY device net: wangxun: unified phylink implementation in libwx net: wangxun: add flow control support net: wangxun: add ethtool_ops for ring parameters net: wangxun: add coalesce options support net: wangxun: add ethtool_ops for channel number net: wangxun: add ethtool_ops for msglevel .../net/ethernet/wangxun/libwx/wx_ethtool.c | 245 ++++++++++++++++ .../net/ethernet/wangxun/libwx/wx_ethtool.h | 27 ++ drivers/net/ethernet/wangxun/libwx/wx_hw.c | 275 +++++++++++++++++- drivers/net/ethernet/wangxun/libwx/wx_hw.h | 1 + drivers/net/ethernet/wangxun/libwx/wx_lib.c | 164 +++++++++-- drivers/net/ethernet/wangxun/libwx/wx_lib.h | 2 + drivers/net/ethernet/wangxun/libwx/wx_type.h | 87 +++++- .../net/ethernet/wangxun/ngbe/ngbe_ethtool.c | 77 ++++- drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 94 +++--- drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c | 129 ++++---- drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 7 +- .../ethernet/wangxun/txgbe/txgbe_ethtool.c | 77 ++++- .../net/ethernet/wangxun/txgbe/txgbe_main.c | 62 +++- .../net/ethernet/wangxun/txgbe/txgbe_phy.c | 41 ++- .../net/ethernet/wangxun/txgbe/txgbe_type.h | 10 +- 15 files changed, 1126 insertions(+), 172 deletions(-)