From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EAD73A00E6 for ; Wed, 7 Aug 2019 16:38:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 93D282C60; Wed, 7 Aug 2019 16:38:00 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id BC21D2BAC for ; Wed, 7 Aug 2019 16:37:53 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id 10so298022wmp.3 for ; Wed, 07 Aug 2019 07:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=7ZxEjhw/bmoK1I4BmNcWYAsV922TR89fUvEXg0tSQBE=; b=ODvbmApr4QxxeSRQKE5VQzyY9qJDMWZdDdlNFLQxTvOmqzlqSSlB34VHURnhskirQN 6OrzD8IWORzHQEaxz3/lCH4x/M3o1jsqIyFJgfGraUzVSa9ElUJf1aZVWoQhRohY3p+O aJ91Nw4NioGUpMwvDk2WtEMZPs3fhLyCwA6FG0PExZmbnyNuczRxi6mGMkusGeZaj0jP W3h+qqvEF2Un8YvIjJmvFMmGY7bYE8FYozipkWDyTisuwNOUaBsBdz/1jgsc7bDFNVlD RdgkA6S7cvQCf6hUNW2C4bqjCEkD7MsocJs69ywJ7SCmnu9hIh4EmxgjIn6waUA++jqN rQ6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=7ZxEjhw/bmoK1I4BmNcWYAsV922TR89fUvEXg0tSQBE=; b=Jd23Dp0ksV/h0ONYNqQmM51hJcQRkelmhOUadXvma+foTGezDP8q1QGjJsLnhqBFAE yz9CFOK6QZvE7nbV6TxveqcagtjK+KT9RaV93nXSSZC8zx8X5+3kgGLmlQGKY/bIsmEr JrehPk9ltYOPHWsyisBFbMHg7qjGEC1L4U2lT4KJQEZtBzaRkpFUh6zxhqBtB1hIQuLN WCTr2ZwRXLj5N8mv5sooomvpdXK4wMPdwFR2cy4Y3s/V04Wz4ZAHTxmM99on6IjpBjvM 9J46agVxxwsLLaqXBjSScHIDX2NoDtQmys2foQkN8LfP1ZciP+seaefxBAir3xr0gmgo d/+w== X-Gm-Message-State: APjAAAVqcQfk6/8xxYQbXJYnK91AQdyC7mmRV2hnkE8nAsgYm749ItUb UtkJkj9ggxrqAnVe7kH5IBpgTrLV0w== X-Google-Smtp-Source: APXvYqy+GOlSt644HiKl4Qw/7RFIbVwVCwusl1wXA5voQAdsHMGLascT5x1IyaUeiinsulOfD65Sqw== X-Received: by 2002:a05:600c:225a:: with SMTP id a26mr287822wmm.81.1565188673326; Wed, 07 Aug 2019 07:37:53 -0700 (PDT) Received: from ascain.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 2sm133441211wrn.29.2019.08.07.07.37.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 07:37:52 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: Olivier Matz , stable@dpdk.org, Thomas Monjalon Date: Wed, 7 Aug 2019 16:37:21 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 19.11 02/12] ethdev: fix description of tx descriptor status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Olivier Matz The API comment of rte_eth_tx_descriptor_status() was incorrect. The reference descriptor (when offset = 0) is not where the next packet will be sent, but where the latest packet has been enqueued. Fixes: 52f5cdd2e897 ("ethdev: add descriptor status API") Cc: stable at dpdk.org Signed-off-by: Olivier Matz --- lib/librte_ethdev/rte_ethdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index dc6596bc93b4..b423e71050e9 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -4245,8 +4245,8 @@ rte_eth_rx_descriptor_status(uint16_t port_id, uint16_t queue_id, * @param queue_id * A valid Tx queue identifier on this port. * @param offset - * The offset of the descriptor starting from tail (0 is the place where - * the next packet will be send). + * The offset of the descriptor starting from tail (0 is the last written + * descriptor). * * @return * - (RTE_ETH_TX_DESC_FULL) Descriptor is being processed by the hw, i.e. -- 2.11.0