From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D368441E1D; Mon, 13 Mar 2023 16:48:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F49740E03; Mon, 13 Mar 2023 16:48:48 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 7B080406BC for ; Mon, 13 Mar 2023 16:48:47 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso12131857pjs.3 for ; Mon, 13 Mar 2023 08:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678722526; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=kol++45UenqrmiEnumf6jdd0Brb57vJnUilQJ3M66jE=; b=JUXMetvCS/Yo0Vg+KDccb7r810ZGGHIivs8Fau817u3a77vRsTmLo/d7FAl9kkt1AO zuPRGw0PuzcfgaIcvFug0SP9rXiD3UWpnMT1a3FI+ocQFVjTCZZ5+37eYoBZlauHldVP zljDTRnHC5ut/ukXVwPv+uz9KULbplg1noOqZP/UDvlIDWEycTCe0+Y3QJYKdFKlk2bN 1BxdYC9DVrUtV5Zra9FvUJ9SPNwQkFc6HO7J/x7vjVzNRpYeHkPyFu2XDaixgUHn7CqS U+rjAdLN98Zr9Uu+xI5V6hnmkuMKM4TJFysOWw5Z/+A1TVFzF1LlbQ0hG7PUlHlZKmsq Yd0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678722526; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kol++45UenqrmiEnumf6jdd0Brb57vJnUilQJ3M66jE=; b=llJVBZ/q8OQksDDwfFJghIzlSSK7vmmE+/qjRZNtLsXbhoXHcJ1wUf1bHFGWDYw37D drghxF4pUNzccliuhOl/7BHLa1Fenh64S/mBJwKKpjVu9Tv7c3iXB3/GC4ImWyigqRHV kRG10fKn5ltVUkkuMCf2m8soxfuRm1zgbjCBI4kMWQjYylaPlqnbm8u0FVAOcaiQvIZN YXm+eD7A6pQ69dnmkCXVYMD9nYj8G0T8dGmOpiHkxs3wtWTT0emxEpsZaMorw3bfY8e8 iHt7exqt0eytPGJelOcUwOM9+3Hvpwdjw3gPCbjas+lAAoe7Vy/Na+oMDH2IT8Wp/amZ TyXQ== X-Gm-Message-State: AO0yUKWu3GZOFWtW8a1N3RnDfIbgskZC5VoHqQyDqMoqFgCWFq/HYc7k 7K8oJ0VoP/ZYbmO+yBcptgPD5Q== X-Google-Smtp-Source: AK7set8SmesFnYfjZe1bv33fM+zg8iR6cMZSX/Kxr9PaPyxC7Fe19zliaJ7o0NNKH0Tt2PrBuP6thg== X-Received: by 2002:a05:6a20:e688:b0:cc:aec0:e9b with SMTP id mz8-20020a056a20e68800b000ccaec00e9bmr32590372pzb.19.1678722526560; Mon, 13 Mar 2023 08:48:46 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id s1-20020aa78281000000b0058db8f8bce8sm4598181pfm.166.2023.03.13.08.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 08:48:46 -0700 (PDT) Date: Mon, 13 Mar 2023 08:48:44 -0700 From: Stephen Hemminger To: Abdullah =?UTF-8?B?w5ZtZXIgWWFtYcOn?= Cc: dev@dpdk.org, Yipeng Wang Subject: Re: [PATCH] lib/hash: new feature adding existing key Message-ID: <20230313084844.35f2ea1c@hermes.local> In-Reply-To: <20230313073548.4069-1-omer.yamac@ceng.metu.edu.tr> References: <20230313072607.3483-1-omer.yamac@ceng.metu.edu.tr> <20230313073548.4069-1-omer.yamac@ceng.metu.edu.tr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 On Mon, 13 Mar 2023 07:35:48 +0000 Abdullah =C3=96mer Yama=C3=A7 wrote: > diff --git a/lib/hash/rte_cuckoo_hash.h b/lib/hash/rte_cuckoo_hash.h > index eb2644f74b..e8b7283ec2 100644 > --- a/lib/hash/rte_cuckoo_hash.h > +++ b/lib/hash/rte_cuckoo_hash.h > @@ -193,6 +193,8 @@ struct rte_hash { > /**< If read-write concurrency support is enabled */ > uint8_t ext_table_support; /**< Enable extendable bucket table */ > uint8_t no_free_on_del; > + /**< If update is prohibited on adding same key */ > + uint8_t no_update_data; > /**< If key index should be freed on calling rte_hash_del_xxx APIs. > * If this is set, rte_hash_free_key_with_position must be called to > * free the key index associated with the deleted entry. > diff --git a/lib/hash/rte_hash.h b/lib/hash/rte_hash.h This ends up being an ABI change. So needs to wait for 23.11 release