Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4141437pxk; Tue, 8 Sep 2020 11:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuOE4C832rXTC0TcjMqkkl9L60ikW1q6xVHstC4QWiJ8jFmof/3bxTuCil/H3w+AAOzIg9 X-Received: by 2002:a17:906:f6c6:: with SMTP id jo6mr9251913ejb.251.1599590543197; Tue, 08 Sep 2020 11:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599590543; cv=none; d=google.com; s=arc-20160816; b=IFX6C6KPqS2qcQGABEYVmscKKUqLp+I8Uzu5vlVm7rKtudyTiw6YHZb2Adks6yhktk GfSTVPGNZZQDipjnX8ac13+8WMzgkqDfiYkwztV0L/wKthSDyhtrPqSndyoV1IXhSnpD h+LRwlTrgxQx7AkWn8KjczRDuOKoNaIf0NTnQ3CyqSLqM/8DMxwvIGNrPhNXZxqwXQIa OFeCiRylX8OvuVxiSUaf2L1+Bs+y+xBv9MLEzTS4gxmC6ZkzHiHzKhlt0Zdk2Tj/2nJb 5oKXa6PEFlSC76qvZsb1qfmWf4y0NrpPw7Jk6txcZ+tg6ffUiIV+wge8pZvku62v5NWC kwOw== 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=ottxSuY+BIlFiBDRtAMrnNDESvVMWJCi7Fjs/+w6ZT4=; b=LpRvO24zDrlylIwaybw+/rhpPfTnUafiVYVHQgppOB35x0cXq3GLKXEKd1CzXX1o2F UpjvLo2Qg2Up9eilll4Hu1w3+SGEExFcNEdcueIURmksERT0RkuMdDW0bIYcJjUE27qf Fa7U/ErpXEOlK6usPMOZJfQ2XtJXKDmAf5uLupPfplkkmsc8m5fN4bKb6Dks8QYFxmIn YHPKkb2M4mVL7RL0ak1CH+zHVTHFW0Lx1WOx2SXIGinrM6gXeIMOTCYIhSQeTdi2bz5C xke18NVcAPwMWdMYY/YdPiQeVi1b73+8B4WqNoUNP6Ie3RVRJm8lkj0ayC6bFUyPgQhZ qWAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="h+2Nl/nO"; 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 g6si5975230edw.254.2020.09.08.11.42.00; Tue, 08 Sep 2020 11:42:23 -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="h+2Nl/nO"; 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 S1731646AbgIHSjR (ORCPT + 99 others); Tue, 8 Sep 2020 14:39:17 -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 S1731340AbgIHQJA (ORCPT ); Tue, 8 Sep 2020 12:09:00 -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 924E02413F; Tue, 8 Sep 2020 15:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599580146; bh=C+sspah+adC51dOr6AFQPhhK0rp0cgX9yAuNS66E3mY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h+2Nl/nODGfQ20Q7dTFBTe80imYdOB+2kI1m0EKBEjyCEt+bZ95Xk6kcoaORb30VZ OQP7EDa9QkUsBqmKrVS/wRcdtuynBvsczO83E54Djch2JuyiY47wNWSG37D9o9oV2h p4QnBzyvR/dqAYZgqB6usUaF4JUj/4vEVckcZFX8= 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 4.19 18/88] batman-adv: bla: use netif_rx_ni when not in interrupt context Date: Tue, 8 Sep 2020 17:25:19 +0200 Message-Id: <20200908152221.986029312@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908152221.082184905@linuxfoundation.org> References: <20200908152221.082184905@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 85faf25c29122..9b8bf06ccb613 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -450,7 +450,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