bus/pci: resize interrupt event list only for MSIX
authorDavid Marchand <david.marchand@redhat.com>
Fri, 29 Oct 2021 07:38:19 +0000 (09:38 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 29 Oct 2021 12:40:46 +0000 (14:40 +0200)
commiteb89595d45ca268ebe6c0cb88f0ae17dba08d8f6
treeae229bd48375c4412bca56fc46ed53cb3bd4fb1f
parentefb57dd5bbf0ffac645d09ed4d0dbad088b602f1
bus/pci: resize interrupt event list only for MSIX

Resizing event list only makes sense in MSIX case.

Besides, event list has always been RTE_MAX_RXTX_INTR_VEC_ID large.
Let's restore this assumption for code that might rely on this property
and only enlarge the event list when necessary.

Bugzilla ID: 843, 865
Fixes: 8cb5d08db940 ("interrupts: extend event list")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
drivers/bus/pci/linux/pci_vfio.c