[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221214064133.2424570-1-jiawenwu@trustnetic.com>
Date: Wed, 14 Dec 2022 14:41:28 +0800
From: Jiawen Wu <jiawenwu@...stnetic.com>
To: netdev@...r.kernel.org, mengyuanlou@...-swift.com
Cc: Jiawen Wu <jiawenwu@...stnetic.com>
Subject: [PATCH net v2 0/5] 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.
Changelog:
v2:
- Split patch v1 into separate patches
- Fix unreasonable code logic in MAC address operations
Jiawen Wu (5):
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
drivers/net/ethernet/wangxun/libwx/wx_hw.c | 116 +++++++++++-
drivers/net/ethernet/wangxun/libwx/wx_hw.h | 5 +-
drivers/net/ethernet/wangxun/libwx/wx_type.h | 12 ++
drivers/net/ethernet/wangxun/ngbe/ngbe.h | 79 --------
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c | 21 +--
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.h | 4 +-
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 125 ++++---------
drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 58 +++++-
drivers/net/ethernet/wangxun/txgbe/txgbe.h | 43 -----
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c | 36 ++--
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.h | 6 +-
.../net/ethernet/wangxun/txgbe/txgbe_main.c | 174 +++---------------
.../net/ethernet/wangxun/txgbe/txgbe_type.h | 22 ++-
13 files changed, 296 insertions(+), 405 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