summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt_guest/0106-Migrate-some-systemd-defaults-to-the-kernel-defaults.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/boot_time_opt_guest/0106-Migrate-some-systemd-defaults-to-the-kernel-defaults.patch')
-rw-r--r--patches/boot_time_opt_guest/0106-Migrate-some-systemd-defaults-to-the-kernel-defaults.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/patches/boot_time_opt_guest/0106-Migrate-some-systemd-defaults-to-the-kernel-defaults.patch b/patches/boot_time_opt_guest/0106-Migrate-some-systemd-defaults-to-the-kernel-defaults.patch
new file mode 100644
index 0000000..1a055a0
--- /dev/null
+++ b/patches/boot_time_opt_guest/0106-Migrate-some-systemd-defaults-to-the-kernel-defaults.patch
@@ -0,0 +1,45 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Auke Kok <auke-jan.h.kok@intel.com>
3Date: Thu, 2 Aug 2018 12:03:22 -0700
4Subject: [PATCH] Migrate some systemd defaults to the kernel defaults.
5
6These settings are needed to prevent networking issues when
7the networking modules come up by default without explicit
8settings, which breaks some cases.
9
10We don't want the modprobe settings to be read at boot time
11if we're not going to do anything else ever.
12---
13 drivers/net/dummy.c | 2 +-
14 include/uapi/linux/if_bonding.h | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
18index bab3a9bb5e6f..dcd8a33c4a33 100644
19--- a/drivers/net/dummy.c
20+++ b/drivers/net/dummy.c
21@@ -43,7 +43,7 @@
22
23 #define DRV_NAME "dummy"
24
25-static int numdummies = 1;
26+static int numdummies = 0;
27
28 /* fake multicast ability */
29 static void set_multicast_list(struct net_device *dev)
30diff --git a/include/uapi/linux/if_bonding.h b/include/uapi/linux/if_bonding.h
31index 45f3750aa861..317f8326ddd7 100644
32--- a/include/uapi/linux/if_bonding.h
33+++ b/include/uapi/linux/if_bonding.h
34@@ -82,7 +82,7 @@
35 #define BOND_STATE_ACTIVE 0 /* link is active */
36 #define BOND_STATE_BACKUP 1 /* link is backup */
37
38-#define BOND_DEFAULT_MAX_BONDS 1 /* Default maximum number of devices to support */
39+#define BOND_DEFAULT_MAX_BONDS 0 /* Default maximum number of devices to support */
40
41 #define BOND_DEFAULT_TX_QUEUES 16 /* Default number of tx queues per device */
42
43--
44https://clearlinux.org
45