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>
if (src->intr_handle.fd != intr_handle->fd)
continue;
+ if (src->intr_handle.max_intr < intr_handle->max_intr)
+ src->intr_handle.max_intr = intr_handle->max_intr;
if (!src->intr_handle.max_intr)
src->intr_handle.max_intr = 1;
else if (src->intr_handle.max_intr > RTE_MAX_RXTX_INTR_VEC_ID)