Skip to content

Commit

Permalink
net/9p: Use virtio transpart as the default transport
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed May 28, 2013
1 parent 095e799 commit 535bcd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,9 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
if (err < 0)
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();

Expand Down

0 comments on commit 535bcd3

Please sign in to comment.