From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) by dpdk.org (Postfix) with ESMTP id DADFD343C for ; Tue, 2 Oct 2018 19:32:40 +0200 (CEST) Received: by mail-ed1-f52.google.com with SMTP id q19-v6so2866166edr.1 for ; Tue, 02 Oct 2018 10:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j47oviRkz+stj4/7m9zolv2f9Gx/KnfvnvS707TzzN4=; b=eXsyyUqgCDMlLj1ruVa+DwQWo9/wmO9M/wPDYhhULWAS8GoriIRJ4DKQC1LC4ZD52U S5lmQB2rUQtTSqP9fZPyjyMxz/Nz9ZuNLXavxff1fj/qcpU7rkeij7a9tcLTldTGpfFV 3zosSIAc8bZ7LHR03WHCiBSYkx8kf0qqlEorzBDhze9EYrB/eCk4P2zGm3/7c8NocBKj fEzDDN9TBrAO3SXCIDSwdV1vsYfScIixobrVoccrP1ec0CZaBeK6wY06UJRPusuJdJmA QHYqoIlb8rxnOLjITDqHPpVBBVrsINZs2TXBEWqgfLXL6T7fUgmiKOg3dh/MuvhwvpUu Vm5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j47oviRkz+stj4/7m9zolv2f9Gx/KnfvnvS707TzzN4=; b=pZnd9LUkfBD/UuJdJJaRMUThmnrzYmtgQOJphxu9+uZ0qSKMIz2DJ1Lgg2//gFTrW3 LJIsiUtvSyDuJXtBSOpw2ja35ysf09bFn7lsKWNM7lHLNwO6aZX3OvkrPO6csCzcKPj6 O6J9Aev8wQ61ojahxoklwS4Ea5UcEJNrSRxYwD8j6sQsY+M6UkhFM735CjJ+w3qsd+ol 4d1uNt09EeaU1WzALDPgfzuLlRzF/lQKTGa/fieHil1q5dKShuIbYxOML9HjyubPO54m lgS6d9LVyY/hhDUcRd0unWjTX/ZqT+OGiFzMWlHx5b21Rl/xn16qM6ol2gZhkRSedtyb K7Zg== X-Gm-Message-State: ABuFfohBoYFRSRS5zfU6jHhQ9gLg+m5t/qcrLV1hWLUXlmCwki+qJ8qK cC7/GPLZbWgNxnSmRWy9gJ4cahXP9HE+YtpvCA== X-Google-Smtp-Source: ACcGV62jTTNHKKOxwiM/jYHYmJF2utH6ucu98IF7955Qmt4tdA/8/LoLVaNJ3aY9jZc8uZDMtCr+bUMdOzaA8WsI0Ks= X-Received: by 2002:a17:906:33c7:: with SMTP id w7-v6mr7722952eja.28.1538501560350; Tue, 02 Oct 2018 10:32:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pavel Chuprikov Date: Tue, 2 Oct 2018 19:32:28 +0200 Message-ID: To: Ali Volkan Atli Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] How to find an IPv4 and IPv6 hash function X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2018 17:32:41 -0000 Hi, The l3fwd application [1] might serve as a starting point and in particular l3fwd_em.c [2]. [1]: http://doc.dpdk.org/guides/sample_app_ug/l3_forward.html [2]: http://doc.dpdk.org/api/examples_2l3fwd_2l3fwd_em_8c-example.html Hope it helps, Pavel =D0=BF=D0=BD, 1 =D0=BE=D0=BA=D1=82. 2018 =D0=B3. =D0=B2 14:37, Ali Volkan A= tli : > Dear DPDK users > > I am trying to write a code to monitor user data traffic by using DPDK. > Each user has one IP address which can be IPv4 or IPv6. Therefore I'm > thinking of creating two hash tables for IPv4 and IPv6. The key of these > hash tables will be an IPv4 or IPv6 address and the data of these hash > tables will be user traffic (uplink and downlink) > > First, is there any API, example etc.. to calculate IPv4 hash and IPv6 > hash on DPDK library? If not, does anyone know where I might find any pap= er > or writing how I can calculate IPv4 and IPv6 hash? Also is there a more > appropriate data structure than the hash table for the problem? > > Thanks in advance. > > - Volkan