From patchwork Tue Dec 12 08:04:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13488656 Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 008D1C2 for ; Tue, 12 Dec 2023 00:10:58 -0800 (PST) X-QQ-mid: bizesmtp74t1702368571tw7opfny Received: from wxdbg.localdomain.com ( [115.204.154.156]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 12 Dec 2023 16:09:22 +0800 (CST) X-QQ-SSF: 01400000000000L0Z000000A0000000 X-QQ-FEAT: EKa9/5zJOSijiSH9vcaF52ebMg1F7DNp7S+0MmttLVtX8Ea+feAUfZIVf5q6o n0qgX0NFm+7CMgh5t100wam4Cl6UsuI9AyjOb5VEYotBXPVu3XLkYh/wAPzMNG/clPXgs8J yAtHXFP0px32HhUyNQ2iESgk53e46c/BoJoyMViBepthjFjwVMSBjHEZzOEzk7sfWavlS3M 4ulFAvfdYXJA376lavM1zqDAZcL1lBBxfy5ZHyImTB8ybQQYNnGQQ/W8c5Jqkzj2gcWP32O aFgPQaQU81zpssJP3rfLOGq2heVNhgdLC1exSAryiopc2UJlSwBynlIVlTMK1NW12F4DWpd jE7c7MUSlhaAibFjTXDNMBP+LwkkpMcdxs0V3u1NHjjmKvbAY37m9EdaBOuLArFvtNnNDcW X-QQ-GoodBg: 2 X-BIZMAIL-ID: 604578862222143399 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 v4 0/8] Implement more ethtool_ops for Wangxun Date: Tue, 12 Dec 2023 16:04:30 +0800 Message-Id: <20231212080438.1361308-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. v3 -> v4: - Repartition the patches of phylink. - Handle failure to allocate memory while changing ring parameters. - Minor fixes about formatting. v2 -> v3: - Address comments: https://lore.kernel.org/all/ZW2loxTO6oKNYLew@shell.armlinux.org.uk/ 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 (8): net: libwx: add phylink to libwx net: txgbe: use phylink bits added in libwx net: ngbe: convert phylib to phylink 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 | 236 +++++++++++++++ .../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 | 154 ++++++++-- drivers/net/ethernet/wangxun/libwx/wx_lib.h | 3 + drivers/net/ethernet/wangxun/libwx/wx_type.h | 94 +++++- .../net/ethernet/wangxun/ngbe/ngbe_ethtool.c | 85 +++++- drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 85 +++--- drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c | 114 ++++---- drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.h | 1 - drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 7 +- .../ethernet/wangxun/txgbe/txgbe_ethtool.c | 85 +++++- .../net/ethernet/wangxun/txgbe/txgbe_main.c | 62 +++- .../net/ethernet/wangxun/txgbe/txgbe_phy.c | 57 ++-- .../net/ethernet/wangxun/txgbe/txgbe_type.h | 15 +- 16 files changed, 1116 insertions(+), 185 deletions(-)