Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3915322pxf; Mon, 22 Mar 2021 20:02:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwQG2DYFh5isUtMrdurcxJVaRoiv6qIY+noLqulbEcHnLT8SAsTOTOr2cXiLpAXznXuEWp X-Received: by 2002:a17:907:6005:: with SMTP id fs5mr2766861ejc.184.1616468563612; Mon, 22 Mar 2021 20:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616468563; cv=none; d=google.com; s=arc-20160816; b=UjMSw2720pL9+E8kxtTDh6mt94RnWLc5bTaPZtTDAEirAx0cVxKH4oZYg++mlSxGRh vffp/tDUVZW1ZziX+lXZmV41Rd13UoQWxlr0LD3XP5xC7LuAXA4PyQNeZ3pSkNtwmmfo IEUGZfTvLjw2EFSECDJsiCP8m4sX9xbPjHQojMBaNEtCaGmBEUPXh01rA610WtCBZnyV 1yAYQXLo88mAMNxFIt1Pw9kuyGoYMkvRymRdcdj/x6hlBFojEFf+EzdvTw4li+txdZLe Bs8QPJcJQ06Y0bHUyU7u4J9S7MdYVLqgt1q6BxFc+KOfZwQSnvtCN6gbVfKOsYjguvZG 5n+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=XiIw2GvgAVn2MlyITIWfo8DhZyEWxktlsuKl+iF6DOw=; b=wgv5lrs8cCm5nxujbqSH3fY0ccIEvoOTQCDppchaqSa+zCxsgIrPqySeYSqKtv1nqX M3Hk8KIfzUd0CZuD4jCVfkOAhoYhC5ytn0Cqg+R3/jxfcUNRvBVKo50rBcNKhBGJv9WL rvbnzntwFvzDoQM0cScmDGHqJKokZmtgJLADkXiDe+So4+Tg2TXLgfdyL/ZOIC9u6+jN jzjLEF1mLRXrd8BpAcZC5l65GGhnSYX0fA4ElHJQny55J7nNp9Qek2J5AKtLNOInORcs I2lOVY3wdGjzy7k87O72wUcR9tejcGGwetevu/NbTiE1cg6mZyTIEAhthgoNftFCi3+o icFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=PgLrrxDw; 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=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si13046661eds.379.2021.03.22.20.02.18; Mon, 22 Mar 2021 20:02:43 -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=@candelatech.com header.s=default header.b=PgLrrxDw; 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=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbhCWDBh (ORCPT + 99 others); Mon, 22 Mar 2021 23:01:37 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:46352 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbhCWDBc (ORCPT ); Mon, 22 Mar 2021 23:01:32 -0400 Received: from [192.168.254.6] (unknown [50.34.172.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 1A1BB13C2B4; Mon, 22 Mar 2021 20:01:26 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 1A1BB13C2B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1616468487; bh=rQIz9Srsbox3KK9ITKyPEVOOf772HvkSawM6/pJCdiI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=PgLrrxDwb6/rrdkZpHooO/DJHyiKBUD10HUxwKQW+Zfr6JxuUtbr1EEmZscxShfD2 vTzeKS0R6Bbu4keJr0Sv/b1l80xRuO1ulLXGvlUw5VKB9nRZpugvys2jenD7RkKsbf TnZeoQXOAIkiSdFdarsp02lGDrE3KL4KenmiBaYY= Subject: Re: [RFC 2/7] ath10k: Add support to process rx packet in thread To: Brian Norris Cc: Felix Fietkau , Johannes Berg , Rajkumar Manoharan , Rakesh Pillai , ath10k , linux-wireless , Linux Kernel , Kalle Valo , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Doug Anderson , Evan Green 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> From: Ben Greear Organization: Candela Technologies Message-ID: <47d8be60-14ce-0223-bdf3-c34dc2451945@candelatech.com> Date: Mon, 22 Mar 2021 20:01:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 3/22/21 6:20 PM, Brian Norris wrote: > 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. No, I got it confused with something Felix did: https://github.com/greearb/mt76/blob/master/patches/0001-net-add-support-for-threaded-NAPI-polling.patch Maybe the NAPI/RX to a thread thing superceded Felix's patch? Thanks, Ben > > Brian > -- Ben Greear Candela Technologies Inc http://www.candelatech.com