summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium
diff options
context:
space:
mode:
authorSunil Goutham2016-09-23 11:12:27 +0200
committerDavid S. Miller2016-09-24 14:47:15 +0200
commitb4e28c1fc9c7f3b7508b9a27d7c59a0da7b1f824 (patch)
treecb8ea3d32f8f192daa70e5e179260e3524e11325 /drivers/net/ethernet/cavium
parentmlxsw: spectrum: remove redundant check if err is zero (diff)
downloadkernel-qcow2-linux-b4e28c1fc9c7f3b7508b9a27d7c59a0da7b1f824.tar.gz
kernel-qcow2-linux-b4e28c1fc9c7f3b7508b9a27d7c59a0da7b1f824.tar.xz
kernel-qcow2-linux-b4e28c1fc9c7f3b7508b9a27d7c59a0da7b1f824.zip
net: thunderx: Fix issue with IRQ namimg
This patch fixes a regression caused by previous commit when irq name exceeds 20 byte array if interface's name size is large. Fixes: e412621394fa ("net: thunderx: Use netdev's name for naming VF's interrupts") Signed-off-by: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium')
-rw-r--r--drivers/net/ethernet/cavium/thunder/nic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h
index 18d12d35039a..30426109711c 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];