[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230106021145.2803126-1-jiawenwu@trustnetic.com>
Date: Fri, 6 Jan 2023 10:11:38 +0800
From: Jiawen Wu <jiawenwu@...stnetic.com>
To: netdev@...r.kernel.org, mengyuanlou@...-swift.com
Cc: Jiawen Wu <jiawenwu@...stnetic.com>
Subject: [PATCH net-next v3 0/7] net: wangxun: Adjust code structure
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.
Changelog:
v3:
- Change function parameters to keep two drivers more similar
- Add strucure rename patch
- Add adapter remove patch
v2:
- Split patch v1 into separate patches
- Fix unreasonable code logic in MAC address operations
Jiawen Wu (6):
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 | 23 -
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c | 112 ++--
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.h | 6 +-
.../net/ethernet/wangxun/txgbe/txgbe_main.c | 326 ++++-------
.../net/ethernet/wangxun/txgbe/txgbe_type.h | 26 +-
13 files changed, 702 insertions(+), 902 deletions(-)
delete mode 100644 drivers/net/ethernet/wangxun/ngbe/ngbe.h
delete mode 100644 drivers/net/ethernet/wangxun/txgbe/txgbe.h
--
2.27.0
Powered by blists - more mailing lists