diff --git a/src/libnm-core-impl/nm-setting-connection.c b/src/libnm-core-impl/nm-setting-connection.c index 19481b1502..d8a42e62d4 100644 --- a/src/libnm-core-impl/nm-setting-connection.c +++ b/src/libnm-core-impl/nm-setting-connection.c @@ -1358,13 +1358,13 @@ verify(NMSetting *setting, NMConnection *connection, GError **error) if (connection) goto after_interface_name; iface_type = NMU_IFACE_ANY; - } else if (NM_IN_STRSET(ovs_iface_type, "patch")) { + } else if (NM_IN_STRSET(ovs_iface_type, "patch", "dpdk")) { /* this interface type is internal to OVS. */ iface_type = NMU_IFACE_OVS; } else { /* This interface type also requires a netdev. We need to validate * for both OVS and KERNEL. */ - nm_assert(NM_IN_STRSET(ovs_iface_type, "internal", "system", "dpdk")); + nm_assert(NM_IN_STRSET(ovs_iface_type, "internal", "system")); iface_type = NMU_IFACE_OVS_AND_KERNEL; } } else diff --git a/src/libnm-core-impl/tests/test-general.c b/src/libnm-core-impl/tests/test-general.c index bf0f272c49..1ee05ae1df 100644 --- a/src/libnm-core-impl/tests/test-general.c +++ b/src/libnm-core-impl/tests/test-general.c @@ -10829,7 +10829,7 @@ test_connection_ovs_ifname(gconstpointer test_data) /* good if bridge, port, or patch interface */ g_object_set(s_con, NM_SETTING_CONNECTION_INTERFACE_NAME, "ovs123123123123130123123", NULL); - if (!ovs_iface_type || nm_streq(ovs_iface_type, "patch")) + if (!ovs_iface_type || NM_IN_STRSET(ovs_iface_type, "patch", "dpdk")) nmtst_assert_connection_verifies(con); else { nmtst_assert_connection_unnormalizable(con,