mbox series

[net-next,v3,0/7] net: wangxun: Adjust code structure

Message ID 20230106021145.2803126-1-jiawenwu@trustnetic.com (mailing list archive)
Headers show
Series net: wangxun: Adjust code structure | expand

Message

Jiawen Wu Jan. 6, 2023, 2:11 a.m. UTC
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

Comments

Jiawen Wu Jan. 6, 2023, 3:37 a.m. UTC | #1
Please ignore this series because of the first patch missing.

> -----Original Message-----
> From: Jiawen Wu <jiawenwu@trustnetic.com>
> Sent: Friday, January 6, 2023 10:12 AM
> To: netdev@vger.kernel.org; mengyuanlou@net-swift.com
> Cc: Jiawen Wu <jiawenwu@trustnetic.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
>