[ovs-dev] [PATCH 2/3] netdev-dpdk: Fix the issue of physical port's admin state configuration
Binbin Xu
xu.binbin1 at zte.com.cn
Fri Nov 11 13:44:50 UTC 2016
When we set physical port's admin state via ovs-appctl, the application
seems to work and returns "OK". But the application doesn't work perfectly,
the state stored in database doesn't change.
Signed-off-by: Binbin Xu <xu.binbin1 at zte.com.cn>
---
lib/netdev-dpdk.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index c536992..4ed7274 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -2162,6 +2162,8 @@ netdev_dpdk_update_flags__(struct netdev_dpdk *dev,
if (!(dev->flags & NETDEV_UP)) {
rte_eth_dev_stop(dev->port_id);
}
+
+ netdev_change_seq_changed(&dev->up);
} else {
/* If DPDK_DEV_VHOST device's NETDEV_UP flag was changed and vhost is
* running then change netdev's change_seq to trigger link state
--
2.9.3
More information about the dev
mailing list