Skip to content

Commit

Permalink
vhost-net: enable zerocopy tx by default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael S. Tsirkin committed Dec 6, 2012
1 parent cedb9bd commit f9611c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/vhost/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@

#include "vhost.h"

static int experimental_zcopytx;
static int experimental_zcopytx = 1;
module_param(experimental_zcopytx, int, 0444);
MODULE_PARM_DESC(experimental_zcopytx, "Enable Experimental Zero Copy TX");
MODULE_PARM_DESC(experimental_zcopytx, "Enable Zero Copy TX;"
" 1 -Enable; 0 - Disable");

/* Max number of bytes transferred before requeueing the job.
* Using this limit prevents one virtqueue from starving others. */
Expand Down

0 comments on commit f9611c4

Please sign in to comment.