]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vhost/test: fix build for vhost test - again
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 28 Aug 2019 05:37:00 +0000 (13:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:23:19 +0000 (08:23 +0200)
commit6890ea590cb787ebdfc873c3532c7be2b31a9b6e
tree4be333038e84772eb8a8fb98cc5b98fcd22c74cd
parent478e21d516d2750d1cf5a9479cc15a7818737894
vhost/test: fix build for vhost test - again

commit 264b563b8675771834419057cbe076c1a41fb666 upstream.

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: e82b9b0727ff ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vhost/test.c