]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25448640d23d06059ef16dd54238442c1de41553
treec757a7ed275a6271a4eca4b7a457b2ab1a402684
parente2ad9e32e9fcc5bd8c6a2892c99ecd5217eb3db4
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