Skip to contentSkip to conversation

add placeholder for packet extension to block interface

PATCH In review Jan Beulich 2 participants 3 messages Dec 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add placeholder for packet extension to block interface

While the corresponding implementation has been in our trees for quite a while, it's in a state that doesn't make it suitable for submission, and the original author having left the company leaves open to find someone to complete this work. Yet to prevent problems with other interface extensions we'd like to keep the slot in the number space reserved for the purpose it has been serving here.

xen/include/public/io/blkif.h +4 -0
@@ -76,6 +76,10 @@
  * "feature-flush-cache" node!
  */
 #define BLKIF_OP_FLUSH_DISKCACHE   3
+/*
+ * Device specific command packet contained within the request
+ */
+#define BLKIF_OP_PACKET            4
 
 /*
  * Maximum scatter/gather segments per request.

While the corresponding implementation has been in our trees for quite a while, it's in a state that doesn't make it suitable for submission, and the original author having left the company leaves open to find someone to complete this work. Yet to prevent problems with other interface extensions we'd like to keep the slot in the number space reserved for the purpose it has been serving here.

xen/include/public/io/blkif.h +4 -0
@@ -76,6 +76,10 @@
  * "feature-flush-cache" node!
  */
 #define BLKIF_OP_FLUSH_DISKCACHE   3
+/*
+ * Device specific command packet contained within the request
+ */
+#define BLKIF_OP_PACKET            4
 
 /*
  * Maximum scatter/gather segments per request.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 12 lines · Jan Beulich

While the corresponding implementation has been in our trees for quite a while, it's in a state that doesn't make it suitable for submission, and the original author having left the company leaves open to find someone to complete this work. Yet to prevent problems with other interface extensions we'd like to keep the slot in the number space reserved for the purpose it has been serving here.

xen/include/public/io/blkif.h line 82

Quoted 7 lines
xen/include/public/io/blkif.h +4 -0
@@ -76,6 +76,10 @@
  * "feature-flush-cache" node!
  */
 #define BLKIF_OP_FLUSH_DISKCACHE   3
+/*
+ * Device specific command packet contained within the request
+ */
+#define BLKIF_OP_PACKET            4

Without more details, perhaps it would be better to call this BLKIF_OP_RESERVED_1 or BLKIF_OP_RESERVED_NOVELL. It makes it clearer what is going on (used internally by Novell for feature not yet submitted upstream), and the name can be changed to BLKIF_OP_PACKET if the support ever gets cleaned up and accepted.

-- Keir

Quoted 9 lines
xen/include/public/io/blkif.h +0 -0
 /*
  * Maximum scatter/gather segments per request.
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 12 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 9 lines · Jan Beulich

While the corresponding implementation has been in our trees for quite a while, it's in a state that doesn't make it suitable for submission, and the original author having left the company leaves open to find someone to complete this work. Yet to prevent problems with other interface extensions we'd like to keep the slot in the number space reserved for the purpose it has been serving here.

Quoted 16 lines

xen/include/public/io/blkif.h line 82

Quoted 10 lines
xen/include/public/io/blkif.h +4 -0
@@ -76,6 +76,10 @@
  * "feature-flush-cache" node!
  */
 #define BLKIF_OP_FLUSH_DISKCACHE   3
+/*
+ * Device specific command packet contained within the request
+ */
+#define BLKIF_OP_PACKET            4

Without more details, perhaps it would be better to call this BLKIF_OP_RESERVED_1 or BLKIF_OP_RESERVED_NOVELL. It makes it clearer what is going on (used internally by Novell for feature not yet submitted upstream), and the name can be changed to BLKIF_OP_PACKET if the support ever gets cleaned up and accepted.

How about this one then?

While the corresponding implementation has been in our trees for quite a while, it's in a state that doesn't make it suitable for submission, and the original author having left the company leaves open to find someone to complete this work. Yet to prevent problems with other interface extensions we'd like to keep the slot in the number space reserved for the purpose it has been serving here.

xen/include/public/io/blkif.h +5 -0
@@ -76,6 +76,11 @@
  * "feature-flush-cache" node!
  */
 #define BLKIF_OP_FLUSH_DISKCACHE   3
+/*
+ * Used in SLES sources for device specific command packet
+ * contained within the request. Reserved for that purpose.
+ */
+#define BLKIF_OP_RESERVED_1        4
 
 /*
  * Maximum scatter/gather segments per request.

While the corresponding implementation has been in our trees for quite a while, it's in a state that doesn't make it suitable for submission, and the original author having left the company leaves open to find someone to complete this work. Yet to prevent problems with other interface extensions we'd like to keep the slot in the number space reserved for the purpose it has been serving here.

xen/include/public/io/blkif.h +5 -0
@@ -76,6 +76,11 @@
  * "feature-flush-cache" node!
  */
 #define BLKIF_OP_FLUSH_DISKCACHE   3
+/*
+ * Used in SLES sources for device specific command packet
+ * contained within the request. Reserved for that purpose.
+ */
+#define BLKIF_OP_RESERVED_1        4
 
 /*
  * Maximum scatter/gather segments per request.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel