mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
netdev-dpdk: Fix using uninitialized link_status.
'rte_eth_link_get_nowait()' works only with physical ports. In case of vhost-user port, 'link' will stay uninitialized and there will be random messages in log about link status. Ex.: |dpdk(dpdk_watchdog2)|DBG|Port -1 Link Up - speed 10000 Mbps - full-duplex Fix that by calling 'check_link_status()' only for physical ports. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Acked-by: Aaron Conole <aconole@redhat.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
This commit is contained in:
committed by
Daniele Di Proietto
parent
0b1162905b
commit
1f5b157ece
@@ -567,7 +567,9 @@ dpdk_watchdog(void *dummy OVS_UNUSED)
|
||||
ovs_mutex_lock(&dpdk_mutex);
|
||||
LIST_FOR_EACH (dev, list_node, &dpdk_list) {
|
||||
ovs_mutex_lock(&dev->mutex);
|
||||
check_link_status(dev);
|
||||
if (dev->type == DPDK_DEV_ETH) {
|
||||
check_link_status(dev);
|
||||
}
|
||||
ovs_mutex_unlock(&dev->mutex);
|
||||
}
|
||||
ovs_mutex_unlock(&dpdk_mutex);
|
||||
|
Reference in New Issue
Block a user