Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4133004pxk; Tue, 8 Sep 2020 11:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXjKbyGeZGYLx2mgY0Lbqy7MnuYa24I2DttZTchTDB9Ez7wb7fBRKq/1MU1g9R9QBXIJiv X-Received: by 2002:a17:906:2a0d:: with SMTP id j13mr28139882eje.474.1599589814745; Tue, 08 Sep 2020 11:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589814; cv=none; d=google.com; s=arc-20160816; b=Ch6GbM89YXoPRkl6/xKPUWVQNeFaO9srbSqsgB09PxLXRwf5SX4EpxVovsdfurMHNo etendpFCBLdugGbHwU7vAfk3zV4yAFhCK205In02EXVQrbIBhGB418Eo2zuko7H+SDDC BRbK506U2D4nlzyULNxhpFQnODkOavqNLmotbq1SInPCa55lLmLwWLFgdwwM8tzdMnKv tWUhNi+2SGJ+BkdIjNAaWnLVeuXeBFRuLeh4s94djLY7mrFE+pDIWNaCgFQ0DM8FoXhX Pasb0ln64v3G0y3mQyFENobUzllEOQfChZHHqED3Mmt91BJDIC3iFLEPZw0BB1b2slFv diQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RMwC8XhK8/smtzDN2vudjZX30hcmTaP/S7s/fBPHuQg=; b=O/oMlZ0H7z5nJ3oNU4f2jWNPVG8Lgb0UYmIT8xC3lInsq1kMRiwOvBaQFAzyDaIb12 yASl/Drq3BqeE16cY/YOdHFsRhL0Hh66JGKobuJcPgQflPzEsYB6Fq5WhPoOA3Eyd68C yzj8l+MeyuQa49eTMh7XQ+e0oPYxkvOABhgIxwZNzC7rTbQNebxKGbGVXnxtvPr1j+Cp j+FQzAjT0g5Fh/fHUcSsZXjdbFrrYH2iDClqifHE+UNGAE2R38aVv63NRpcP1/pZN+gY YLxCJcjEmlpmqezuOo9G/XkNHdCVBs0I0UvBkGnPi5SZLxJYaAHLrl8W8q//5TXiCJJ3 61yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iIpf5qD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg23si12859691edb.229.2020.09.08.11.29.52; Tue, 08 Sep 2020 11:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iIpf5qD3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731753AbgIHS3A (ORCPT + 99 others); Tue, 8 Sep 2020 14:29:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:55072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731406AbgIHQKZ (ORCPT ); Tue, 8 Sep 2020 12:10:25 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18515247F2; Tue, 8 Sep 2020 15:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599579764; bh=rHznUdI3LeMZp3r9LhOKJyeXKiA+8BJMQPfnLyx0oxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iIpf5qD3E7GG6PL9Y1md4J2eJmUzm2JcK4u2nDrwiwKB4JX3G54w0ffS6gi01Ug+w 1uEN55qzzYjQjUhyLj1G8XKWNNvuVH2J66gt4C78CXJke4c8D62mMFfzZ4apsKAiXh abIyrs34H4zwCefsAyOtGi6tD3/Dko8ruWfyH55k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jussi Kivilinna , Sven Eckelmann , Simon Wunderlich , Sasha Levin Subject: [PATCH 5.4 025/129] batman-adv: bla: use netif_rx_ni when not in interrupt context Date: Tue, 8 Sep 2020 17:24:26 +0200 Message-Id: <20200908152230.949473611@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908152229.689878733@linuxfoundation.org> References: <20200908152229.689878733@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jussi Kivilinna [ Upstream commit 279e89b2281af3b1a9f04906e157992c19c9f163 ] batadv_bla_send_claim() gets called from worker thread context through batadv_bla_periodic_work(), thus netif_rx_ni needs to be used in that case. This fixes "NOHZ: local_softirq_pending 08" log messages seen when batman-adv is enabled. Fixes: 23721387c409 ("batman-adv: add basic bridge loop avoidance code") Signed-off-by: Jussi Kivilinna Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich Signed-off-by: Sasha Levin --- net/batman-adv/bridge_loop_avoidance.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 663a53b6d36e6..5f6309ade1ea1 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -437,7 +437,10 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, batadv_add_counter(bat_priv, BATADV_CNT_RX_BYTES, skb->len + ETH_HLEN); - netif_rx(skb); + if (in_interrupt()) + netif_rx(skb); + else + netif_rx_ni(skb); out: if (primary_if) batadv_hardif_put(primary_if); -- 2.25.1