From patchwork Tue May 31 17:20:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 112157 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 40932A0550; Tue, 31 May 2022 19:20:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF00840689; Tue, 31 May 2022 19:20:45 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 374AF4067B for ; Tue, 31 May 2022 19:20:45 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id h1so4214179plf.11 for ; Tue, 31 May 2022 10:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FfqQJXk5gcTqWmSBzfYFXZGuRX2RZ2OvM7SsW3mn5bw=; b=YUmGmp0LJdt6uOYIVMuXKXqizgC25VDSLMGwACbm1PA4wI5yrDrnr1l9twYrM304QF F1Dls3NcRfCYmkW65gAPModh/f5Y2L0SZ3aHFW+iGdj0KkaFBBoNpj9CnDhn0aCnklaM foHV4ZBYT8h1COvsE94klCW6cL3bzqVKpBX5y2GwVc12PlbfAMlgFbooGxmuG7QlLp34 CpSurGJ/mvHM+PMXgmMTeTTmmNSvXTg6qLD+kE9t8o9YgH1afBNF2aGsUyxRUB0x/KZy kGRGrl1ALlhvdRoTxs7A3fW13KDfEuyeiv3spnxJy7CfTMvBSoiFR5fC1F5krjT36P/J R/cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FfqQJXk5gcTqWmSBzfYFXZGuRX2RZ2OvM7SsW3mn5bw=; b=RTBPcVy8EAA7KC+dzLeRyB4kFIJvmYMW1k9NWHR+ABvzHTEWEsgT2f/UDPdyvx+THB 9OEOeXeUBdBz0MLoCwuaEqIv2dPUm0MzW0e9ihLLwMbBB/gSfJCrUFdjJmpNtQTxI8VN 0f14O7u20dPxwnJBfQx87xj/TKEgeFYtJKdfnAJzlHjF7DRTqP3PPjBH77W+htv2L9q4 NwSqKiVOPY2BN2jpPIpW1Yinc4WR+gbnRe0/rzOioRBv92Y6TCjbt3DXD06J10fy4SA7 CQN1wiq+DGEae3DG/ATurwOPdz6QhkmekrxX1W1xN7pzrDN6+DUcmmH0n27pF7VM3twp YdSw== X-Gm-Message-State: AOAM532GHZlDd+AK9G6YS2GcXrQZdU6yUjqSDlat/s/kV+mS7f4Nphc0 KX042ghZk/8bBqi4ur+5qqjx/tOIiBJMhQ== X-Google-Smtp-Source: ABdhPJxn4lPwfj2yBFC3stpx+U8Z20bZl4LHfRIDToVvtr37N5qxXoOILbnU9QNlj6KRl2UkL7GG4g== X-Received: by 2002:a17:902:cecb:b0:163:fc74:b6a8 with SMTP id d11-20020a170902cecb00b00163fc74b6a8mr5949854plg.82.1654017644114; Tue, 31 May 2022 10:20:44 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id r21-20020a17090aa09500b001e2fed48f48sm2144532pjp.41.2022.05.31.10.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 10:20:43 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , bruce.richardson@intel.com Subject: [PATCH] rte_ring: remove leftover comment about watermark Date: Tue, 31 May 2022 10:20:41 -0700 Message-Id: <20220531172041.132503-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The watermark support was removed from rte_ring since version 17.02 but there is leftover in comments. Fixes: 77dd3064270c ("ring: remove watermark support") Cc: bruce.richardson@intel.com Signed-off-by: Stephen Hemminger --- lib/ring/rte_ring.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/ring/rte_ring.h b/lib/ring/rte_ring.h index 980e92e59493..4bf8e16baa23 100644 --- a/lib/ring/rte_ring.h +++ b/lib/ring/rte_ring.h @@ -66,10 +66,9 @@ ssize_t rte_ring_get_memsize(unsigned int count); * object table. It is advised to use rte_ring_get_memsize() to get the * appropriate size. * - * The ring size is set to *count*, which must be a power of two. Water - * marking is disabled by default. The real usable ring size is - * *count-1* instead of *count* to differentiate a full ring from an - * empty ring. + * The ring size is set to *count*, which must be a power of two. + * The real usable ring size is *count-1* instead of *count* to + * differentiate a full ring from an empty ring. * * The ring is not added in RTE_TAILQ_RING global list. Indeed, the * memory given by the caller may not be shareable among dpdk @@ -127,10 +126,9 @@ int rte_ring_init(struct rte_ring *r, const char *name, unsigned int count, * This function uses ``memzone_reserve()`` to allocate memory. Then it * calls rte_ring_init() to initialize an empty ring. * - * The new ring size is set to *count*, which must be a power of - * two. Water marking is disabled by default. The real usable ring size - * is *count-1* instead of *count* to differentiate a full ring from an - * empty ring. + * The new ring size is set to *count*, which must be a power of two. + * The real usable ring size is *count-1* instead of *count* to + * differentiate a full ring from an empty ring. * * The ring is added in RTE_TAILQ_RING list. *