vhost: handle mbuf allocation failure
authorSivaprasad Tummala <sivaprasad.tummala@intel.com>
Fri, 8 May 2020 11:17:51 +0000 (16:47 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit0fd5608ef97f9c467f1ecc926463cf793189443e
tree03e678a6ccd81733f79ad8abc57d29b99cab869c
parent5037d2e076a284b7e73ee3262164e9f9c42bd877
vhost: handle mbuf allocation failure

vhost buffer allocation is successful for packets that fit
into a linear buffer. If it fails, vhost library is expected
to drop the current packet and skip to the next.

The patch fixes the error scenario by skipping to next packet.
Note: Drop counters are not currently supported.

Fixes: c3ff0ac70acb ("vhost: improve performance by supporting large buffer")
Cc: stable@dpdk.org
Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c