+5
−0
+34
−0
+68
−0
Loading
To handle multiple interrupts 3 new interfaces have been added spdk_pci_device_enable_interrupts() It first checks if the device has multiple interrupt vector capability, and based on that it creates a bunch of eventfds. Finally interrupt is enabled by mapping those eventfds to interrupt vector. The interrupt vector offset 0 is used for device fd, Interrupt vector offset 1 onwards is mapped to eventfd at index 0 onwards. spdk_pci_device_disable_interrupts() disables the interrupts and closes all the eventfds. spdk_pci_device_get_interrupt_efd_by_index() returns the device fd for index 0, and returns the eventfd for any index > 0. Change-Id: Ifef38ce89ce7c0e58652a30a61e0df448858398d Signed-off-by:Ankit Kumar <ankit.kumar@samsung.com> Signed-off-by:
Liu, Xiaodong <xiaodong.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24903 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>