net/virtio: fix Rx AltiVec path by getting all packets
authorDavid Christensen <drc@linux.vnet.ibm.com>
Mon, 30 Sep 2019 18:42:16 +0000 (11:42 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commita44c4e1e3a9277a51c7c5aca5c872f04c3524050
treefb0e99de65a2f52a65f509e22a305fc89e9f4a88
parent86d1afa12c49a6929133013ae689ebf1739e46ff
net/virtio: fix Rx AltiVec path by getting all packets

The loop to read packets does not take all packets as the number of
available packets (nb_used) is decremented in the loop.

Fixes: 52b5a707e6ca ("net/virtio: add Altivec Rx")

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx_simple_altivec.c