From patchwork Wed Apr 27 16:46:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12829182 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 78A8DC433EF for ; Wed, 27 Apr 2022 16:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243621AbiD0Qum (ORCPT ); Wed, 27 Apr 2022 12:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243556AbiD0Qu0 (ORCPT ); Wed, 27 Apr 2022 12:50:26 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E1EA3A6AEF; Wed, 27 Apr 2022 09:47:14 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 76CE5100004; Wed, 27 Apr 2022 16:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1651078033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IYIqvJTwu0bd9MyK1FEYDFg2VmvBo/CFuwJH9CPsXY0=; b=B74oLQpcutdnsX852UtoMp3zdYJNns/kHFxxnbQijeblBz2/6TZizfJWq/KP0wXxgavSh1 Hrtm18sGHvOcUPXtnhpkSRqR6lmcL+KhdNaJhyWOQGepHAEbn37vhWl40FO8Jz1ZEbhesp L8gYsPqz0biEELR6GbN10DO+ncXDxh5nRsCXWAmhk0mJR1HVVb189tpLrGSXGzzw82BMha xSn9liE5NvYSgFm9OLWNR+oKO+To/DAKcI1slCOh2b1OykPqDOnRfb120nIFpqbOMmqoas DnmQ9oXYKiCudYxUt+eN6k9VlHG3TuUo59M0Ur1riOMYTS1aNrfAggO/Zle1Kw== From: Miquel Raynal To: Alexander Aring , Stefan Schmidt , linux-wpan@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Thomas Petazzoni , Miquel Raynal Subject: [PATCH wpan-next 07/11] net: mac802154: Create a hot tx path Date: Wed, 27 Apr 2022 18:46:55 +0200 Message-Id: <20220427164659.106447-8-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220427164659.106447-1-miquel.raynal@bootlin.com> References: <20220427164659.106447-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Let's rename the current Tx path to show that this is the "hot" Tx path. We will soon introduce a slower Tx path for MLME commands. Signed-off-by: Miquel Raynal --- net/mac802154/tx.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index d088aa8119e8..a8a83f0167bf 100644 --- a/net/mac802154/tx.c +++ b/net/mac802154/tx.c @@ -121,6 +121,12 @@ bool ieee802154_queue_is_held(struct ieee802154_local *local) return atomic_read(&local->phy->hold_txs); } +static netdev_tx_t +ieee802154_hot_tx(struct ieee802154_local *local, struct sk_buff *skb) +{ + return ieee802154_tx(local, skb); +} + netdev_tx_t ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev) { @@ -128,7 +134,7 @@ ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev) skb->skb_iif = dev->ifindex; - return ieee802154_tx(sdata->local, skb); + return ieee802154_hot_tx(sdata->local, skb); } netdev_tx_t @@ -150,5 +156,5 @@ ieee802154_subif_start_xmit(struct sk_buff *skb, struct net_device *dev) skb->skb_iif = dev->ifindex; - return ieee802154_tx(sdata->local, skb); + return ieee802154_hot_tx(sdata->local, skb); }