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 ADBA2A00E6 for ; Wed, 7 Aug 2019 16:38:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F7412C18; Wed, 7 Aug 2019 16:38:00 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 7B5C51D9E for ; Wed, 7 Aug 2019 16:37:53 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id v15so316422wml.0 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=W66kiy6f4Nerv+PADi5pI8Tsbff85m2nh+6hYh0NYY/KZPbJ+GNRUTUc39ADxaduvJ IQZn384wMrSWyJksety6ygPPxw4Kb+el+iiBvb5gN0peAbxixbDqjzMK3RY2OKseevCZ 9/BcK4fa11XOvA5vTvc8WhvJchLp3HgcCwVmhfyb2xI6TdlYmgJa23A+K6f2Rc3gNfj2 wHMFlRHebbjVTAUrHHkWwJPO2eYHSG4NUjpr1cwE9oFucmtRgDJh6LH7AM15dID+u0C4 iIqNBl7Y0/ifgQOCBW7xxEfZ8uT6KORZJiiszH8LhOMHpR6UwOsD6xzwdXSmEys+igih dPag== X-Gm-Message-State: APjAAAVUXEpqLprhEmD2dRmQqAOmVhw2UInXDBN7/wlA6RAv2vtI4XEj EChAN3w7kFWauYi/0Y6KKzwk 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-stable] [PATCH 19.11 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 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