mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-dpdk: update vhost user client port status.
After ovs-vswitchd reboots, vhost user client port status is displayed as LINK DOWN though the traffic is OK. The problem is that the port may be udpated while the vhost_reconfigured is false. Then the vhost_reconfigured is updated to true. As a result, the vhost port status is kept as LINK-DOWN. Signed-off-by: wangzhike <wangzhike@jd.com> Signed-off-by: Darrell Ball <dlu998@gmail.com>
This commit is contained in:
@@ -3229,7 +3229,11 @@ dpdk_vhost_reconfigure_helper(struct netdev_dpdk *dev)
|
||||
}
|
||||
|
||||
if (netdev_dpdk_get_vid(dev) >= 0) {
|
||||
dev->vhost_reconfigured = true;
|
||||
if (dev->vhost_reconfigured == false) {
|
||||
dev->vhost_reconfigured = true;
|
||||
/* Carrier status may need updating. */
|
||||
netdev_change_seq_changed(&dev->up);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user