From patchwork Fri Sep 23 09:12:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 9347829 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 AD7A1607D0 for ; Fri, 23 Sep 2016 09:17:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B0172A189 for ; Fri, 23 Sep 2016 09:17:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FBD32A2AF; Fri, 23 Sep 2016 09:17:12 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 A28392A189 for ; Fri, 23 Sep 2016 09:17:10 +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 1bnMa7-0006Kf-3J; Fri, 23 Sep 2016 09:15:43 +0000 Received: from mail-pa0-x244.google.com ([2607:f8b0:400e:c03::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bnMXY-0002DD-BU for linux-arm-kernel@lists.infradead.org; Fri, 23 Sep 2016 09:13:08 +0000 Received: by mail-pa0-x244.google.com with SMTP id oz2so4819466pac.0 for ; Fri, 23 Sep 2016 02:12:43 -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=H5FSbnDZ2rOjwqSgETj6y8HvIBEK8DYX4mjG2jvm0bE=; b=RiWhpixGQhlz0HQcNEqY/wNFFi3asxcbtKSKVdWrd8AUcucQpNSq08MuErhmwYA/5o GUdHwSW+LWh5u9064vnAxUpMI7QqLYt4MRM9QwdoBFHyMa8ydRLtjtms+VRMsIiGobbh F3AtjalsGCgjoU79BBCPGTZ9D0JhqgTMnoa3A73yJ+3ge7J/3/iYteEbjUbh1Z+0aMeQ 4SRB9TnJLEYE2m5ZrTdMVSZ9gFxVctmkQ06OCYA9lVDS3HnwS8U3BLUpgtalECkXQVav G4v2OzHcZOFsziXvrhpaIikePBggcgNFqGP1dlErHEIC8veA/C7zOAXdMmUydu+RgcCs c9rQ== 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=H5FSbnDZ2rOjwqSgETj6y8HvIBEK8DYX4mjG2jvm0bE=; b=glZrHBBp4zvpULJX8UCn3gYYEJ57UwqbbIfikaLZIwELSGsbRfDjg3IbnMJgkYqfY+ z8m+JoQrQJlae8t3dsVQzSju+pKgrxEQpyYnbn5ApRV2UB6+iY9SR4kulOdyKijv8LTp TLzRuVsXqBg14H//VQsDXoTQyBO9+vML665YVrFadTlM5O6Z/PxB8KkqtinfmSUm90Ho YZnDzc9dW6egNHJpPPAe17B1Dl64hQc6VLUb17Q5WmKVi1X1c5TStm26EhN2sFjut8bn bMhI/CQtVJ0bBthhiOf/CWHEIfm2d0YBl22wzKyC5X4DPDVrVt2OHRedoTudO7KC+43N 1r4Q== X-Gm-Message-State: AE9vXwO8Gl9aePD8rt45Rx0y2MFKDc62LD+Ns54QxvNOz3Yuvyt9nFWA3VKU0IUvZq3DMA== X-Received: by 10.66.217.170 with SMTP id oz10mr10798906pac.61.1474621963362; Fri, 23 Sep 2016 02:12:43 -0700 (PDT) Received: from machine421.in.caveonetworks.com ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id q2sm9807338pfi.35.2016.09.23.02.12.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 02:12:42 -0700 (PDT) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH v2 1/2] net: thunderx: Fix issue with IRQ namimg Date: Fri, 23 Sep 2016 14:42:27 +0530 Message-Id: <1474621948-9172-2-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474621948-9172-1-git-send-email-sunil.kovvuri@gmail.com> References: <1474621948-9172-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160923_021304_915421_F12D82A7 X-CRM114-Status: GOOD ( 10.56 ) 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 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 --- 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];