summaryrefslogtreecommitdiff
path: root/net/9p
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2013-05-20 12:20:55 +0530
committerEric Van Hensbergen <ericvh@gmail.com>2013-05-28 09:28:42 -0500
commit535bcd3c4e8d09a62a89b2f1f3b3a80e1b3fce4b (patch)
treeca29ce00d755980579454b3232bdba82734e93bc /net/9p
parent095e7999c09afa09345db864427cb4bb4c98ae1c (diff)
net/9p: Use virtio transpart as the default transport
Make the default 9p experience better by defaulting to virtio transport if present. These days most of the users are using 9p in a virtualized setup Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 812a4cdf5302..5e94dabddb68 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -1015,6 +1015,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
goto destroy_tagpool;
if (!clnt->trans_mod)
+ clnt->trans_mod = v9fs_get_trans_by_name("virtio");
+
+ if (!clnt->trans_mod)
clnt->trans_mod = v9fs_get_default_trans();
if (clnt->trans_mod == NULL) {