From patchwork Thu Feb 11 16:20:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kovvuri X-Patchwork-Id: 8282341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 361D1BEEE5 for ; Thu, 11 Feb 2016 16:20:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 580602020F for ; Thu, 11 Feb 2016 16:20:05 +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 8C44F20155 for ; Thu, 11 Feb 2016 16:20:04 +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 1aTtwt-0000Xd-J9; Thu, 11 Feb 2016 16:18:31 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aTtwU-00007f-NC for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2016 16:18:09 +0000 Received: by mail-pf0-x243.google.com with SMTP id 71so2733982pfv.1 for ; Thu, 11 Feb 2016 08:17:46 -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=PyqKDPrSMA8j6lGLWhFUhgBVcnvvblNjb+Jn93e1s44wuFQfkEyv4LxQBbxK7HXJpN O87+M71bEOweVpx5/K6ZnsEQR6Z/eAXK5fUwN5vTfA+uShT3stThtkZGh0NTt5CilY5w /rWrWIl2bVHz8vGbQOarexIFacqyByGDdRJYD7T8DGC/W9zN3wX6775Bdsyoyuk3+qL+ 0lBJYrhbYl6UxVSESuj/ANH3ZHUya7YLU+iZXlFFy2Wau9vhDtBeMASjzWhUVYcEIscD 5wWfZr9If6zZCUrfwbSwq1skCppIqGH8aNF0Yg7fZ8l09Ju2f5JIPFnq/PB991TOpyfk qa5w== 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=NFa0HwDq+jFvnwcU8W2+TqlEgz7x4tu9a/bhQXyH97XIXVxSx2et87Rt4gqcnbIeOg unLc0AKRP0k8GNkuTZauLXRW99sY5J3lXA91E2CJoJpAqvDMtYRVKyaB5oR+Cxw/lRvp HnGIh/IYeWvHVRKvzsLbq29G4c0IQtEVmcgxvLzdDd2DO+jg43xPlbWTzFy2cD1hgRLC PcvNNl9/Z1GfMnpww7a608JbsObQM0c5ZLg9d3f9XKK/HFDnMUW+Jzzd5LlGIU9J7jgP OXb+OcCFxAlm6cMWYosmGzOOzvlFK6/bIcPVVa6xiVAuCeFIpHWpQJaE2wm9mqg/vimE D3gw== X-Gm-Message-State: AG10YOShcoQEEyEDyasIVznpd/fA3Q51zCqQAMyMASzRQqTIoQPuSkCDanwyEirCXuMZBw== X-Received: by 10.98.75.22 with SMTP id y22mr68867455pfa.147.1455207465933; Thu, 11 Feb 2016 08:17:45 -0800 (PST) Received: from localhost.localdomain ([14.140.2.178]) by smtp.googlemail.com with ESMTPSA id s90sm13355894pfa.49.2016.02.11.08.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Feb 2016 08:17:45 -0800 (PST) From: sunil.kovvuri@gmail.com To: netdev@vger.kernel.org Subject: [PATCH v2 2/6] net: thunderx: Use napi_schedule_irqoff() Date: Thu, 11 Feb 2016 21:50:22 +0530 Message-Id: <1455207626-35488-3-git-send-email-sunil.kovvuri@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1455207626-35488-1-git-send-email-sunil.kovvuri@gmail.com> References: <1455207626-35488-1-git-send-email-sunil.kovvuri@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160211_081807_061315_54309026 X-CRM114-Status: GOOD ( 11.81 ) X-Spam-Score: -1.4 (-) 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=-3.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,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);