Skip to content

Commit 535bcd3

Browse files
kvaneeshericvh
authored andcommitted
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>
1 parent 095e799 commit 535bcd3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/9p/client.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
10141014
if (err < 0)
10151015
goto destroy_tagpool;
10161016

1017+
if (!clnt->trans_mod)
1018+
clnt->trans_mod = v9fs_get_trans_by_name("virtio");
1019+
10171020
if (!clnt->trans_mod)
10181021
clnt->trans_mod = v9fs_get_default_trans();
10191022

0 commit comments

Comments
 (0)