vfio: fix maximum number of interrupt for MSI-X
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 9 Feb 2017 19:59:43 +0000 (14:59 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Feb 2017 21:25:04 +0000 (22:25 +0100)
commit2eed820fd4fdea456103402e0ad13f955321e6cc
tree09403998013836da75452c2f2ac714ee348cb5a5
parent549b3587f5cb353d967050ef50537599c13c67fc
vfio: fix maximum number of interrupt for MSI-X

The max number of interrupt request is possible
be changed after rte_intr_callback_register, so
in get_max_intr, we need to check if necessary to
update the max_intr.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
lib/librte_eal/linuxapp/eal/eal_interrupts.c