From patchwork Fri Jan 6 03:38:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiawen Wu X-Patchwork-Id: 13090892 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 776B6C3DA7A for ; Fri, 6 Jan 2023 03:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbjAFDmM (ORCPT ); Thu, 5 Jan 2023 22:42:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231847AbjAFDmA (ORCPT ); Thu, 5 Jan 2023 22:42:00 -0500 X-Greylist: delayed 5206 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 05 Jan 2023 19:41:57 PST Received: from smtpbg150.qq.com (smtpbg150.qq.com [18.132.163.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA436A0F7 for ; Thu, 5 Jan 2023 19:41:57 -0800 (PST) X-QQ-mid: bizesmtp76t1672976511toc2qjq2 Received: from wxdbg.localdomain.com ( [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 06 Jan 2023 11:41:41 +0800 (CST) X-QQ-SSF: 01400000002000H0X000B00A0000000 X-QQ-FEAT: CR3LFp2JE4nDZ2qZuaxOsJgCTlqLNgC2UHD150vqMjkeGk3W9bzryjPqfmmrU FZ+VB9RSwNqQCF7AdnJ8INkHhJTp2IODlZjK1Xm+Nu150v7kL7i6/zVFflqgNfGh9M57Vbo Y3HJ8gSxKKaqvJ6481j4awad/h8371SREAWNbKa9uIRYxo1Kgc0onlNanrIwXi+KZWn//bK TEZig0TCYqz3Gcl793i5TNHK5XHn0gVSo+7Sl6eLlbEKO50AKr6cQR5n+7HT0Bb+0hb1anq 3pJ5u8QTqJ6ROGSKr7AXI+UyWLuXFIfRvGXOGeO4JWGOMh/q+DMvp5xhxXyYwIf4TUoSV5O Oqs7hDayGBs4ZK5JahxyNPMQSFsX3ZruZVjRiC9ujTUwB9KUVokWVM7dGwzrn1FWj/XLle+ X-QQ-GoodBg: 2 From: Jiawen Wu To: netdev@vger.kernel.org, mengyuanlou@net-swift.com Cc: Jiawen Wu Subject: [PATCH net-next v3 0/8] net: wangxun: Adjust code structure Date: Fri, 6 Jan 2023 11:38:45 +0800 Message-Id: <20230106033853.2806007-1-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvr:qybglogicsvr5 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Remove useless structs 'txgbe_hw' and 'ngbe_hw' make the codes clear. And move the same codes which sets MAC address between txgbe and ngbe to libwx. Further more, rename struct 'wx_hw' to 'wx' and move total adapter members to wx. Jiawen Wu (7): net: txgbe: Remove structure txgbe_hw net: ngbe: Remove structure ngbe_hw net: txgbe: Move defines into unified file net: ngbe: Move defines into unified file net: wangxun: Move MAC address handling to libwx net: wangxun: Rename private structure in libwx net: txgbe: Remove structure txgbe_adapter Mengyuan Lou (1): net: ngbe: Remove structure ngbe_adapter drivers/net/ethernet/wangxun/libwx/wx_hw.c | 504 +++++++++++------- drivers/net/ethernet/wangxun/libwx/wx_hw.h | 37 +- drivers/net/ethernet/wangxun/libwx/wx_type.h | 72 ++- drivers/net/ethernet/wangxun/ngbe/ngbe.h | 79 --- drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c | 47 +- drivers/net/ethernet/wangxun/ngbe/ngbe_hw.h | 4 +- drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 300 ++++------- drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 68 +-- drivers/net/ethernet/wangxun/txgbe/txgbe.h | 43 -- drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c | 116 ++-- drivers/net/ethernet/wangxun/txgbe/txgbe_hw.h | 6 +- .../net/ethernet/wangxun/txgbe/txgbe_main.c | 335 ++++-------- .../net/ethernet/wangxun/txgbe/txgbe_type.h | 14 +- 13 files changed, 704 insertions(+), 921 deletions(-) delete mode 100644 drivers/net/ethernet/wangxun/ngbe/ngbe.h delete mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe.h