If the attached flag is not set, the dev is not detached when it is desruct, and other dpdk processes will report an error when using it.
Signed-off-by: yangchang <yangch...@chinatelecom.cn> --- lib/netdev-dpdk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index e0a2dccf5..1740df0f7 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1808,7 +1808,10 @@ netdev_dpdk_process_devargs(struct netdev_dpdk *dev, new_port_id = DPDK_ETH_PORT_ID_INVALID; } } - } + } else { + dev->attached = true; + VLOG_INFO("Device '%s' has been attachde to DPDK", devargs); + } } if (new_port_id == DPDK_ETH_PORT_ID_INVALID) { -- 2.27.0.windows.1 yangch...@chinatelecom.cn _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev