From: 최익성 <pnk003@naver.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Is there any example application to used DPDK packet distributor library?
Date: Thu, 1 Oct 2015 10:41:04 +0900 (KST) [thread overview]
Message-ID: <a3c9912fa6bb594dfa01b3d4e36baab@cweb29.nm.nhnsystem.com> (raw)
In-Reply-To: <20150930120343.GA11600@bricha3-MOBL3>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 3399 bytes --]
Dear Bruce Richardson and DPDK experts.
Thank you very much for your the best great efforts and precious answers.
I will study and think about it.
Thank you very much.
Sincerely Yours,
Ick-Sung Choi.
-----Original Message-----
From: "Bruce Richardson"<bruce.richardson@intel.com>
To: "ìµìµì±"<pnk003@naver.com>;
Cc: <dev@dpdk.org>;
Sent: 2015-09-30 (ì) 21:03:44
Subject: Re: [dpdk-dev] Is there any example application to used DPDK packet distributor library?
On Wed, Sep 30, 2015 at 08:41:04PM +0900, ìµìµì± wrote:
> Dear Bruce Richardson and DPDK experts.
>
> Thank you very much for your precious answer.
>
> I found it. It seems very short and simple.
>
> Thank you very much.
>
> I have another question.
>
> I don't know how the following steps work from new_tag to match variables.
>
> /* in dpdk library. ~/dpdk-?.?.?/lib/librte_distributor/rte_distributor.c */
> /* process a set of packets to distribute them to workers */
> rte_distributor_process(struct rte_distributor *d, struct rte_mbuf **mbufs, unsigned num_mbufs)
> {
> ...
> new_tag = next_mb->hash.usr; /* flow ID hash.usr is set by NIC */
>
> for (i = 0; i < d->num_workers; i++)
> match |= (!(d->in_flight_tags[i] ^ new_tag) << i);
>
> /* Only turned-on bits are considered as match */
> match &= d->in_flight_bitmask;
>
> unsigned worker = __builtin_ctzl(match);
> ...
> }
>
> I will appreciate if you let me know the steps.
We build up a bitmask for each worker, where the bit is set of the new_tag
matches the inflight tag for the worker. We then find the matching worker, if
any using count-training-zeros (ctz) operation.
/Bruce
>
> Thank you very much.
>
> Sincerely Yours,
>
> Ick-Sung Choi.
>
>
> -----Original Message-----
> From: "Bruce Richardson"<bruce.richardson@intel.com>
> To: "ìµìµì±"<pnk003@naver.com>;
> Cc: <dev@dpdk.org>;
> Sent: 2015-09-30 (ì) 19:56:28
> Subject: Re: [dpdk-dev] Is there any example application to used DPDK packet distributor library?
>
> On Wed, Sep 30, 2015 at 02:45:20PM +0900, ìµìµì± wrote:
> > Dear DPDK experts.
> >
> > I am Ick-Sung Choi living in South Korea.
> >
> > I have a question about DPDKì packet distributor library.
> >
> > Is there any example application to used DPDK packet distributor library?
> >
> > I am trying to experiment simple function using DPDK packet distributor library.
> >
> > If I can study an example application of DPDK packet distributor library, it would be very helpful for my experiment.
> >
> > I will appreciate if I can be given any example applications, advice, and information.
> >
> > Thank you very much.
> >
> > Sincerely Yours,
> >
> > Ick-Sung Choi.
> >
> Hi,
>
> there is a "distributor" example app in the examples directory.
>
> /Bruce
>
\x16º&vúÚ£8f¢Ê&N^[rÝtëmxßm5å\x17º¹ÏjØ]¾¶¨çÎ ¨¥ryÇ¢½ç_®¦j)hoGõïH(¢ ^r¦j)hoGõïH(¢ ^r¶Óß9Û^5ïFòvd¢¸\x0f¢Ë_\x1c"¶\x11\x1213âtOCßß\x03\x03§èׯvd¢¸\x13íNrÝ´×:Û^6ûM´Ð!\x12M\x17z+Þu¼¨m¶áó\b
#\x13>'[Ë(ãÎvë\x7f|¡¶ô~Ýz÷ivJ+gßD§m5çmv×´ïM\x0f\r0Ê Ä¢vº·¯
next prev parent reply other threads:[~2015-10-01 1:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 5:45 최익성
2015-09-30 7:04 ` Joongi Kim
2015-09-30 10:56 ` Bruce Richardson
2015-09-30 11:41 ` 최익성
2015-09-30 12:03 ` Bruce Richardson
2015-10-01 1:41 ` 최익성 [this message]
2016-01-06 10:37 ` Pattan, Reshma
2016-01-06 10:49 ` 최익성
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=a3c9912fa6bb594dfa01b3d4e36baab@cweb29.nm.nhnsystem.com \
--to=pnk003@naver.com \
--cc=bruce.richardson@intel.com \
--cc=dev@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).