dpdk-fm10k/drivers/net/vhost
Maxime Coquelin 3d4cd4be57 net/vhost: fix interrupt mode
At .new_device() time, only the first vring pair is
now ready, other vrings are configured later.

Problem is that when application will setup and enable
interrupts, only the first queue pair Rx interrupt will
be enabled.

This patches fixes the issue by setting the number of
max interrupts to the number of Rx queues that will be
later initialized. Then, as soon as a Rx vring is ready
and interrupt enabled by the application, it removes the
corresponding uninitialized epoll event, and installs a
new one with the valid FD.

Fixes: 604052ae53 ("net/vhost: support queue update")

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
2020-07-30 00:41:24 +02:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build build: remove individual library versions 2019-11-20 23:05:39 +01:00
rte_eth_vhost.c net/vhost: fix interrupt mode 2020-07-30 00:41:24 +02:00
rte_eth_vhost.h net/vhost: update license to SPDX format 2018-04-27 15:54:56 +01:00
rte_pmd_vhost_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00