Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp424118pxk; Fri, 11 Sep 2020 10:29:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsblGxRP3Sh75vGCPCODaQ7xGqHqsq0LetpT0s9soVJNerZwEu56lqVhnlcpjm9UOf9OnS X-Received: by 2002:a17:906:3759:: with SMTP id e25mr3005255ejc.281.1599845372756; Fri, 11 Sep 2020 10:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845372; cv=none; d=google.com; s=arc-20160816; b=sXSN9JVRJ7Ryrm0CDcjUwPfoGzpKzrMh/YnHH/f1Nj8mkDSbRpaFYcKVXOT22tMZ9a d+6ltkR+aepSa2nbX5fRPS14bQxt+09n2AmJ8YxH2xhwHi1SDfx89QWqnMDc1gTOwEh4 2sbVnBJUOSlIbU/RXr6DIWwigGX1EXDIJ9QNWv34sbGIyz6EvbuT4Na/+x9iX8mdawWg bpnml8UebFQaP8ioO7lCdwprW+KODZcq9Md/Dr6qrShdM8LG71G4YYQOn1dXcH0iltXg zvZc0WDNwobq9f44cvtqHhzuoxnJLRRmsT8t6F+AnYV7ZN5ckseydNcVIxVYZ/A9VCKj YwCg== 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=7oerutGzv4HDIpUOe8OpHnCRBLdtRLajV/QmelS0kN8=; b=BnO2FjK8qnZqFZ0/aDAAY9AcMaHMv+DxAXA+QUlhfapVre3HUW31tkELDUvMQLNqv1 AHO4rR5J1fQuYveQNB/l2BBxTwZ4fVNvb3E2+jDJ/49fHlqLfIXdsKyCi6YhpC31PRPg cghgtmYDuAEeOMQ4NWvdJgMqzJYBKuqt6ZJVZe7Ivv8ZkOhVMwXJG/um6WsMLlbfHXJd oD5zzAq7jlnX7qUqw45VVA48BoeeF6J1ph1Ex7YA4YUkFjVntw05aYGEKVKY6vyldMoo U0TG3+tEXddH0s3/an0aIrssBF+MdD0GKDBNxOpMxx2xh2hYC1RpwMwVq4GoElJ4ASZW 3EpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XIyfm6PI; 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 h1si1628581ejg.341.2020.09.11.10.29.09; Fri, 11 Sep 2020 10:29:32 -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=XIyfm6PI; 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 S1726338AbgIKR0d (ORCPT + 99 others); Fri, 11 Sep 2020 13:26:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:49242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbgIKM7I (ORCPT ); Fri, 11 Sep 2020 08:59:08 -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 41AE52225F; Fri, 11 Sep 2020 12:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599828958; bh=DuIXZbSJbcyKH0JuNzWZl348XxL1fJoS1J5T2eOykbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XIyfm6PIozCpg0ZVcGtiMvU0my8aKNWizMCmz7HjSo6zdJctXjoEbzGo8S4BgfES8 36U9HEp9dKe4TQjO2nyqYqROm75eSwgNtPhNH8axxJnywEhAOx84g6VXUOOUdIadc8 +nEHaiimmWRA90+iOjmyYF7xLzrJbHcaBOmNl4n0= 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.9 11/71] batman-adv: bla: use netif_rx_ni when not in interrupt context Date: Fri, 11 Sep 2020 14:45:55 +0200 Message-Id: <20200911122505.505597894@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122504.928931589@linuxfoundation.org> References: <20200911122504.928931589@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 00123064eb26d..e545b42ab0b98 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -451,7 +451,10 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, skb->len + ETH_HLEN); soft_iface->last_rx = jiffies; - 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