Blame SOURCES/0001-merge-Github-PR44.patch

1c14b3
From 6cc0581bc805c8bf7ea057c065c3c36caf744ef3 Mon Sep 17 00:00:00 2001
1c14b3
From: Lyonel Vincent <lyonel@ezix.org>
1c14b3
Date: Sun, 24 Mar 2019 11:18:57 +0100
1c14b3
Subject: [PATCH] merge Github PR44
1c14b3
1c14b3
Add a class 'nvme' for NVMe devices
1c14b3
1c14b3
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
1c14b3
---
1c14b3
 src/core/pci.cc | 3 +++
1c14b3
 1 file changed, 3 insertions(+)
1c14b3
1c14b3
diff --git a/src/core/pci.cc b/src/core/pci.cc
1c14b3
index c8380c3034be..21b9033285ff 100644
1c14b3
--- a/src/core/pci.cc
1c14b3
+++ b/src/core/pci.cc
1c14b3
@@ -105,6 +105,7 @@ __ID("@(#) $Id$");
1c14b3
 #define PCI_CLASS_STORAGE_RAID       0x0104
1c14b3
 #define PCI_CLASS_STORAGE_SATA       0x0106
1c14b3
 #define PCI_CLASS_STORAGE_SAS        0x0107
1c14b3
+#define PCI_CLASS_STORAGE_NVME       0x0108
1c14b3
 #define PCI_CLASS_STORAGE_OTHER      0x0180
1c14b3
 
1c14b3
 #define PCI_BASE_CLASS_NETWORK       0x02
1c14b3
@@ -340,6 +341,8 @@ static const char *get_class_name(unsigned int c)
1c14b3
       return "sata";
1c14b3
     case PCI_CLASS_STORAGE_SAS:
1c14b3
       return "sas";
1c14b3
+    case PCI_CLASS_STORAGE_NVME:
1c14b3
+      return "nvme";
1c14b3
     case PCI_CLASS_BRIDGE_HOST:
1c14b3
       return "host";
1c14b3
     case PCI_CLASS_BRIDGE_ISA:
1c14b3
-- 
1c14b3
2.17.1
1c14b3