ae23c9
From 8198c8d2a4f05691c2fd41ddf0b66392e6a28d65 Mon Sep 17 00:00:00 2001
ae23c9
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ae23c9
Date: Thu, 26 Jul 2018 16:40:11 +0200
ae23c9
Subject: [PATCH 265/268] e1000: Fix tso_props compat for 82540em
ae23c9
ae23c9
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ae23c9
Message-id: <20180726164011.21660-2-dgilbert@redhat.com>
ae23c9
Patchwork-id: 81522
ae23c9
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH v2 1/1] e1000: Fix tso_props compat for 82540em
ae23c9
Bugzilla: 1608778
ae23c9
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
ae23c9
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
RH-Acked-by: Juan Quintela <quintela@redhat.com>
ae23c9
RH-Acked-by: Xiao Wang <jasowang@redhat.com>
ae23c9
ae23c9
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ae23c9
ae23c9
In RHEL when you ask for an e1000-82540em that's the device you get,
ae23c9
however in upstream it's aliased to an e1000.
ae23c9
Because of the difference, we need to change the compat entry
ae23c9
for migrate_tso_props to the base type that changes e1000 as well.
ae23c9
ae23c9
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ae23c9
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
---
ae23c9
 include/hw/compat.h | 5 +++--
ae23c9
 1 file changed, 3 insertions(+), 2 deletions(-)
ae23c9
ae23c9
diff --git a/include/hw/compat.h b/include/hw/compat.h
ae23c9
index f4cc6e0..c343e8f 100644
ae23c9
--- a/include/hw/compat.h
ae23c9
+++ b/include/hw/compat.h
ae23c9
@@ -460,8 +460,9 @@
ae23c9
         .driver   = "vhost-user-blk-pci",\
ae23c9
         .property = "vectors",\
ae23c9
         .value    = "2",\
ae23c9
-    },{ /* HW_COMPAT_RHEL7_5 from HW_COMPAT_2_11 */ \
ae23c9
-        .driver   = "e1000",\
ae23c9
+    },{ /* HW_COMPAT_RHEL7_5 from HW_COMPAT_2_11 but \
ae23c9
+           bz 1608778 modified for our naming */ \
ae23c9
+        .driver   = "e1000-82540em",\
ae23c9
         .property = "migrate_tso_props",\
ae23c9
         .value    = "off",\
ae23c9
     },{ /* HW_COMPAT_RHEL7_5 from HW_COMPAT_2_10 */ \
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9