Re: [PATCH v5 3/4] uio_pci_generic: add MSI/MSI-X support
From: Stephen Hemminger
Date: Tue Oct 06 2015 - 17:36:41 EST
On Tue, 6 Oct 2015 20:17:38 +0300
Vlad Zolotarov <vladz@xxxxxxxxxxxxxxxxxxxx> wrote:
> + int i, vectors = pci_msix_vec_count(pdev);
> +
> + if (vectors <= 0)
> + return false;
> +
Since devices like fm10k can thousands of MSI vectors, and often systems
have limited number of slots, some resource control is needed.
I limited the number in my version. That was one of the reasons for the late
binding of MSI vectors. Intended to allow application to ask for how
many it wanted.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/