]> git.baikalelectronics.ru Git - kernel.git/commit
vhost-net: initialize zcopy packet counters
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Dec 2012 07:31:51 +0000 (07:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2012 18:42:17 +0000 (13:42 -0500)
commit576bfa2735f093e7b9c6e7e843aa1481220f1f33
treeeab1d3f85c5d09d5efaa86a532b31048db10f198
parent5a1a32e9c5cf1f455fe1440e124d4bbba2fce733
vhost-net: initialize zcopy packet counters

These packet counters are used to drive the zercopy
selection heuristic so nothing too bad happens if they are off a bit -
and they are also reset once in a while.
But it's cleaner to clear them when backend is set so that
we start in a known state.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c