aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2013-05-20 02:50:55 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2013-05-28 10:28:42 -0400
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)
1015 goto destroy_tagpool; 1015 goto destroy_tagpool;
1016 1016
1017 if (!clnt->trans_mod) 1017 if (!clnt->trans_mod)
1018 clnt->trans_mod = v9fs_get_trans_by_name("virtio");
1019
1020 if (!clnt->trans_mod)
1018 clnt->trans_mod = v9fs_get_default_trans(); 1021 clnt->trans_mod = v9fs_get_default_trans();
1019 1022
1020 if (clnt->trans_mod == NULL) { 1023 if (clnt->trans_mod == NULL) {