numam-dpdk/examples/vhost
Yuan Wang 6f3d83c7f2 examples/vhost: fix crash when no VMDq
If the VMDq limits is 0, a divide-by-zero error occurs.
This patch replaces throwing a floating point exception with
a normal error message.

Fixes: d19533e86f ("examples/vhost: copy old vhost example")
Cc: stable@dpdk.org

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
2022-06-01 11:50:10 +02:00
..
main.c examples/vhost: fix crash when no VMDq 2022-06-01 11:50:10 +02:00
main.h examples/vhost: support async dequeue data path 2022-06-01 11:50:09 +02:00
Makefile vhost: integrate dmadev in asynchronous data-path 2022-02-10 15:59:17 +01:00
meson.build vhost: integrate dmadev in asynchronous data-path 2022-02-10 15:59:17 +01:00
virtio_net.c examples/vhost: support async dequeue data path 2022-06-01 11:50:09 +02:00