From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from MX1.argela.com.tr (mail.argela.com.tr [95.0.156.7]) by dpdk.org (Postfix) with ESMTP id 47E1C1B112 for ; Mon, 1 Oct 2018 14:37:07 +0200 (CEST) Received: from MX1.argela.com.tr (192.168.0.25) by MX1.argela.com.tr (192.168.0.25) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 1 Oct 2018 15:37:04 +0300 Received: from MX1.argela.com.tr ([fe80::4c2:c7b4:5114:a25d]) by MX1.argela.com.tr ([fe80::4c2:c7b4:5114:a25d%12]) with mapi id 15.00.1347.000; Mon, 1 Oct 2018 15:37:04 +0300 From: Ali Volkan Atli To: "users@dpdk.org" Thread-Topic: How to find an IPv4 and IPv6 hash function Thread-Index: AQHUWYN03cpAYpBZ8U61f6Qg4JJCtw== Date: Mon, 1 Oct 2018 12:37:03 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.2.22] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [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: Mon, 01 Oct 2018 12:37:07 -0000 Dear DPDK users I am trying to write a code to monitor user data traffic by using DPDK. Eac= h 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 table= s 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 paper or = writing how I can calculate IPv4 and IPv6 hash? Also is there a more approp= riate data structure than the hash table for the problem? Thanks in advance. - Volkan=