From patchwork Mon Feb 8 12:07:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 8249141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EBE789F6DA for ; Mon, 8 Feb 2016 12:07:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1274F203C2 for ; Mon, 8 Feb 2016 12:07:25 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 19CB4203B8 for ; Mon, 8 Feb 2016 12:07:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aSkZp-0008DE-2K; Mon, 08 Feb 2016 12:05:57 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aSkZF-0006RS-KK for linux-arm-kernel@lists.infradead.org; Mon, 08 Feb 2016 12:05:23 +0000 Received: by mail-pf0-x241.google.com with SMTP id 66so8579389pfe.2 for ; Mon, 08 Feb 2016 04:05:01 -0800 (PST) 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=RZPugBTh7EthRGH8h/86phi6herHn25bkVEQBXI6uRg=; b=SZrB7bT6TPfIH7t6IEZRYm04FD6oru69eZ3bCLmHT0Ao0BpYL0iQAjawDeRgU22glk q7ez7uKCcCQcxtbUbAU5iIkAHQyRYmDsBjYxe8JGaCad6ucp/IPru7H94RfIPj1QWGMD ko2K6N9F07WQGVRmYovvX5WlrgfLpF2ug/JBlx30DtWfpac0mWJvK1Fs4OvsDlrt/6tj QLTIDhOioMl8c4YyrFWTiQn1DKQIixUSO4527v6M+5RgeV3BcJts49yLTWiN8MRT+hU3 8H5naRUFt/PjKnX98ArqJvf3PtNByx1ApOPovV6kVRd1cCMYsoAL3dPVU/9GHWM8T2yE owYw== 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=RZPugBTh7EthRGH8h/86phi6herHn25bkVEQBXI6uRg=; b=bKYyQXdRyKIXVBXq6n6dzGTtH3vxt9dxJ9iBC/Ia059RwWnzgBgJsSW88rAOQ2k7Xx iMCRmaDNWwzTybftMR31KjDNTo6Hh5sz1FMxwiM2H3K6ZjLw1vR56O5fHzC/ihd8sceL WyXU/tJCcHuDG6DOQ6Sz/nqiFIbOX1pGKP72HQxzdPwY61zQsfz8+QmYraLs5LxWQWgG A1ntKDVGyOIaKQkJCp8Yltx5g2sMBe4JeNVNYeQfjs89ajS08EOumI3Iyr57INEMbM7m AGT6t2qQwWPYdFbcZRB+Nlmkc4e0Roo4DGixmnRRWNhCMzXCXtrAdx+RNaPm/t0PAd2E 1idw== X-Gm-Message-State: AG10YOQnnfckZQSLWGNhaCQHx/1IdcOMHAY3NtHo6ydXSudO+iw0964WVpVqwJPh/rmXHw== X-Received: by 10.98.76.80 with SMTP id z77mr41782631pfa.121.1454933100744; Mon, 08 Feb 2016 04:05:00 -0800 (PST) Received: from localhost.localdomain ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id 17sm43082945pfq.51.2016.02.08.04.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 04:04:59 -0800 (PST) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH 2/6] net: thunderx: Use napi_schedule_irqoff() Date: Mon, 8 Feb 2016 17:37:48 +0530 Message-Id: <1454933272-45005-3-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1454933272-45005-1-git-send-email-sunil.kovvuri@gmail.com> References: <1454933272-45005-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160208_040521_895728_506DD4C6 X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: -2.7 (--) 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: sgoutham@cavium.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robert.richter@caviumnetworks.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sunil Goutham napi_schedule is being called from hard irq context, hence switch to napi_schedule_irqoff which avoids unneeded call to local_irq_save and local_irq_restore. Signed-off-by: Sunil Goutham --- drivers/net/ethernet/cavium/thunder/nicvf_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index 95db6b7..c6f146c 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -828,7 +828,7 @@ static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq) nicvf_disable_intr(nic, NICVF_INTR_CQ, qidx); /* Schedule NAPI */ - napi_schedule(&cq_poll->napi); + napi_schedule_irqoff(&cq_poll->napi); /* Clear interrupt */ nicvf_clear_intr(nic, NICVF_INTR_CQ, qidx);