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 D0D22A00C2 for ; Mon, 26 Sep 2022 19:24:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65EE24113C; Mon, 26 Sep 2022 19:24:12 +0200 (CEST) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mails.dpdk.org (Postfix) with ESMTP id 1303140146 for ; Mon, 26 Sep 2022 19:24:11 +0200 (CEST) Received: by mail-pj1-f50.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so13136661pjq.3 for ; Mon, 26 Sep 2022 10:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=MnG3qysTBymKu9wl6vVc7VoKaN7KVisWKThRSzVzsdM=; b=FF9DV0AepKbOy02n58E6aKifnYsziIzmfJpAuTtiMMKCY3gH7tfFpnPGFdxE09jg1n YNwsOrnhl/1Tp5fbMWKTMCWOfuWRJTKDtGk8wPhpDxZeeqPwafhTEk8V6EsA5cEyNJk+ A3JpmgoKvRmdHypTcJj8rw5SFr53A0Ys3ECAHy2x6T8e3n5oZb8EMKm14sIy0XCKOkqN qec0l4y+Cpj9Z6pfgkczAd+1r21glzmDku9KXcAA8ouRy2w+A58gi8RYAiW37I+zSCf2 RdRcxyf4xIvHFpwZ19jzBaVJn9KbHMiZGCa6Nc3Q2Rrvx/Y4mKxXKNRKgDNGbEztAbFi 6j/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=MnG3qysTBymKu9wl6vVc7VoKaN7KVisWKThRSzVzsdM=; b=PEEBRg50a0IGLbCR1GXhbJDIGp+2iXxn3rkYJcIYINBW5dgb2jbKCzD1VkAXnkSnxD eYhCDFj1C4OY9aLfBScGJ4kSm1N1rUZTF2LQTPT9IS/W8gQrNaaj811XoRLiA1/iAWqZ okkVB7EPKumZ3v5j8udR9iGTd/EQNqPGGCD/JvhcFSWjq4wv+Thk6lzHXD5c7OAKRNoC rBu4vOq2T+DRjPjqwLevNd0mwhHa+wlMb19xP1Sh+Xc+q1gt7mGy/Fpui2CKyVj9NXPM aMPi8kj9bhmA43XiMgr/5H+rX03NzjnKfeUOqCfdY90Po1774JfhLcxJ7L7bOIHnqyef KQTw== X-Gm-Message-State: ACrzQf2OQwA5LpunjXbxdqy7CHcY5t6aNFbBGSoaLkcfqZaYoh17mI4c skOM8crlh0sv/C1G/wIA17rtDXjZTkLY9Q== X-Google-Smtp-Source: AMsMyM4FhE3TYC+H5awbgw0VOufnJDV3qal+BZhCT6OSO2IJ6exSMMX1G503uv8tTNGSti0arT5zGg== X-Received: by 2002:a17:90b:3811:b0:202:9e26:bc00 with SMTP id mq17-20020a17090b381100b002029e26bc00mr26261082pjb.223.1664213050133; Mon, 26 Sep 2022 10:24:10 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id y13-20020a17090a1f4d00b001fd7e56da4csm6875373pjy.39.2022.09.26.10.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 10:24:09 -0700 (PDT) Date: Mon, 26 Sep 2022 10:24:07 -0700 From: Stephen Hemminger To: Antonio Di Bacco Cc: =?UTF-8?B?R8OhYm9y?= LENCSE , users@dpdk.org Subject: Re: rte_eth_tx_burst() always returns 0 in tight loop Message-ID: <20220926102407.021f6820@hermes.local> In-Reply-To: References: <2ca6fffa-05df-9882-34e9-6c13dc2cc28f@hit.bme.hu> <20220706080001.38ae3781@hermes.local> 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 Mon, 26 Sep 2022 17:36:06 +0200 Antonio Di Bacco wrote: > Is there any way to check if a TX queue is full before transmitting > using the rte_eth_rx_burst() or should I rely on the return value of > rte_eth_tx_burst()? There is an API that might help rte_eth_tx_descriptor_status but only some drivers support it. And it requires some detailed knowledge about which descriptor is being used.