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 65B20A00E6 for ; Thu, 8 Aug 2019 10:22:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2383F2BAF; Thu, 8 Aug 2019 10:22:59 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id ABAC428EE for ; Thu, 8 Aug 2019 10:22:53 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id g17so93976307wrr.5 for ; Thu, 08 Aug 2019 01:22: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=1ap8Frg/Gf51xmOYNsf5m9BH5ZgczfUC5RTDt84nhnI=; b=W5CNif+OZ9ojBqOBx53h9zBcvK45SwhfPqrPXEBuxbAPAuMJOPY/sVujpFKyR/vPln 4UbhGYz/Vj6oh84x1ufMhIe2Jb4wumqAGMJNmSxplPIhi/FRiFd7+ZZnMmPx01eNswI/ hfU4ilN3PBKiBQXF+vY/BLa/quzVoZoBDKRcW7N6Bh1Gw2EQOOkXc2Vxi3JsmMi3eGqw d8qdP3/ol5Wt04dCh6HxYHaYa+rClj630ZXftaCGnyRq4Cn/LNHJr6h1gJ7IxUwyHsUJ voji1oJWeezsS8/yGX1xw/ia3ATk5PS+yFZg7J29bPnk3/RaqM/xnMxXSAZcUPlxkVuc xEoA== 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=1ap8Frg/Gf51xmOYNsf5m9BH5ZgczfUC5RTDt84nhnI=; b=IyTrrFyqwKcBadazdnpz7EQ4IHfWFAJ/anxQaDUS7r5bLgwuIWdY8AQPXmT0oxTDcw eH961rzJ3RPUZdN/pQ14FzfQgGEHnhWl1dvxCAA7VDsAaHm4cOFgFd/7UlIe1QjRylTq JbUcHW6m+YZ+X5mLOlv0/2mqYzvTnBXBapVGMwOx3cyUwmUh53Zw0Vt2PcHvMEuXo+N5 rn7aPC9WV8/H07p5l/WIMdrjzb4aVtkYvD5o6Pt5zTUTo6+D2QaS7sSRRIR6kf5fttDo VjqrMIfqdDFF8VomsDP+M7mx1pb1J17Q0fbdTRlV9hDirIWR2T78YhKe4HAfljs5b1IM FBwA== X-Gm-Message-State: APjAAAW1BMYgxPmwjUV8JN8boMXKoiSADgtU7DlV5N9Zrzm3BcqVu4zF h28zLDrVWU0liNQ7LPI8x/Kf X-Google-Smtp-Source: APXvYqzxAAjFc4ycT32534cBCULrWMEa2WN2EGfZquY0QkmhXGRPMmLKVlBVykg8o7CXqLb70JLX/g== X-Received: by 2002:a05:6000:1189:: with SMTP id g9mr16559011wrx.51.1565252573483; Thu, 08 Aug 2019 01:22: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 t13sm111437018wrr.0.2019.08.08.01.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Aug 2019 01:22:52 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: Olivier Matz , stable@dpdk.org, Thomas Monjalon Date: Thu, 8 Aug 2019 10:22:07 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-stable] [PATCH 19.11 V3 02/12] ethdev: fix description of tx descriptor status X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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@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