]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
netlink: Remove invalid flags(NLM_F_CREATE and NLM_F_EXCL) for RTM_DELLINK
authorShi Lei <shi_lei@massclouds.com>
Mon, 11 Jan 2021 02:23:34 +0000 (10:23 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Jan 2021 10:45:41 +0000 (11:45 +0100)
NLM_F_CREATE and NLM_F_EXCL are invalid for RTM_DELLINK,
so remove them.

Signed-off-by: Shi Lei <shi_lei@massclouds.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetlink.c

index ca735bb880a8defd99e7eae694fa3d157800e734..17e6eeb924a23546f24af530976ba8fdad028ed5 100644 (file)
@@ -627,8 +627,7 @@ virNetlinkDelLink(const char *ifname, virNetlinkDelLinkFallback fallback)
     g_autoptr(virNetlinkMsg) nl_msg = NULL;
     g_autofree struct nlmsghdr *resp = NULL;
 
-    nl_msg = nlmsg_alloc_simple(RTM_DELLINK,
-                                NLM_F_REQUEST | NLM_F_CREATE | NLM_F_EXCL);
+    nl_msg = nlmsg_alloc_simple(RTM_DELLINK, NLM_F_REQUEST);
     if (!nl_msg) {
         virReportOOMError();
         return -1;