aboutsummaryrefslogtreecommitdiff
path: root/include/xen/interface/io/ring.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-08-13 16:43:39 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-08-13 16:43:39 -0400
commit5a04ef501433ae85b9cea986791fe222c45ce3a7 (patch)
tree6c3eba2f7e8aec171d95a96befff111fbeba7275 /include/xen/interface/io/ring.h
parent6bd59b2c5c8042004937c6f2b1f3c315a6239429 (diff)
parent401390fbc8e28bb07851be6bbe0b343a0e9f8306 (diff)
Merge tag 'v3.2.50' into v3.2-rt
This is the 3.2.50 stable release
Diffstat (limited to 'include/xen/interface/io/ring.h')
-rw-r--r--include/xen/interface/io/ring.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xen/interface/io/ring.h b/include/xen/interface/io/ring.h
index 75271b9a8f61..7d28aff605c7 100644
--- a/include/xen/interface/io/ring.h
+++ b/include/xen/interface/io/ring.h
@@ -188,6 +188,11 @@ struct __name##_back_ring { \
#define RING_REQUEST_CONS_OVERFLOW(_r, _cons) \
(((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
+/* Ill-behaved frontend determination: Can there be this many requests? */
+#define RING_REQUEST_PROD_OVERFLOW(_r, _prod) \
+ (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
+
+
#define RING_PUSH_REQUESTS(_r) do { \
wmb(); /* back sees requests /before/ updated producer index */ \
(_r)->sring->req_prod = (_r)->req_prod_pvt; \