From patchwork Thu Sep 22 09:05:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 9344823 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6F066077A for ; Thu, 22 Sep 2016 09:07:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7ABD2A8E2 for ; Thu, 22 Sep 2016 09:07:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C5732A8F2; Thu, 22 Sep 2016 09:07:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE2102A8E4 for ; Thu, 22 Sep 2016 09:07:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bmzxi-0005Dx-T9; Thu, 22 Sep 2016 09:06:34 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bmzxK-0004Il-GN for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2016 09:06:14 +0000 Received: by mail-pf0-x243.google.com with SMTP id n24so3528385pfb.3 for ; Thu, 22 Sep 2016 02:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rWXxJPf1LdzmKW4HvLjnOLzHasdtzEHzU2KIlx8gE6Q=; b=y4WdHM5L/fCanopHUg/wFmOa/t/cNkt5x5yvaIsc3l6LC3nYq9uiuPOiusonQCa2JZ CTClL8/J34MYkMRhD1GIlR1jiEjn7Ixpm0UBmAZ60fQLkJmOr76FBzGiXmIr1JUFJ5uq bQuNSOwaBLBCiOPjWFCZJMraHCfbFmwbwq1JFfHkSFC6C5JxGGB5bKcfl3MZRUP2j9T7 RB0ECJwMgOPagiE8P60vyZgLUKPPQbllx4dY8U6cWHIzoD4SqVNXo6e7L4QBRoHbITQA b+NTasSWmI9kxrco+7giEIX1rJ6PhXWun8p5REv3etOibcBiqXDSV0GPUzjpvLHk/RD9 1zpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rWXxJPf1LdzmKW4HvLjnOLzHasdtzEHzU2KIlx8gE6Q=; b=Se2/3tbJ1U8g/zusgNYGvtMEdlcfSgMb78foQU0w9I++nvWoUZCllJGWnSYmyRpCsS dtyQpX9453HFB8HILONu+CtrVIIO4122NejJV+sbSu2YcoJTlFzepIHIvTNKt+WNlSaB BwQy9fyo8L4b5wNikhHSpYjFt5931EQ54g5p1voZffyOpqnNZdze9W/uD6I2pV+P5kPD Z8wqJEHf5033yabRKqz9SokeGTvDFrQcS5olTgkLN73rS7o+Vlw/sgrlCmuCNm53qspd lMigQ/HamWdsM6wiaKopYMOeRuvyKIBVy3tAGIjH10N7zICsIRYxoDRgeOIs9CB4KJKd 1V7Q== X-Gm-Message-State: AE9vXwOUlR8PJDZU6HgCZ+h3S3ClOADla6JHnumtA8waYiZeiFQ3DsZO9t/LDd+kVVHKLA== X-Received: by 10.98.53.65 with SMTP id c62mr1512035pfa.66.1474535149588; Thu, 22 Sep 2016 02:05:49 -0700 (PDT) Received: from machine421.in.caveonetworks.com ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id t16sm2216020pfj.76.2016.09.22.02.05.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Sep 2016 02:05:48 -0700 (PDT) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH 1/2] net: thunderx: Fix issue with IRQ namimg Date: Thu, 22 Sep 2016 14:35:20 +0530 Message-Id: <1474535121-13958-2-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474535121-13958-1-git-send-email-sunil.kovvuri@gmail.com> References: <1474535121-13958-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160922_020610_703094_18B859E3 X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sunil Goutham , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sunil Goutham 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 --- 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];