aboutsummaryrefslogtreecommitdiff
path: root/net/9p/trans_common.h
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2011-01-28 15:22:36 -0800
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 09:57:35 -0500
commit4038866dab4e461e0ef144458bad9d70ce0c98c1 (patch)
treeb1e90818632d5334a952d6b2d407523d36f22fcd /net/9p/trans_common.h
parent9bb6c10a4ed48aef49a7243a6f798694722cf380 (diff)
[net/9p] Add gup/zero_copy support to VirtIO transport layer.
Modify p9_virtio_request() and req_done() functions to support additional payload sent down to the transport layer through tc->pubuf and tc->pkbuf. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/trans_common.h')
-rw-r--r--net/9p/trans_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/9p/trans_common.h b/net/9p/trans_common.h
index 04977e0ad93..76309223bb0 100644
--- a/net/9p/trans_common.h
+++ b/net/9p/trans_common.h
@@ -12,6 +12,9 @@
*
*/
+/* TRUE if it is user context */
+#define P9_IS_USER_CONTEXT (!segment_eq(get_fs(), KERNEL_DS))
+
/**
* struct trans_rpage_info - To store mapped page information in PDU.
* @rp_alloc:Set if this structure is allocd, not a reuse unused space in pdu.