net: wangxun: Move MAC address handling to libwx
authorJiawen Wu <jiawenwu@trustnetic.com>
Fri, 6 Jan 2023 03:38:50 +0000 (11:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Jan 2023 03:37:59 +0000 (19:37 -0800)
commit79625f45ca73ef37c18a6e4b5b6ce7daa1e92683
tree735e62bb12a1b0b63f48206f3f778b4d76c90141
parent92710fe60515aa35065d308cecc3acfc59d8f0e9
net: wangxun: Move MAC address handling to libwx

For setting MAC address, both txgbe and ngbe drivers have the same handling
flow with different parameters. Move the same codes to libwx.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_hw.c
drivers/net/ethernet/wangxun/libwx/wx_hw.h
drivers/net/ethernet/wangxun/libwx/wx_type.h
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
drivers/net/ethernet/wangxun/ngbe/ngbe_type.h
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h