[PATCH 2/5] net/drivers: e1000e: stop using deprecated pci_enable_msix()

Philippe Gerum rpm at xenomai.org
Fri Mar 22 10:59:32 CET 2019


---
 kernel/drivers/net/drivers/e1000e/netdev.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/kernel/drivers/net/drivers/e1000e/netdev.c b/kernel/drivers/net/drivers/e1000e/netdev.c
index 8516dbc89..cb4f0fdcf 100644
--- a/kernel/drivers/net/drivers/e1000e/netdev.c
+++ b/kernel/drivers/net/drivers/e1000e/netdev.c
@@ -1224,9 +1224,10 @@ void e1000e_set_interrupt_capability(struct e1000_adapter *adapter)
 				for (i = 0; i < adapter->num_vectors; i++)
 					adapter->msix_entries[i].entry = i;
 
-				err = pci_enable_msix(adapter->pdev,
-						      adapter->msix_entries,
-						      adapter->num_vectors);
+				err = pci_enable_msix_range(adapter->pdev,
+							    adapter->msix_entries,
+							    adapter->num_vectors,
+							    adapter->num_vectors);
 				if (err == 0)
 					return;
 			}
-- 
2.20.1




More information about the Xenomai mailing list