vhost: do not inline unlikely fragmented buffers code
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 29 May 2019 13:04:18 +0000 (15:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:29 +0000 (23:54 +0900)
commit084fac96ca0331f2646002c302f389415fef69e2
tree4dad7795362a65aa62a92d1bc7df485607a4634f
parent5a5f6e78b24881941a75d6b9f1214f0ee0e2f9aa
vhost: do not inline unlikely fragmented buffers code

Handling of fragmented virtio-net header and indirect descriptors
tables was implemented to fix CVE-2018-1059. It should never
happen with healthy guests and so is already considered as
unlikely code path.

This patch moves these bits into non-inline dedicated functions
to reduce the I-cache pressure.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/vdpa.c
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h
lib/librte_vhost/virtio_net.c