summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2018-03-10 11:29:32 +0800
committerDavid S. Miller <davem@davemloft.net>2018-03-11 22:53:32 -0400
commitd07b6bb4350040e10be8483640ae1b2bf37a3e5e (patch)
tree3e76c94e0ea9a5b0bcf9eb2ccb9a471adad09a33 /tools/perf/scripts/python/export-to-postgresql.py
parenteefd00a5d70378feae66c073105c548075609482 (diff)
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: 46a3df9f9718 ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions