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 73AFDA0540; Wed, 6 Jul 2022 05:45:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 037E840687; Wed, 6 Jul 2022 05:45:53 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id E505040395 for ; Wed, 6 Jul 2022 05:45:51 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id v126so13011598pgv.11 for ; Tue, 05 Jul 2022 20:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=gOzBJR4qHwnVD6exyQLrlj/jxGDhgY/K3APDBsZhVhU=; b=fr8g3kDZgg9GZZ494/HL7jfln7Ty6Mz44EVTYoV8fUJ/NcP7k4Cm/hMFQepYj/80nO wR1/c21lMxlu7JnCcAGmHBidmeQHVfpB4+QqeEtlbabwT/+Fs80tFynHuwsCKURyrH5t SQnf/7ySNC+lCuseYSuIkGdkwNvUv2nSjhNIgkNWUB1M6Izn+/GoQoqe8Em+BFyo9Zh5 TJdqEXrvg6kBZfJiuPPGnt8Czrmpv6gVkGbAT/XsdzXCWREqRrSMUF9gD3KV/yCGratP d03WT/z9pyoIde1NWEW6lT/xbtKgMTjbkFPd7b2j7LRYXWP6i1lCc3P8y+8fDUOWxL8Z zqAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gOzBJR4qHwnVD6exyQLrlj/jxGDhgY/K3APDBsZhVhU=; b=mOwHRUnaO7UlShGfXVDgwgAiMZOIAyydQlttOpv9culxP3fs9ym/nhzbgPf3fFkcIX 2H9U28I4CKIxrTqAVIDOQAT2d03+TIDsp4Qa6Bl6HpxPP5tSbxU9fohp6xltqqbCklAK XuJjhlCgRED5PbvUDPoAWdlWXNiup6GxakEWsS8cZgodoV1OatNBLbAHX3VDx+VTsAQu WViRjoAYR0ABHqmepnEVraSQs8KYxoIAMCE4zzYZpNg8fTUJDXLmPlzTSHXLfZdCHZvb i4gECiXiCh07NvOWB+Dt8Rj2gfAdbrzaOuJFU9IVDoz6Q7nl+/lAgdHnIPYtJOcYuwd5 dDhg== X-Gm-Message-State: AJIora9i4Hsw+S+AlMyakV8PBxUIuTfC1jib+fdheD5S/t4lMqi7wUlq +lxxH0t/UhkQQKERnjxcAtaLM3j4uPCNj7X52M6Rg+Yxswg= X-Google-Smtp-Source: AGRyM1v8g2R1jKgG6Bgkh9WgTwhIKI1etbRkPNpMQIaCUav1itclYl88hu18gzwzHYHmMsSRZoNS2tiPIQbobtlX4rA= X-Received: by 2002:a05:6a00:d2:b0:525:a508:d798 with SMTP id e18-20020a056a0000d200b00525a508d798mr45320893pfj.10.1657079150682; Tue, 05 Jul 2022 20:45:50 -0700 (PDT) MIME-Version: 1.0 From: venkatesh bs Date: Wed, 6 Jul 2022 09:15:39 +0530 Message-ID: Subject: clarification on RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF flag To: dev@dpdk.org Content-Type: multipart/alternative; boundary="00000000000024280505e31ace5d" 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 --00000000000024280505e31ace5d Content-Type: text/plain; charset="UTF-8" Hi All, In multithreaded/Multicore environment can we use RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF independently, or this flag should always be used with RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD. We are trying to create and access the hash table with RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF only. We are getting crashes in multi core environments , we debugged nothing wrong in the application , everything looks good. We call rte_hash_del_key() first and from the returned position we are calling rte_hash_free_key_with_position(). Please let me know if we missed something. Thanks, Venkatesh. --00000000000024280505e31ace5d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,

In multithreaded/= Multicore=C2=A0 environment=C2=A0can we use=C2=A0RTE_HASH_EXTRA_F= LAGS_RW_CONCURRENCY_LF independently,=C2=A0
or this flag should always be used with=C2=A0RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD.

We are trying to create and access the hash tabl= e with=C2=A0RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF only.
We are getting cr= ashes in multi core environments , we debugged nothing wrong in the applica= tion , everything looks good.

We call=C2=A0rte_hash_del_key() first and from the returned posi= tion we are calling=C2=A0rte_hash_free_key_with_position().

P= lease let me know if we missed something.

Thanks,
Venkatesh.
--00000000000024280505e31ace5d--