Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3873115pxf; Mon, 22 Mar 2021 18:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw5607/US3BVUrKNOUEpqeGCtqSdEdlyhhQHAsc0/O2mIpvdUnSBeKinGxiBk5yN2QisbJ X-Received: by 2002:a05:6402:158d:: with SMTP id c13mr2163944edv.297.1616462599848; Mon, 22 Mar 2021 18:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616462599; cv=none; d=google.com; s=arc-20160816; b=Py/tCKpC795ZWvbh8neoFxcwf6UslTuzDheaInuh+WLwbVZ9P3ZYBGwVPO8gVZE/W3 f8QdU0lHqdXFg6rz+BRPmsGZ/JqHd4PJYS5S6m1OVQDqgdcAOx/j0MKE4WnwAJu30qJJ 7qufo5VeUbq8epX6O3lWfFDkU9wsBzWwunQ+6wuSxbBlDvRoksnvv4tgM05IKfUwxN6t 54rfYnR854nvnBXZfKamRKC0xI5Bi6c0RwHab8kgYNb8QR3BZClXGi5jljGPJ8Yj0Ph6 hjY/ZO8RCcYg5EYRv9QI+qO71+OhgQImaXVS2gK1jZNCqJ+LQzMBq28fCkbZjcVFpMof R2zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JYxYqwBBeANyqWyQGmvwdqYnwLRNZNV58JDTVavfLTc=; b=FPNc5qCwcElwnxav7RzxzTOxV2D7REA0wBuLG+liqZeDmRJcur/IiKMzTdGkAU/81q z8fGZHKn31jyKO9TRMHnbToNAGmACqGNyOHR4NF5pJhzI7R+GkaB88kf7nvN56F9nqFT 8iFzj2U1ZGKp0ovrcXVb0tx71TqzIPmlzHe3IPuboPgh8ll5m6ZMLcIQ1WC/NQmrP04L VvFyZJf9bjpktd/XynCO+JKpCxet+iuw0WdO5W/nHM1qWXmPq3Vdt8hYHeXDw0cpsHjI /007In8rBTxgznsDPQlbtPNx6umeO2XqwhjYNy5gEvF1KhkECMB7L6gUeDtF+b9HVSe+ GD3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a6JdwhHN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si12133265ejd.17.2021.03.22.18.22.49; Mon, 22 Mar 2021 18:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@chromium.org header.s=google header.b=a6JdwhHN; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbhCWBVi (ORCPT + 99 others); Mon, 22 Mar 2021 21:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbhCWBVM (ORCPT ); Mon, 22 Mar 2021 21:21:12 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7E3EC061574 for ; Mon, 22 Mar 2021 18:21:11 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id c16so6367848oib.3 for ; Mon, 22 Mar 2021 18:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JYxYqwBBeANyqWyQGmvwdqYnwLRNZNV58JDTVavfLTc=; b=a6JdwhHNlMdGaVeyHRZVJp6OtC/hlOt2kSI6OhN2ddlOaHVxVeZeQ8HV+E3FTvmvQI pH1SrynTesuBahTBNhFHiYEUSrRpIW+SEGg/Om+b8Jo2ibJxfOS4B1Nd+F1pWFpuNAjM 1XKffvMC9iWDlAG/WJRZCqZ15ztaMjjuJsuMU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JYxYqwBBeANyqWyQGmvwdqYnwLRNZNV58JDTVavfLTc=; b=GTvHfqzzIWrN751/S/HaNMO3EFT4cConrn4NhTLsMknEu04OR56OnzKstBAwKTxTGW GHXaxSC2a6FbQcdaWhS7lDWdM+pF8uKMcOcE72RkZ6rO0irJ+KBeG7XhHVUUDf2h2t82 J6+pDyrnxQfDfoFfL4T2Yu523btujNlMuQJmBQng5uy38XEX65ty4INMAGG5ka7uJefA 1Fz4yEQzYuBK3ncPzZngXPkmKyMdDo3uZhYeRvlNAUDn/ecVwYxOlIlRLyHhD3UyD5Wf /uje2uUwy1Wav98/fKWF43x2KTTcJ5A5vH2x1GsTIYCw1bMn66eKYGev3h2uXlnxvDRm gwNA== X-Gm-Message-State: AOAM533M0bg/XKbOgnsXYDTHtxAxEOdOuKJ3iTawau7TfIzVQRSmsnuz x6FcgtZxutaDQOV2FpOgr76U8mkbSeSlXw== X-Received: by 2002:a54:4507:: with SMTP id l7mr1337164oil.165.1616462471405; Mon, 22 Mar 2021 18:21:11 -0700 (PDT) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com. [209.85.210.45]) by smtp.gmail.com with ESMTPSA id m14sm3951045otn.69.2021.03.22.18.21.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Mar 2021 18:21:11 -0700 (PDT) Received: by mail-ot1-f45.google.com with SMTP id w31-20020a9d36220000b02901f2cbfc9743so17644477otb.7 for ; Mon, 22 Mar 2021 18:21:10 -0700 (PDT) X-Received: by 2002:a9d:1b70:: with SMTP id l103mr2239864otl.203.1616462470404; Mon, 22 Mar 2021 18:21:10 -0700 (PDT) MIME-Version: 1.0 References: <1595351666-28193-1-git-send-email-pillair@codeaurora.org> <1595351666-28193-3-git-send-email-pillair@codeaurora.org> <13573549c277b34d4c87c471ff1a7060@codeaurora.org> <04d7301d5ad7555a0377c7df530ad8522fc00f77.camel@sipsolutions.net> <1f2726ff-8ba9-5278-0ec6-b80be475ea98@nbd.name> <06a4f84b-a0d4-3f90-40bb-f02f365460ec@candelatech.com> In-Reply-To: <06a4f84b-a0d4-3f90-40bb-f02f365460ec@candelatech.com> From: Brian Norris Date: Mon, 22 Mar 2021 18:20:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 2/7] ath10k: Add support to process rx packet in thread To: Ben Greear Cc: Felix Fietkau , Johannes Berg , Rajkumar Manoharan , Rakesh Pillai , ath10k , linux-wireless , Linux Kernel , Kalle Valo , "David S. Miller" , Jakub Kicinski , "" , Doug Anderson , Evan Green Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Mar 22, 2021 at 4:58 PM Ben Greear wrote: > On 7/22/20 6:00 AM, Felix Fietkau wrote: > > On 2020-07-22 14:55, Johannes Berg wrote: > >> On Wed, 2020-07-22 at 14:27 +0200, Felix Fietkau wrote: > >> > >>> I'm considering testing a different approach (with mt76 initially): > >>> - Add a mac80211 rx function that puts processed skbs into a list > >>> instead of handing them to the network stack directly. > >> > >> Would this be *after* all the mac80211 processing, i.e. in place of the > >> rx-up-to-stack? > > Yes, it would run all the rx handlers normally and then put the > > resulting skbs into a list instead of calling netif_receive_skb or > > napi_gro_frags. > > Whatever came of this? I realized I'm running Felix's patch since his mt76 > driver needs it. Any chance it will go upstream? If you're asking about $subject (moving NAPI/RX to a thread), this landed upstream recently: http://git.kernel.org/linus/adbb4fb028452b1b0488a1a7b66ab856cdf20715 It needs a bit of coaxing to work on a WiFi driver (including: WiFi drivers tend to have a different netdev for NAPI than they expose to /sys/class/net/), but it's there. I'm not sure if people had something else in mind in the stuff you're quoting though. Brian