OSDN Git Service

net: hns3: optimized MAC address in management table.
authorGuojia Liao <liaoguojia@huawei.com>
Sat, 19 Oct 2019 08:03:50 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2019 16:22:09 +0000 (09:22 -0700)
commit0e02a53d64b470b96739189c015f6d9225c11587
treec757a7ed275a6271a4eca4b7a457b2ab1a402684
parent5f06b903cb0b85194e66675267b565d40a22026c
net: hns3: optimized MAC address in management table.

mac_addr_hi32 and mac_addr_lo16 are used to store the MAC address
for management table. But using array of mac_addr[ETH_ALEN] would
be more general and not need to care about the big-endian mode of
the CPU.

Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c