diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-12-06 07:56:00 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-12-06 10:09:18 -0500 |
commit | f9611c43ab0ddaf547b395c90fb842f55959334c (patch) | |
tree | e21360d462c22fa0780a6e9abcfb1468be48a990 /drivers/vhost/net.c | |
parent | cedb9bdce099206290a2bdd02ce47a7b253b6a84 (diff) |
vhost-net: enable zerocopy tx by default
Zero copy TX has been around for a while now.
We seem to be down to eliminating theoretical bugs
and performance tuning at this point:
it's probably time to enable it by default so that
most users get the benefit.
Keep the flag around meanwhile so users can experiment
with disabling this if they experience regressions.
I expect that we will remove it in the future.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r-- | drivers/vhost/net.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index aa76ca72606a..ebd08b21b234 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c | |||
@@ -30,9 +30,10 @@ | |||
30 | 30 | ||
31 | #include "vhost.h" | 31 | #include "vhost.h" |
32 | 32 | ||
33 | static int experimental_zcopytx; | 33 | static int experimental_zcopytx = 1; |
34 | module_param(experimental_zcopytx, int, 0444); | 34 | module_param(experimental_zcopytx, int, 0444); |
35 | MODULE_PARM_DESC(experimental_zcopytx, "Enable Experimental Zero Copy TX"); | 35 | MODULE_PARM_DESC(experimental_zcopytx, "Enable Zero Copy TX;" |
36 | " 1 -Enable; 0 - Disable"); | ||
36 | 37 | ||
37 | /* Max number of bytes transferred before requeueing the job. | 38 | /* Max number of bytes transferred before requeueing the job. |
38 | * Using this limit prevents one virtqueue from starving others. */ | 39 | * Using this limit prevents one virtqueue from starving others. */ |