]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:24:08 +0000 (16:24 +0100)
commitbb0b2a56d7df78bfadf933af6b46eaaa0bd4408a
treedb22efec1336329724e1d9c3e339b9b1582dd60b
parentc6a3703de83cae6bf2ef5f203d8c08f64a317194
net: hns3: optimized MAC address in management table.

BugLink: https://launchpad.net/bugs/1859261
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>
(cherry picked from commit 0e02a53d64b470b96739189c015f6d9225c11587)
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c