diff options
author | wangzhike <wangzhike@jd.com> | 2017-08-29 23:12:03 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-09-12 07:16:45 -0700 |
commit | 45257bf4f1cc7ba43aa066bfe62179eee749937d (patch) | |
tree | 9ebde1c4c07e96d2a63e7aa42143974c6b2c44c8 | |
parent | 38731fa9a6ca411c93fb6a8ffb2a31500a82cffb (diff) | |
download | openvswitch-45257bf4f1cc7ba43aa066bfe62179eee749937d.tar.gz |
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>
-rw-r--r-- | lib/netdev-dpdk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 62dbb7e54..9de0559ce 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -3227,7 +3227,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; |