Blame SOURCES/0006-reload-qdiscs-and-tfilters-after-removal-rh1527197.patch

c48088
From ccd98ba2146ed7285e781f73f81f456d8a5a5988 Mon Sep 17 00:00:00 2001
c48088
From: Lubomir Rintel <lkundrak@v3.sk>
c48088
Date: Mon, 8 Jan 2018 13:51:53 +0100
c48088
Subject: [PATCH] platform-linux: reload qdiscs and tfilters after removing
c48088
 them
c48088
c48088
Kernel (as of 4.14) merely ACKs our RTM_DELQDISC and RTM_DELTFILTER, not
c48088
bothering to signal the full RTM_DEL* message unless the removal is
c48088
external to NetworkManager.
c48088
c48088
https://bugzilla.redhat.com/show_bug.cgi?id=1527197
c48088
(cherry picked from commit f3b4053a91e48ba56c07d70e8ac7305e2f51924f)
c48088
---
c48088
 src/platform/nm-linux-platform.c | 5 ++++-
c48088
 1 file changed, 4 insertions(+), 1 deletion(-)
c48088
c48088
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
c48088
index 10d1a6efe..e66ab9449 100644
c48088
--- a/src/platform/nm-linux-platform.c
c48088
+++ b/src/platform/nm-linux-platform.c
c48088
@@ -4680,7 +4680,10 @@ do_delete_object (NMPlatform *platform, const NMPObject *obj_id, struct nl_msg *
c48088
 	        wait_for_nl_response_to_string (seq_result, s_buf, sizeof (s_buf)),
c48088
 	        log_detail);
c48088
 
c48088
-	if (NMP_OBJECT_GET_TYPE (obj_id) == NMP_OBJECT_TYPE_IP6_ADDRESS) {
c48088
+	if (NM_IN_SET (NMP_OBJECT_GET_TYPE (obj_id),
c48088
+	               NMP_OBJECT_TYPE_IP6_ADDRESS,
c48088
+	               NMP_OBJECT_TYPE_QDISC,
c48088
+	               NMP_OBJECT_TYPE_TFILTER)) {
c48088
 		/* In rare cases, the object is still there after we receive the ACK from
c48088
 		 * kernel. Need to refetch.
c48088
 		 *
c48088
-- 
c48088
2.14.3
c48088