diff options
| author | Michael Biebl <biebl@debian.org> | 2024-10-02 22:18:04 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2024-10-02 22:18:04 +0200 |
| commit | 9972a27754bf5821d09a630233294b4d12faff1b (patch) | |
| tree | 4683bc4b1bb5c47147d6234c41241f84f0507449 /src/libnm-core-impl | |
| parent | 4bc688271732081f7e93ac77737645c2bb68a81c (diff) | |
| parent | 56928734cbcf1d3a02fae4f152a541df1b04e04a (diff) | |
Update upstream source from tag 'upstream/1.50.0'
Update to upstream version '1.50.0' with Debian dir 3e8ab0d456db6ba34def0fe144bdba6657c05393
Diffstat (limited to 'src/libnm-core-impl')
| -rw-r--r-- | src/libnm-core-impl/nm-setting-connection.c | 4 | ||||
| -rw-r--r-- | src/libnm-core-impl/tests/test-general.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libnm-core-impl/nm-setting-connection.c b/src/libnm-core-impl/nm-setting-connection.c index b51cd46b..3298dce6 100644 --- a/src/libnm-core-impl/nm-setting-connection.c +++ b/src/libnm-core-impl/nm-setting-connection.c @@ -1379,13 +1379,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 0a39010c..8d4ea069 100644 --- a/src/libnm-core-impl/tests/test-general.c +++ b/src/libnm-core-impl/tests/test-general.c @@ -10832,7 +10832,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, |