Blame SOURCES/0003-networkmanager-Always-set-REORDER_HDR-flag-for-new-V.patch

9454e5
From 953da73c7f21c85f68f9316d33c76643fee2a7dd Mon Sep 17 00:00:00 2001
9454e5
From: Marius Vollmer <mvollmer@redhat.com>
9454e5
Date: Wed, 2 Nov 2016 14:44:00 +0200
9454e5
Subject: [3/7] networkmanager: Always set REORDER_HDR flag for new VLAN
9454e5
 devices
9454e5
9454e5
https://bugzilla.redhat.com/show_bug.cgi?id=1390605
9454e5
9454e5
Upstream commit:
9454e5
8ceb7172b80efba8e2d5269be078f0e65559b091
9454e5
    networkmanager: Always set REORDER_HDR flag for new VLAN devices
9454e5
9454e5
Closes #5363
9454e5
Signed-off-by: Stef Walter <stefw@redhat.com>
9454e5
 * Signing off inclusion in the rhel-7.3.1 branch
9454e5
---
9454e5
 dist/networkmanager/network.js     | Bin 132949 -> 132973 bytes
9454e5
 dist/networkmanager/network.js.map | Bin 1028731 -> 1029014 bytes
9454e5
 pkg/networkmanager/interfaces.js   |   2 ++
9454e5
 test/verify/check-networking       |   5 +++++
9454e5
 4 files changed, 7 insertions(+)
9454e5
9454e5
diff --git a/dist/networkmanager/network.js b/dist/networkmanager/network.js
9454e5
index 2cdd210a34666121baf778b40b08a492e131861b..ac346740af42b474d67e169402a8147b6a46708f 100644
9454e5
GIT binary patch
9454e5
delta 42
9454e5
wcmccG$MLq0V?(5ZxK5siQdv%7o|2AIT25kmF_11*(lKm~P}m-!!1(tW06tp|vj6}9
9454e5
9454e5
delta 18
9454e5
ZcmaFc$8oifV?(4ubD_faLIuV@&j3${2v-0A
9454e5
9454e5
diff --git a/dist/networkmanager/network.js.map b/dist/networkmanager/network.js.map
9454e5
index b037e826b92c6599f15c6c719cf933b98d53936b..dc53b3f715bd55e48472b2325ddf21fa1d556ee4 100644
9454e5
GIT binary patch
9454e5
delta 766
9454e5
zcmezU#BSPiy9u!(X2wZoMuvu_7KVmqmd1w3sTRp58w+RTaB91iIP3U3X1Q(_$}MLR
9454e5
zNq2H|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rwn4JSwY$|IaW%mu{UK+FTgyxUhE
9454e5
I;d}cI00B+B-T(jq
9454e5
9454e5
diff --git a/pkg/networkmanager/interfaces.js b/pkg/networkmanager/interfaces.js
9454e5
index 9c2cf43..fa95d9c 100644
9454e5
--- a/pkg/networkmanager/interfaces.js
9454e5
+++ b/pkg/networkmanager/interfaces.js
9454e5
@@ -743,6 +743,8 @@ function NetworkManagerModel() {
9454e5
             set("vlan", "parent",         's', settings.vlan.parent);
9454e5
             set("vlan", "id",             'u', settings.vlan.id);
9454e5
             set("vlan", "interface-name", 's', settings.vlan.interface_name);
9454e5
+            // '1' is the default, but we need to set it explicitly anyway.
9454e5
+            set("vlan", "flags",          'u', 1);
9454e5
         }
9454e5
 
9454e5
         if (settings.ethernet) {
9454e5
diff --git a/test/verify/check-networking b/test/verify/check-networking
9454e5
index 1133eec..711cd0c 100755
9454e5
--- a/test/verify/check-networking
9454e5
+++ b/test/verify/check-networking
9454e5
@@ -396,6 +396,11 @@ class TestNetworking(MachineCase):
9454e5
         b.click(".panel-heading .btn:contains('On')")
9454e5
         b.wait_not_in_text("tr:contains('Status')", "Inactive")
9454e5
 
9454e5
+        # Check that the actual kernel device has the REORDER_HDR flag
9454e5
+        # set.  NetworkManager stopped doing that for connections
9454e5
+        # created via D-Bus at some point.
9454e5
+        self.assertIn("REORDER_HDR", m.execute("ip -d link show tvlan | grep vlan"))
9454e5
+
9454e5
         # Delete it
9454e5
         b.click("#network-interface button:contains('Delete')")
9454e5
         b.wait_visible("#networking")
9454e5
-- 
9454e5
2.5.5
9454e5