summaryrefslogtreecommitdiffstats
path: root/net/9p/trans_common.h
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2011-01-29 00:22:36 +0100
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 15:57:35 +0100
commit4038866dab4e461e0ef144458bad9d70ce0c98c1 (patch)
treeb1e90818632d5334a952d6b2d407523d36f22fcd /net/9p/trans_common.h
parent[net/9p] Assign type of transaction to tc->pdu->id which is otherwise unsed. (diff)
downloadlinux-4038866dab4e461e0ef144458bad9d70ce0c98c1.tar.xz
linux-4038866dab4e461e0ef144458bad9d70ce0c98c1.zip
[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 04977e0ad938..76309223bb02 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.