Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp429547pxk; Fri, 11 Sep 2020 10:37:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlIr7HZDV7GeTz7exTqaP7pE0mdyfG6WfpTLZNO7kIa0lCcr5Hqxg8GQvttZ6DtFlUDQSq X-Received: by 2002:aa7:d6c4:: with SMTP id x4mr3292379edr.98.1599845872890; Fri, 11 Sep 2020 10:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845872; cv=none; d=google.com; s=arc-20160816; b=pSkJL+A/UdQIkQzDRo0AVSYr+wTrnb+1jBid2aH3jrQdSvT77LUguNwgJD9YvaAkVO 8y+q4FxG4s8jSkCdy+7mc3d/h+VGH1XmoeXD+yYyTYb082klI8H1AZ8gdH1fHAhGcIY1 Lcgx2pDFsqWqbK5X5lj3mG5WaDUUdV9/ObpwJXXgwwrpIZLK7f92cXOKPK4TZ9anRExb rA/0FKM23uNGW/vDNPpQAiClFPaeGD2PK2XVegMUJieFP+E8mrzH5I2F0uBf/nz6tTxU ZpY7uWocdwXlWtZgoetWsw1M26dYJa2htmydq4Dt8SBYufexINXkNIzLxhzpMOBLWb1U 97gQ== 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=4qmAuQA3/fx92wjNeJuzWHZ3mAHWFMexSeDFtrLeyLs=; b=oWakkQd1hhrIcod+r1QlPEHmmgR5MPMUBFcdgQwld1E0H1voWP+VTQr6bvIVStfLIi wOgbyMTqphJg5tanzHV2mOBLGYKrGWaNpb5WsLf8JuG7Echt8YSafzN64ym91YMUOtcv r8dpYFeOfY9jHKBYLDOfIvUbk5xtmfPhQXC7yR481vbgXAjvj0U8UQgWxj57lZIBKPnk bo7xBRTynNjRGoDJVeK7WgWa/WE5BjBMtLPuQlf81g7h8D7aQaG6EG5tucXtxx4Z9FKW 5vp+sKCj92ZCQFoGlURLgmP5L1rLZ4mXO8YIopxd0XvMaHFSVKKB8dUH6tPmgY0vZT6g KDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="m+y6z/N6"; 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 g64si1787283ede.153.2020.09.11.10.37.30; Fri, 11 Sep 2020 10:37:52 -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="m+y6z/N6"; 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 S1726417AbgIKRg5 (ORCPT + 99 others); Fri, 11 Sep 2020 13:36:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:48392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726031AbgIKMxc (ORCPT ); Fri, 11 Sep 2020 08:53:32 -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 160DC22204; Fri, 11 Sep 2020 12:53:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599828798; bh=kiSrsTIrdXRGEnNSgk/vKpZvsLrP0+0TT4GLeyXZybI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m+y6z/N6hPCw1wft2z0IlWAMXPoOQVPlcWIbY9phU62EtffSqyQ9gv6B41LjPxtsW v9FQ5mRvVC6jiGhI8rj/50+S26rMCee4WyAps+nrgsCC02grQMXuTmaQDSOdwuLO8C 1dpCPiTz13j7UeloOyy2Pv/AokJt3O+I+K8ZfpNg= 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.4 11/62] batman-adv: bla: use netif_rx_ni when not in interrupt context Date: Fri, 11 Sep 2020 14:45:54 +0200 Message-Id: <20200911122502.956523709@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122502.395450276@linuxfoundation.org> References: <20200911122502.395450276@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 cea7fdeac5aa2..9aa5daa551273 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -380,7 +380,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_free_ref(primary_if); -- 2.25.1