Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp504839rdh; Thu, 26 Oct 2023 08:04:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVz8qeb9zvITBlpk+0svX3OOvrkT23EuUC0oCwUGhmDvGnKYrl8hHg0rfxJovH9ZBnB/Sm X-Received: by 2002:a81:4814:0:b0:5a8:e303:1db2 with SMTP id v20-20020a814814000000b005a8e3031db2mr20876863ywa.23.1698332670436; Thu, 26 Oct 2023 08:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698332670; cv=none; d=google.com; s=arc-20160816; b=hKxFr50d2wuFyKpvie+hf/DKAhdiNX2IHBCYPqkuSBtEnjcu/FPK+RceQYzk6T5JTA FSlP3Yg7Fo6Lv6SggfdpNF7ir5xoRsx0pugHCLeN771Q6QcPl+teOPd3IkjxaLpJGNnC w2U6W9muzSwsVGDqZ9Uit1n0uEyJvxrUMlnFkFPA5Q82GqdM1u8Uf+WonVvPWIGQ/ikV hrWb0L2aeiJlcRLYzVFGFRzcKiTpl84QkruCnn5N8NQ+kM+uxzWuJYg+MVjJ4lR4gsNk Ku/xQd7QDT3zMzbuWSd5zD6oAykFZ86T0SgLRvwJz3j3JmFFiMow9UX228weJDcTFvao Kdeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WyG0i3RQ9zZietAg9gykd9fHxtMPgATmUQZSSHlhAik=; fh=VWO8QUzpSHrcEVSj15N74semdpDOxihYBrP9wGECEdA=; b=cnm8ClA9sU9DSZWSE64OxvDE131OGcLVHAbCXPT58k5viaX7yAMMfKB4Au9pKeoBXU GjotbrtRl5Aa3pmelCb3TWWsuPZ7GmY0ZHfsdx0hwY28jqMNgE1ZRYS4ncfCKRi6P9Gj 8OPMIM5qE8fx5tyuzboP/c4RxgSYfhbLn7y9ca1Y+QLGr4yUXfnfTL/HtjWUkbxYhaNL OHH6DjlW+RSMAz5xu8mjlhRK2wf0g9RVAqrsZIwkB7K8PVn+MbFWr6Y4hWr/T09/FEth 4YWusrzpFJfgXvLhwV5NaL2sd3blmaZ8yDudG1D4NosVa/S2iz1K0tpzfVL9TZnf/7gQ cIRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uF7ufj5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id o13-20020a817e0d000000b005adfb212f35si5579507ywn.335.2023.10.26.08.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uF7ufj5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3BD08818CC93; Thu, 26 Oct 2023 08:04:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231366AbjJZPD7 (ORCPT + 99 others); Thu, 26 Oct 2023 11:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbjJZOo6 (ORCPT ); Thu, 26 Oct 2023 10:44:58 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C89811B8 for ; Thu, 26 Oct 2023 07:44:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0F5FC433C8; Thu, 26 Oct 2023 14:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698331496; bh=cHHlxSDS/KB9AboQcfw5aoNzZSQbx4Wy8Hiz7M3HW9U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uF7ufj5Ma49kO7XhqisyeJRLWupMwP1a6BUkFV5j3B90dZm7fXPYlDsubYR6ReGju ei47gxcs3yrcudnAdFEwbZMad6GjXyWUzIrxr5s63ZBhwgwCkDJgKRyvaQCRk8k9yh 4wEz+uiIjZ7ap2B+fStn7HfVbs4gtn+1U0KUl6bFl3tA4fvDQ+MkMykr+P9QyKHkz3 D77KC7ORJfpKnzuhouhnEfwuJuL67x1K3euvqkQqgDWIDW57KSJEJmfvTQpe1vmL6O eitybu9hQKYTf44Eg/JLRWwJTq5nVSg3YN8qHRsEBnjlntv9ZjQVQbgG6p2RZ9ic2w MqCm3S8XrbSFg== Date: Thu, 26 Oct 2023 07:44:54 -0700 From: Jakub Kicinski To: Shinas Rasheed Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Haseeb Gani , Vimlesh Kumar , "egallen@redhat.com" , "mschmidt@redhat.com" , "pabeni@redhat.com" , "horms@kernel.org" , "davem@davemloft.net" , "wizhao@redhat.com" , "konguyen@redhat.com" , Veerasenareddy Burru , Sathesh B Edara , Eric Dumazet Subject: Re: [EXT] Re: [PATCH net-next v2 3/4] octeon_ep: implement xmit_more in transmit Message-ID: <20231026074454.767a8a2f@kernel.org> In-Reply-To: References: <20231024145119.2366588-1-srasheed@marvell.com> <20231024145119.2366588-4-srasheed@marvell.com> <20231024172151.5fd1b29a@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 26 Oct 2023 08:04:21 -0700 (PDT) On Thu, 26 Oct 2023 07:57:54 +0000 Shinas Rasheed wrote: > >The recommended way of implementing 'driver flow control' > is to stop the queue once next packet may not fit, and then use > netif_xmit_stopped() when deciding whether we need to flush or we can > trust xmit_more. see > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.kernel.org_doc_html_next_networking_driver.html-23transmit-2Dpath-2Dguidelines&d=DwICAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=1OxLD4y-oxrlgQ1rjXgWtmLz1pnaDjD96sDq-cKUwK4&m=FyJHTb5Z2u9DTFSYPU38S5kPcP5KvwGWzY-DPcqOl1gdnm7ToZhTFpyvhLMqh1hd&s=dBMmwfWKAi0UH3nrz7j9kYnAodDjuN3LZ5tC2aL_Prs&e= > > >> In the skeleton code above, as I understand each tx desc holds a skb frag and hence there can be possibility of receiving a full-sized skb, stopping the queue but on receiving another normal skb we should observe our queue to be stopped. This doesn't arise in our case as even if the skb is full-sized, it will only use a single tx descriptor so we can be sure if queue has been stopped, the write index will only be updated once posted (and read) tx descriptors are processed in napi context and queues awoken. > > Please correct me if I'm wrong anywhere (sorry if so) to further my understanding, and again thanks for your time! Could you please do some training on how to use normal / mailing list style email at Marvell? Multiple people from Marvell can't quote replies correctly, it makes it hard to have a conversation and help y'all.