]> git.baikalelectronics.ru Git - kernel.git/commit
vhost/test: fix build for vhost test
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 28 Aug 2019 05:37:00 +0000 (13:37 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Sep 2019 10:21:17 +0000 (06:21 -0400)
commitf846a445f88a2a4d99f25a4d92699ed5511c58eb
tree7d8ba6901d18d1ee7fc013477408ee8ff6e71e1b
parentaccb2a158e4041970ef1998eea3c806a1801fe2f
vhost/test: fix build for vhost test

Since vhost_exceeds_weight() was introduced, callers need to specify
the packet weight and byte weight in vhost_dev_init(). Note that, the
packet weight isn't counted in this patch to keep the original behavior
unchanged.

Fixes: df777a907b1b ("vhost: introduce vhost_exceeds_weight()")
Cc: stable@vger.kernel.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/test.c