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 CC88FA00E6 for ; Wed, 7 Aug 2019 17:09:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8DDDF2BAE; Wed, 7 Aug 2019 17:09:48 +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 058032BCE for ; Wed, 7 Aug 2019 17:09:40 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id p74so398953wme.4 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=V3iCoTSjceGQXw2QjNUvl67a3ptRZEOdkWh9nU1WauOxYFD7fU16a6bM2r87YAX2o0 rcO3wFg8GLoHddlfIMlSj3LSKvvxWcESk4/LGpI9XKVDva5aBX673YMysfUNqfX6NOTn 1opz/tLr+w1sGxaMnQTWhfDMtSnnjqW1w3LQOTPgbVFtCCa0d9lIRgQLkXs/jgbqmjSO M1TtGCsvnCSWkReBcUmVD0iLAm/RUnvzYul6FhhxEYE31c/VokXAsH94UZRHAFrgw4pZ eSfVq83COM2EupNapYnM9sFQfFTvROv2o4uTUYe6x+VdIqW65i8UEATBxM37zGMwxTJM ogzw== X-Gm-Message-State: APjAAAW462nFFdmjolKA/pKc8S+/5QuX3Cm2dMQeuRbdQ6nRodlsxt1Z uPb7pRAA236QJh3gq8K+xURK 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-stable] [PATCH 19.11 V2 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