diff options
author | Srikanth Jampala <Jampala.Srikanth@cavium.com> | 2018-09-29 13:49:10 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-10-05 10:22:48 +0800 |
commit | 5155e118dda982342c2d21ecb292c8cc8b566e8d (patch) | |
tree | 33d35fdbb3afbf4b2d0ff767e86fad8499fbcfc1 /drivers/crypto/cavium/nitrox/nitrox_sriov.c | |
parent | crypto: cavium/nitrox - NITROX command queue changes. (diff) | |
download | linux-dev-5155e118dda982342c2d21ecb292c8cc8b566e8d.tar.xz linux-dev-5155e118dda982342c2d21ecb292c8cc8b566e8d.zip |
crypto: cavium/nitrox - use pci_alloc_irq_vectors() while enabling MSI-X.
replace pci_enable_msix_exact() with pci_alloc_irq_vectors(). get the
required vector count from pci_msix_vec_count().
use struct nitrox_q_vector as the argument to tasklets.
Signed-off-by: Srikanth Jampala <Jampala.Srikanth@cavium.com>
Reviewed-by: Gadam Sreerama <sgadam@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/cavium/nitrox/nitrox_sriov.c')
-rw-r--r-- | drivers/crypto/cavium/nitrox/nitrox_sriov.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/crypto/cavium/nitrox/nitrox_sriov.c b/drivers/crypto/cavium/nitrox/nitrox_sriov.c index 453d920fbd69..30c0aa874583 100644 --- a/drivers/crypto/cavium/nitrox/nitrox_sriov.c +++ b/drivers/crypto/cavium/nitrox/nitrox_sriov.c @@ -5,6 +5,7 @@ #include "nitrox_dev.h" #include "nitrox_hal.h" #include "nitrox_common.h" +#include "nitrox_isr.h" static inline bool num_vfs_valid(int num_vfs) { @@ -55,7 +56,7 @@ static void pf_sriov_cleanup(struct nitrox_device *ndev) nitrox_crypto_unregister(); /* cleanup PF resources */ - nitrox_pf_cleanup_isr(ndev); + nitrox_unregister_interrupts(ndev); nitrox_common_sw_cleanup(ndev); } @@ -68,7 +69,7 @@ static int pf_sriov_init(struct nitrox_device *ndev) if (err) return err; - err = nitrox_pf_init_isr(ndev); + err = nitrox_register_interrupts(ndev); if (err) { nitrox_common_sw_cleanup(ndev); return err; |