mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: Fix IRQ names in multi interface case
Issue: IRQ names not correct when multiple interfaces probed with nvethernet driver because of static array. Fix: Move irq names array inside private data structure so that every interface will have unique name. Bug 200762612 Change-Id: I9d55b62c345c458fa65e2ad4612ba55473e34752 Signed-off-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2588659 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
1d0b94cfa9
commit
d93210ee62
@@ -78,7 +78,7 @@
|
||||
/**
|
||||
* @brief Maximum index for IRQ numbers array.
|
||||
*/
|
||||
#define ETHER_IRQ_MAX_IDX 8
|
||||
#define ETHER_IRQ_MAX_IDX 9
|
||||
/**
|
||||
* @brief Size of Ethernet IRQ name.
|
||||
*/
|
||||
@@ -455,6 +455,8 @@ struct ether_priv_data {
|
||||
int rx_irqs[ETHER_MAX_IRQS];
|
||||
/** Array of VM IRQ numbers */
|
||||
int vm_irqs[OSI_MAX_VM_IRQS];
|
||||
/** IRQ name */
|
||||
char irq_names[ETHER_IRQ_MAX_IDX][ETHER_IRQ_NAME_SZ];
|
||||
/** memory allocation mask */
|
||||
unsigned long long dma_mask;
|
||||
/** Current state of features enabled in HW*/
|
||||
|
||||
Reference in New Issue
Block a user