numam-dpdk/lib/librte_vhost
Maxime Coquelin 996096e629 vhost/crypto: fix build with gcc 4.7.2
Build error has been reported by Intel build system:
SUSE12SP3_64 / Linux 3.7.10-1 / GCC 4.7.2
lib/librte_vhost/vhost_crypto.c: In function ‘rte_vhost_crypto_set_zero_copy’:
lib/librte_vhost/vhost_crypto.c:1192:2: error:
comparison of unsigned expression < 0 is always false

As enums can be either signed or unsigned, this patch removes
the negative check and cast to unsigned the upper limit check.

Fixes: 939066d965 ("vhost/crypto: add public function implementation")

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-04-27 11:31:39 +02:00
..
fd_man.c vhost: add pipe event for optimizing negotiation 2018-03-30 17:25:45 +02:00
fd_man.h vhost: add pipe event for optimizing negotiation 2018-03-30 17:25:45 +02:00
iotlb.c vhost: remove pending IOTLB entry if miss request failed 2018-02-05 19:56:04 +01:00
iotlb.h vhost: remove pending IOTLB entry if miss request failed 2018-02-05 19:56:04 +01:00
Makefile vhost/crypto: fix build without cryptodev 2018-04-17 12:36:40 +02:00
meson.build vhost/crypto: add public function implementation 2018-04-14 00:43:30 +02:00
rte_vdpa.h vhost: support selective datapath 2018-04-14 00:40:21 +02:00
rte_vhost_crypto.h vhost/crypto: add public function implementation 2018-04-14 00:43:30 +02:00
rte_vhost_version.map vhost: introduce safe API for GPA translation 2018-04-23 16:04:30 +02:00
rte_vhost.h vhost: deprecate unsafe GPA translation API 2018-04-23 17:12:13 +02:00
socket.c eal: set name when creating a control thread 2018-04-25 00:51:31 +02:00
vdpa.c vhost: support selective datapath 2018-04-14 00:40:21 +02:00
vhost_crypto.c vhost/crypto: fix build with gcc 4.7.2 2018-04-27 11:31:39 +02:00
vhost_user.c vhost: ensure all range is mapped when translating QVAs 2018-04-23 16:04:30 +02:00
vhost_user.h vhost/crypto: add user message structure 2018-04-14 00:43:30 +02:00
vhost.c vhost: check all range is mapped when translating GPAs 2018-04-23 16:04:30 +02:00
vhost.h vhost: introduce safe API for GPA translation 2018-04-23 16:04:30 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: handle virtually non-contiguous buffers in Rx-mrg 2018-04-23 17:12:13 +02:00