OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns3
Jian Shen d07b6bb435 net: hns3: add existence checking before adding unicast mac address
It's not allowed to add two same unicast mac address entries to the
mac_vlan table. When modify the uc mac address of a VF device to the
same value with the PF device's, the PF device will lose its entry of
the mac_vlan table.

Lookup the mac address in the mac_vlan table, and add it if the entry
is inexistent.

Fixes: 46a3df9f97 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
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>
2018-03-11 22:53:32 -04:00
..
hns3pf net: hns3: add existence checking before adding unicast mac address 2018-03-11 22:53:32 -04:00
hns3vf net: hns3: fix for buffer overflow smatch warning 2018-03-11 22:53:32 -04:00
Makefile net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC 2017-12-15 10:55:34 -05:00
hclge_mbx.h net: hns3: fix for buffer overflow smatch warning 2018-03-11 22:53:32 -04:00
hnae3.c net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC 2017-12-15 10:55:34 -05:00
hnae3.h net: hns3: add existence check when remove old uc mac address 2018-03-11 22:53:31 -04:00
hns3_dcbnl.c net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC 2017-12-15 10:55:34 -05:00
hns3_enet.c net: hns3: fix rx path skb->truesize reporting bug 2018-03-11 22:53:31 -04:00
hns3_enet.h net: hns3: refactor the coalesce related struct 2018-03-09 11:33:14 -05:00
hns3_ethtool.c net: hns3: fix for loopback failure when vlan filter is enable 2018-03-11 22:53:32 -04:00