]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/net/spapr_llan: Enable the RX buffer pools by default for new machines
authorThomas Huth <thuth@redhat.com>
Mon, 21 Mar 2016 16:25:24 +0000 (17:25 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 24 Mar 2016 00:17:34 +0000 (11:17 +1100)
RX buffer pools are now enabled by default for new machine types.
For older machine types, they are still disabled to avoid breaking
migration.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/net/spapr_llan.c
hw/ppc/spapr.c

index c7ce87017bfaade8b62f1812577eb8d14a7e2795..efc31cbfba68b73b47e2b7c6ca59256dd7ffbba1 100644 (file)
@@ -718,7 +718,7 @@ static Property spapr_vlan_properties[] = {
     DEFINE_SPAPR_PROPERTIES(VIOsPAPRVLANDevice, sdev),
     DEFINE_NIC_PROPERTIES(VIOsPAPRVLANDevice, nicconf),
     DEFINE_PROP_BIT("use-rx-buffer-pools", VIOsPAPRVLANDevice,
-                    compat_flags, SPAPRVLAN_FLAG_RX_BUF_POOLS_BIT, false),
+                    compat_flags, SPAPRVLAN_FLAG_RX_BUF_POOLS_BIT, true),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index ebbc6fe09388bbcf24c0cb7a4df789a7cd68cbca..65abccb2f5241a8476ebc7d172053333bf019f6a 100644 (file)
@@ -2356,7 +2356,12 @@ DEFINE_SPAPR_MACHINE(2_6, "2.6", true);
  * pseries-2.5
  */
 #define SPAPR_COMPAT_2_5 \
-        HW_COMPAT_2_5
+    HW_COMPAT_2_5 \
+    { \
+        .driver   = "spapr-vlan", \
+        .property = "use-rx-buffer-pools", \
+        .value    = "off", \
+    },
 
 static void spapr_machine_2_5_instance_options(MachineState *machine)
 {