vhost: fix packed ring constants declaration
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 22 Nov 2018 17:09:22 +0000 (18:09 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 22 Nov 2018 22:06:26 +0000 (23:06 +0100)
commit5a12b67e74989f582cfa21bb2129ce838eb18805
tree3018b9012b03fa332d8e92d363190a27a6773278
parent0280f28122845fbf64b744a648c12e9278b1b50f
vhost: fix packed ring constants declaration

The packed ring defines were declared only if kernel
header does not declare them.
The problem is that they are not applied in upstream kernel,
and some changes in the names have been required.

This patch declares the defines unconditionally, which
fixes potential build issues.

Fixes: 297b1e7350f6 ("vhost: add virtio packed virtqueue defines")
Cc: stable@dpdk.org
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.h