Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1488673

[PATCH 1/2] net: thunderx: Fix issue with IRQ namimg

From sunil.kovvuri@gmail.com
Newsgroups linux.kernel
Subject [PATCH 1/2] net: thunderx: Fix issue with IRQ namimg
Date 2016-09-22 11:10 +0200
Message-ID <sk8b0-4nG-17@gated-at.bofh.it> (permalink)
References <sk8b0-4nG-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Sunil Goutham <sgoutham@cavium.com>

This patch fixes a regression caused by previous commit
'Use netdev's name for naming VF's interrupts' where
irq name exceeds 20 byte array if interface's name size
is large.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
---
 drivers/net/ethernet/cavium/thunder/nic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h
index 18d12d3..3042610 100644
--- a/drivers/net/ethernet/cavium/thunder/nic.h
+++ b/drivers/net/ethernet/cavium/thunder/nic.h
@@ -305,7 +305,7 @@ struct nicvf {
 	bool			msix_enabled;
 	u8			num_vec;
 	struct msix_entry	msix_entries[NIC_VF_MSIX_VECTORS];
-	char			irq_name[NIC_VF_MSIX_VECTORS][20];
+	char			irq_name[NIC_VF_MSIX_VECTORS][IFNAMSIZ + 15];
 	bool			irq_allocated[NIC_VF_MSIX_VECTORS];
 	cpumask_var_t		affinity_mask[NIC_VF_MSIX_VECTORS];
 
-- 
2.7.4

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] BQL support and fix for a regression issue sunil.kovvuri@gmail.com - 2016-09-22 11:10 +0200
  [PATCH 2/2] net: thunderx: Support for byte queue limits sunil.kovvuri@gmail.com - 2016-09-22 11:10 +0200
    Re: [PATCH 2/2] net: thunderx: Support for byte queue limits Florian Fainelli <f.fainelli@gmail.com> - 2016-09-22 21:00 +0200
  [PATCH 1/2] net: thunderx: Fix issue with IRQ namimg sunil.kovvuri@gmail.com - 2016-09-22 11:10 +0200
  Re: [PATCH 0/2] BQL support and fix for a regression issue David Miller <davem@davemloft.net> - 2016-09-22 14:30 +0200
    Re: [PATCH 0/2] BQL support and fix for a regression issue Eric Dumazet <eric.dumazet@gmail.com> - 2016-09-22 15:20 +0200

csiph-web