summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2011-02-06 12:08:01 -0800
committerEric Van Hensbergen <ericvh@gmail.com>2011-03-15 09:57:35 -0500
commit6f69c395cefb26ebba2c9bb725296a3a4a9200ec (patch)
tree7012a54d7bef23aef8a14b938d329d87609d8937 /net/9p
parent4038866dab4e461e0ef144458bad9d70ce0c98c1 (diff)
downloadop-kernel-dev-6f69c395cefb26ebba2c9bb725296a3a4a9200ec.zip
op-kernel-dev-6f69c395cefb26ebba2c9bb725296a3a4a9200ec.tar.gz
[net/9p] Add preferences to transport layer.
This patch adds preferences field to the p9_trans_module. Through this, now transport layer can express its preference about the payload. i.e if payload neds to be part of the PDU or it prefers it to be sent sepearetly so that the transport layer can handle it in a better way. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/trans_virtio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c
index 4b236de..9b550ed 100644
--- a/net/9p/trans_virtio.c
+++ b/net/9p/trans_virtio.c
@@ -566,6 +566,7 @@ static struct p9_trans_module p9_virtio_trans = {
.request = p9_virtio_request,
.cancel = p9_virtio_cancel,
.maxsize = PAGE_SIZE*16,
+ .pref = P9_TRANS_PREF_PAYLOAD_SEP,
.def = 0,
.owner = THIS_MODULE,
};
OpenPOWER on IntegriCloud