]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: add result checking for VF when modify unicast mac address
authorJian Shen <shenjian15@huawei.com>
Sat, 10 Mar 2018 03:29:33 +0000 (11:29 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:40:21 +0000 (14:40 -0400)
commit5a955cd22fdb93ad76312789ddee4d1e751e46e7
tree50bcf22cd3a6d64513325e9209b65f5a972bac6d
parentbf88f41f2f47b17660faad11d0d0ccd00ac1df96
net: hns3: add result checking for VF when modify unicast mac address

BugLink: https://bugs.launchpad.net/bugs/1768670
VF changes unicast mac address by sending mailbox msg to PF, then PF
completes the mac address modification. It may fail when the target
uc mac address is already in the mac_vlan table. VF should be aware
of it by reading the message result.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 2097fdefa5c2c22c3165b3c9020ddb8ed610c371)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c