vhost: return error message for mbuf allocation failure
authorIlya Maximets <i.maximets@ovn.org>
Wed, 16 Oct 2019 14:31:07 +0000 (16:31 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:22:46 +0000 (19:22 +0200)
commit19896c73935227fd345e224144a01626c309ebd1
treeb607014a063c55f87c2e412bf768a6ebf268e746
parentf974ca7a2995b59b881d68b2e422c6e59f6b7069
vhost: return error message for mbuf allocation failure

mbuf allocation failure is a hard failure that highlights some
significant issues with memory pool size or a mbuf leak.

We still have the message for subsequent chained mbufs, but not
for the first one.  It was removed while introducing extbuf
support for large buffers.  But it was useful for catching
mempool issues and needs to be returned back.

Fixes: c3ff0ac70acb ("vhost: improve performance by supporting large buffer")

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Reviewed-by: Flavio Leitner <fbl@sysclose.org>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/virtio_net.c