From: Remy Horton <remy.horton@intel.com>
To: Vivek Gupta <vivek-g@hcl.com>
Cc: dev@dpdk.org
Subject: Re: Client Server Application using DPDK API
Date: Wed, 09 Mar 2016 16:44:10 +0000 [thread overview]
Message-ID: <56E052DA.8000901@intel.com> (raw)
In-Reply-To: <488FF59D9020184C9DCF4B4A0DA4781425535B44@NDA-HCLT-MBS03.hclt.corp.hcl.in>
'noon,
On 09/03/2016 08:45, Vivek Gupta wrote:
> Hi
>
> I want to write a Client Server application using DPDK API on a
> single machine. What are the basic building block for that. How can
> we write such application?
examples/l2fwd/main.c and examples/ethtool/ethtool-app/main.c are
probably the easier examples to follow. In terms of function calls, it
is pretty much:
rte_eal_init(..);
for (each port) {
rte_pktmbuf_pool_create(..);
rte_eth_dev_configure(..);
rte_eth_dev_rx_queue_setup(..);
rte_eth_dev_tx_queue_setup(..);
rte_eth_dev_start(..);
}
while(1) {
rte_eth_rx_burst(..); /* incoming frames */
rte_eth_tx_burst(..); /* outgoing frames */
}
Bear in mind that DPDK deals with MAC frames rather than higher level IP
packets, which may be an issue if you intend to use TCP/IP based
application protocols.
> ::DISCLAIMER::
Avoid using confidentality disclaimers on mailing list emails. It tends
to "annoy" people.. :)
Regards,
..Remy
next prev parent reply other threads:[~2016-03-09 16:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-09 8:45 Client Server Application using DPDK API Vivek Gupta
2016-03-09 16:44 ` Remy Horton [this message]
2016-03-15 9:06 ` Vivek Gupta
2016-03-15 10:41 ` Bruce Richardson
2016-03-15 11:00 ` Vivek Gupta
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=56E052DA.8000901@intel.com \
--to=remy.horton@intel.com \
--cc=dev@dpdk.org \
--cc=vivek-g@hcl.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.