Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1082894ybh; Wed, 22 Jul 2020 23:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydldX0WNyvDz+nNgnDQYsa1wtAQLjgMwaHXtN9sahQ2osqvUZ8YjSB4JaKNsd8xt+8+6V6 X-Received: by 2002:a05:6402:1c0f:: with SMTP id ck15mr2609967edb.155.1595484737801; Wed, 22 Jul 2020 23:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595484737; cv=none; d=google.com; s=arc-20160816; b=C7j/ys9xBlkytCM2j26mhmYlBcJRkLcSELr6z8QDVsuhInCcEDHRz/kMMZ5Ba1ZieY vywNLdbvAGMXf6T3V45a9DbILH/cQ19eRCOcZzfNwCvFOsZ/dZzeLGB8KkYjwIe9vrAu +jph6Ii8H7LFa73yYMIYFFL/kb6X58JCabBSJ7l/WHP+HHgFmIkjcR8HNMO5X2DYDlcA MLxq5cGzaK0rO3V6zGir6JxtH5tEBU7Q2ZbNKEDF8iy91N4G0iU8Vc9Fp1Dqpp8SEdj9 3IbOTuMFcoUhRqfWggoqkp/5FwSqtrnfwoPR0EQ+yTqludpaZl4E5mCjmTlSbMGrngpy lB1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=VAXvWnCgke+eKG8vJGJNAGB2T9TdQIXZ3SC3sX6v7dA=; b=dK+3HcDv36SqtYYGD9MBkk/Uv5HsqsXEzRWdVFXYSL/1w15SbboBgid4bOIN9ZdhLa HZja3yFj5URdvuBU/8Xk3hDr0ecwEwEu+/Dl+DNovJTrtcfjywVlMlACSGKwX1Pzoa8e gBQghpv+PurYMjSo74/vD1251Zp5BElOPHieYEE4JXb1/8n21+PPUrNJpQeqo1hTXCMv l1z84UDRhh5BwZNYckrZBIIfLL1J604s+k9RUC+60PSSVNQwjlQZSVnZCOzkyUZnYfOm 0o5MwLlVaH1Fmk75rd7hghpKn3cfQUNS/LHoKECpwhgwsc/dxfawvRqeGS9okcrabHv0 8mvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=N9JnlAQv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd21si1267350ejb.727.2020.07.22.23.11.55; Wed, 22 Jul 2020 23:12:17 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=N9JnlAQv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728098AbgGWGLO (ORCPT + 99 others); Thu, 23 Jul 2020 02:11:14 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:29226 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbgGWGJx (ORCPT ); Thu, 23 Jul 2020 02:09:53 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595484593; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=VAXvWnCgke+eKG8vJGJNAGB2T9TdQIXZ3SC3sX6v7dA=; b=N9JnlAQvz9fE7IF4ErnUrVUxNqu5eGg5nMzfM+gpwA1p1OU7YMv6vsNP7n0mPloZIZFsEppe tFHPBmK2PtR2xKsxRiYLBnmU7dC3mDI6S4pzPI0edKOv/WfvxtOJCHAl3ukIQKucySTiUrvB b0UEpAl4ZqVSrccNJgU7HP+P5MY= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5f1929afed710aec621f7a83 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 23 Jul 2020 06:09:51 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 28D39C433B1; Thu, 23 Jul 2020 06:09:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rmanohar) by smtp.codeaurora.org (Postfix) with ESMTPSA id D63BAC433CB; Thu, 23 Jul 2020 06:09:49 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 22 Jul 2020 23:09:49 -0700 From: Rajkumar Manoharan To: Felix Fietkau Cc: Johannes Berg , Rakesh Pillai , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, dianders@chromium.org, evgreen@chromium.org, kuba@kernel.org, davem@davemloft.net, kvalo@codeaurora.org Subject: Re: [RFC 2/7] ath10k: Add support to process rx packet in thread In-Reply-To: <1f2726ff-8ba9-5278-0ec6-b80be475ea98@nbd.name> 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> Message-ID: X-Sender: rmanohar@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-22 06:00, 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. > Felix, This seems like split & batch processing. In past (ath9k), we observed some behavioral differences between netif_rx and netif_receive_skb. The intermediate queue in netif_rx changed not just performance but also time sensitive application data. Agree that wireless stack processing might be heavier than ethernet packet processing. If the hardware supports rx decap offload, NAPI processing shouldn't be an issue. right? -Rajkumar