mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Prevent test failures when there are non Ethernet devices on the system.
When there are PtP TUN devices on the system or SIT devices, tests will fail because of a warning that it was not possible to get their Ethernet addresses. That call comes from the route code adding tunnel ports. Make that warning an informational message and filter that out during tests. Also, return EINVAL when trying to get those interface Ethernet addresses, which will prevent them from being added to the tunnel ports pool and will properly fail in other places as well. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
committed by
Ben Pfaff
parent
cbe0336312
commit
c9697f354e
@@ -5516,8 +5516,9 @@ get_etheraddr(const char *netdev_name, struct eth_addr *ea)
|
||||
}
|
||||
hwaddr_family = ifr.ifr_hwaddr.sa_family;
|
||||
if (hwaddr_family != AF_UNSPEC && hwaddr_family != ARPHRD_ETHER) {
|
||||
VLOG_WARN("%s device has unknown hardware address family %d",
|
||||
VLOG_INFO("%s device has unknown hardware address family %d",
|
||||
netdev_name, hwaddr_family);
|
||||
return EINVAL;
|
||||
}
|
||||
memcpy(ea, ifr.ifr_hwaddr.sa_data, ETH_ADDR_LEN);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user