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 86585A00E6 for ; Wed, 7 Aug 2019 17:10:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 032302C18; Wed, 7 Aug 2019 17:09:49 +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 3F4E72BD3 for ; Wed, 7 Aug 2019 17:09:40 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id l2so418821wmg.0 for ; Wed, 07 Aug 2019 08:09:40 -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=i5OXx/pUkZhrD4NDNgAgmKIy2TF2IyXyDzpJQXsejzXIWsx4FJRrgSbJ3ivV+bQCfr CTlXXrgtQ9sVMNd+BhljbbGFd9vZbhj8lUAEf5pAK55QTD4Q56MwPvUd8ubYVHm4tFm7 y74/NRXZlzMsSu8cX6Q4HjD36Pn/59wQed2tzt9TDtT55OBFoFHFCYu7G45N1Obllq3C bEhG+qMXlIbva7K99YEepJWkl8V1xf0qyfn5uAhlc5PePovvlC/xAhXLB+43I2d73V2J idLuKpq0+W2eJKLGEflBF9hQ42Mi2bbxPmKuha6XGVwZbsbDgMEtqjlTCsIqfizCHQB5 Fmrw== 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=G3Anxcse6Ps3+XEY7zo15U2VrHgW2e7nsi977l+n3AIbjeUvG+2T+A8zDBJPCWn5U6 84F4/j3pAKIB/Gi0x+0mdWY4gVMGZ2/5UJPuewjXaNqeG/M6ejRaNAkJ5RwAtmJ2Ljm2 n18z9atShp14jisUEWK+dJgD5UbxWO0zaTsgRKeEPGmJGtoKV4rwsSitwwtn4G0iH8FW bqEAo7Q2dAlUtz4m+RyPoXCMUCeIfx31KOtJpTYJ4dqaepec0bbO0bkfNNw50Kb+F3kU 5hWrMpzrmNeNt/T94aPw0T/qQfMCsY6JAD14qFS5dO3Afzhtni40fPjwf7fQ36xVTjZv GOIQ== X-Gm-Message-State: APjAAAUshrZbn4DyiU+fdkqVsAsy2L4gHXOBHAHvl3pfaT0HgHrUkePs DkFC22eCIu8N8DUxDi3199f18aUN/Q== X-Google-Smtp-Source: APXvYqxgtxB69wjL9mHofk2UHi4KItDvQCpjgWsmJ5RWMHTrbHx4CPcOkEyJ20Dr/q5TT09tIn2RFA== X-Received: by 2002:a1c:b146:: with SMTP id a67mr430452wmf.124.1565190579789; Wed, 07 Aug 2019 08:09:39 -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 r5sm382862wmh.35.2019.08.07.08.09.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 08:09:38 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: Olivier Matz , stable@dpdk.org, Thomas Monjalon Date: Wed, 7 Aug 2019 17:09:11 +0200 Message-Id: <57edb83bd966a82fa2a6b224ea4e5a8c544ec0fa.1565190405.git.thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 19.11 V2 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@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