DPDK patches and discussions
 help / color / mirror / Atom feed
From: deco33000 Jog <deco33000@yandex.com>
To: dev@dpdk.org
Subject: [dpdk-dev] DPDK - TX from lcore in packet distributor configuration
Date: Wed, 21 Jan 2015 15:00:50 +0100	[thread overview]
Message-ID: <2523541421848850@web15h.yandex.ru> (raw)

Hello,

-- PROBLEM
I have a AF_PACKET socket which is in promiscuous mode to get all the NIC traffic and let my apps do the whole stuff.

So I have one receiver and need to communicate the packet to different threads/processes (lcore) so that they can process the rest of the packet (tcp/udp...)

-- QUESTION
I read about the packet distributor architecture which seems to answer that need.
http://dpdk.org/doc/guides/prog_guide/packet_distrib_lib.html

BUT i fear that it be slow at resending the packet to the distributor which may already be overloaded by inputs from the net. Why pass back the answer to the distributor if the lcore could send to the wire directly ?

My problem is going back to the distributor after the packet processing. i would a direct send to the tx ring.

Is it possible ? How ?  By passing the TX pointer to the lcore ?

             reply	other threads:[~2015-01-21 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21 14:00 deco33000 Jog [this message]
2015-01-21 16:30 ` Bruce Richardson
     [not found]   ` <3621191421867764@web4m.yandex.ru>
2015-01-21 19:25     ` deco33000 Jog

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=2523541421848850@web15h.yandex.ru \
    --to=deco33000@yandex.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).