From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 538B7A0093 for ; Thu, 17 Mar 2022 17:48:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9BFC407FF; Thu, 17 Mar 2022 17:48:29 +0100 (CET) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 3AF944067B for ; Thu, 17 Mar 2022 17:48:28 +0100 (CET) Received: by mail-pj1-f42.google.com with SMTP id z12-20020a17090ad78c00b001bf022b69d6so6008890pju.2 for ; Thu, 17 Mar 2022 09:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/2ofWsyc+utxC217jTMkLrRRwWxjy0e1a4IF1PMXL3o=; b=0xWpQhfgPTjuFFUrokunidBJx6aBg1jnY226zD3B3+9OEOBmFIW7QxR3dN5kzO7HUS 009jmia4SkRyFEdwdKNFxHAwaZ6aGCXRhlZwYhcD6SJ2HpKsVdYeOL3sNw8NwfzGl+Xc gHbqdOctWje8GMTjz7yITlGRR+A1HZX0HKTD6HIY9wtAuUBJPde0TrbDXX9i1eEkWQWB VsEiAGA59bV1KF4VLM4h83i/n7guxJG4O+ELud44GJy4PaVP+pXM9JlmdK9g02sN7l1W OvUCfz1GiSKGq2BvDYum1OpscY8Sz0RmSrLae7TZHLbIhtmUIqwawJiBA4kyL3mJTiMV RXbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/2ofWsyc+utxC217jTMkLrRRwWxjy0e1a4IF1PMXL3o=; b=coBLXTOP84AzGa4LDDoF2q2IoFGBgDjN1cM2oFQq5Jo7dA35dsaTqi55CvaasQJ6VF bXl/UgGbP7xqCMzwhrYJWXixd/SsE1eLbtXv9/+4fJ75RMfUI6CIAAKWnTa5yiU0AnFz xnznp50GlyedI/LlmpDLgCXTrrGk5xgOP9Az8ZAmRDEDU2XqJkcUOA70FpOiEdwWI2am RkpB83LndCDQrF1dhOjnIvl0kWG4nxtD9jIpTMFYnzjlovVchjuV8I16B4xMzUIpeY0E 58WYjlD3uVIvdDjEvL1BtfN+FDe309qIx322CarTErk6UySwF8TP09m78NLaVxpT+A28 iGMA== X-Gm-Message-State: AOAM533ghCgwwhnjrZmAFwVML52eL//Ccd/grerPcolXSxxL2KVeTOw0 ENzRbZhGIYxcQ4xKSpRsp0b32w== X-Google-Smtp-Source: ABdhPJxMxxy/cGpWskS8YvQrRIRWG661vKhJAQzEtbAcyXm7jUP8LwyXv0XQgWZa2uzwD3QvCR8xZw== X-Received: by 2002:a17:90b:216:b0:1bc:5d68:e7aa with SMTP id fy22-20020a17090b021600b001bc5d68e7aamr6358087pjb.57.1647535707225; Thu, 17 Mar 2022 09:48:27 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id f10-20020a056a00228a00b004f769b40bd6sm7709880pfe.103.2022.03.17.09.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 09:48:26 -0700 (PDT) Date: Thu, 17 Mar 2022 09:48:24 -0700 From: Stephen Hemminger To: fwefew 4t4tg <7532yahoo@gmail.com> Cc: users@dpdk.org Subject: Re: need definitions / references Message-ID: <20220317094824.423d2a83@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 17 Mar 2022 12:05:33 -0400 fwefew 4t4tg <7532yahoo@gmail.com> wrote: > DPDK provides but does not define (that I can see at least) these TXQ > config fields. What are these fields what do they do? > > https://doc.dpdk.org/api/structrte__eth__thresh.html > uint8_t pthresh > uint8_t hthresh > uint8_t wthresh These are low level details inherited from original Intel NIC's (ie ixgbe) they only apply to some NICs. They are used to control the ring threshold values relating to PCI. In rte_ethdev.h /** * A structure used to configure the ring threshold registers of an Rx/Tx * queue for an Ethernet port. */ struct rte_eth_thresh { uint8_t pthresh; /**< Ring prefetch threshold. */ uint8_t hthresh; /**< Ring host threshold. */ uint8_t wthresh; /**< Ring writeback threshold. */ }; > And here: What is the RS bit? > https://doc.dpdk.org/api/structrte__eth__txconf.html > uint16_t tx_rs_thresh. Ready to Send? > > And some what unrelated: What is a ``doorbell"? this is something I > continue to run into esp. in Mellanox NIC papers? Doorbell counts are > reported for AWS NICs at least with xstats api: > > tx_q0_doorbells: 18812 > tx_q1_doorbells: 18861 These are how many times driver needed to poke hardware to tell it that new packets are ready to send.