From patchwork Thu Mar 3 17:15:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 12767791 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 989E1C4332F for ; Thu, 3 Mar 2022 17:15:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235260AbiCCRQK (ORCPT ); Thu, 3 Mar 2022 12:16:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234870AbiCCRQE (ORCPT ); Thu, 3 Mar 2022 12:16:04 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 377EF197B54 for ; Thu, 3 Mar 2022 09:15:18 -0800 (PST) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1646327717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7HrmKgGF9OFAsF8rh9LZsbc2ElOejWJpegOQY5Xhhc8=; b=XEIDBAl+3xWDeSjywTk3uAyi4IePU5sy5gNkoxqYQWQTrAAYrYvWB1DyB7p8SOrz9zm2k1 J42kKY3xZVgZhEpRj6Gzb6X9dUD3scnbutDGuR1xT3oAhOi+/1Nm7QNhWZOk8ZEnGWFKiW lU+YNFgbsEknmsYaTzWlVdDYlAiHo91lzKSqzS/m7nRXoKEmlVD8zWTgoXknOf76lH9ixK BllY64eGeJOSbkT1HYJ858ytB5TcWx9CptLGMeAPa6aryOBDBrYRhvsCY6vglg24xjNEil HOGNT1SahgKOz3teCK7wO0XVYxkYYbt39zIgSgwAzSVzZAIZf+8fu5YAyvyvRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1646327717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7HrmKgGF9OFAsF8rh9LZsbc2ElOejWJpegOQY5Xhhc8=; b=Svjf0LzCwu8P/AyQxCqlrOnqvlVAvsdlsd/AzLI8GadFVjUE3IgtJNerpAIpbkuPx3nzxl WN71BKC4XyEiFJCg== To: netdev@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , Thomas Gleixner , Sebastian Andrzej Siewior Subject: [PATCH net-next 4/9] net: caif: Use netif_rx(). Date: Thu, 3 Mar 2022 18:15:00 +0100 Message-Id: <20220303171505.1604775-5-bigeasy@linutronix.de> In-Reply-To: <20220303171505.1604775-1-bigeasy@linutronix.de> References: <20220303171505.1604775-1-bigeasy@linutronix.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Since commit baebdf48c3600 ("net: dev: Makes sure netif_rx() can be invoked in any context.") the function netif_rx() can be used in preemptible/thread context as well as in interrupt context. Use netif_rx(). Signed-off-by: Sebastian Andrzej Siewior --- drivers/net/caif/caif_serial.c | 2 +- net/caif/chnl_net.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c index 2a7af611d43a5..688075859ae47 100644 --- a/drivers/net/caif/caif_serial.c +++ b/drivers/net/caif/caif_serial.c @@ -196,7 +196,7 @@ static void ldisc_receive(struct tty_struct *tty, const u8 *data, skb_reset_mac_header(skb); debugfs_rx(ser, data, count); /* Push received packet up the stack. */ - ret = netif_rx_ni(skb); + ret = netif_rx(skb); if (!ret) { ser->dev->stats.rx_packets++; ser->dev->stats.rx_bytes += count; diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index 414dc5671c45e..4d63ef13a1fd7 100644 --- a/net/caif/chnl_net.c +++ b/net/caif/chnl_net.c @@ -99,7 +99,7 @@ static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt) else skb->ip_summed = CHECKSUM_NONE; - netif_rx_any_context(skb); + netif_rx(skb); /* Update statistics. */ priv->netdev->stats.rx_packets++;