From patchwork Wed Nov 22 10:22:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13464576 Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E88093 for ; Wed, 22 Nov 2023 02:30:05 -0800 (PST) X-QQ-mid: bizesmtp82t1700648811tllnrmbx Received: from wxdbg.localdomain.com ( [183.128.129.197]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 22 Nov 2023 18:26:28 +0800 (CST) X-QQ-SSF: 01400000000000K0Z000000A0000000 X-QQ-FEAT: lP1Pu2Q8kTroYT+7n+oNNSVDiNb9MSPOnUwK+Yte7ch2EHt/FLQAFCFdIpcJh B5qNqZNrjMEvqdjOAW6wa3EfrarAHdB/919yL2oEicYuMg9xz8yUnqXkuprG4x9MXC0ZAN8 iw4goptCPvCV0HjVym2mwpaPcgBqb6nChMWhXckB/a0/JubZOG2P+6gFNprc9mCCYV6YeP5 8bJB+TVoa1A/tP/PllFc6TwqjYP/OZncoor6kX8JW7hqVHHAuaR33yseCtA08BTJHKxyWvy /2nKog/1lgMYoKNGbLHZtkE8T72MnMtMBumjHHKxhMQ8nOpiX/IZ0djl2ImaAtUmTW+VA1H r+k8AaZ5fpKaKMt5a5LmRc1BVpEL2MS6aPpMQ3Oy7lkUtZCou8= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 9208755753975401940 From: Jiawen Wu To: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, andrew@lunn.ch, horms@kernel.org Cc: mengyuanlou@net-swift.com, Jiawen Wu Subject: [PATCH net-next 0/5] Implement more ethtool_ops for Wangxun Date: Wed, 22 Nov 2023 18:22:21 +0800 Message-Id: <20231122102226.986265-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. This patch set needs to be applied base on commit 8ba2c459668c, which was applied to upstream netdev/net. Jiawen Wu (5): 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 | 200 +++++++++++++ .../net/ethernet/wangxun/libwx/wx_ethtool.h | 18 ++ drivers/net/ethernet/wangxun/libwx/wx_hw.c | 280 ++++++++++++++++++ drivers/net/ethernet/wangxun/libwx/wx_hw.h | 1 + drivers/net/ethernet/wangxun/libwx/wx_lib.c | 99 ++++++- drivers/net/ethernet/wangxun/libwx/wx_lib.h | 2 + drivers/net/ethernet/wangxun/libwx/wx_type.h | 75 ++++- .../net/ethernet/wangxun/ngbe/ngbe_ethtool.c | 101 +++++++ drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 64 ++-- drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c | 2 + drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 5 + .../ethernet/wangxun/txgbe/txgbe_ethtool.c | 84 ++++++ .../net/ethernet/wangxun/txgbe/txgbe_main.c | 47 ++- .../net/ethernet/wangxun/txgbe/txgbe_phy.c | 4 + .../net/ethernet/wangxun/txgbe/txgbe_type.h | 5 + 15 files changed, 953 insertions(+), 34 deletions(-)