From: Pavel Chuprikov <pschuprikov@gmail.com>
To: Ali Volkan Atli <Volkan.Atli@argela.com.tr>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] How to find an IPv4 and IPv6 hash function
Date: Tue, 2 Oct 2018 19:32:28 +0200 [thread overview]
Message-ID: <CAF1d6=DODS1Dvdqw3qxRXc5rNwuQLyyaKAJ43a4nxdBfzL11fA@mail.gmail.com> (raw)
In-Reply-To: <ace6690424b048ae894f01aada7b4a3e@MX1.argela.com.tr>
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
пн, 1 окт. 2018 г. в 14:37, Ali Volkan Atli <Volkan.Atli@argela.com.tr>:
> 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 paper
> 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
next prev parent reply other threads:[~2018-10-02 17:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-01 12:37 Ali Volkan Atli
2018-10-02 17:32 ` Pavel Chuprikov [this message]
2018-10-02 19:20 ` Ali Volkan Atli
2018-10-02 22:02 ` Gaëtan Rivet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAF1d6=DODS1Dvdqw3qxRXc5rNwuQLyyaKAJ43a4nxdBfzL11fA@mail.gmail.com' \
--to=pschuprikov@gmail.com \
--cc=Volkan.Atli@argela.com.tr \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).