DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: "Wu, Yiwen" <yiwen.wu76@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] No egressing packet
Date: Wed, 16 Sep 2015 09:32:03 +0200	[thread overview]
Message-ID: <1944265.eVANXui8GP@xps13> (raw)
In-Reply-To: <55F88932.7020800@gmail.com>

2015-09-15 17:10, Wu, Yiwen:
> Hi all,
> 
> I am new to dpdk. I am running a single forwarding program based on dpdk 
> 2.1.0. The program runs on a VM, binding on two interfaces. All it's 
> doing is to forward packets from one interface to another. All 
> ingressing packets are fine but there seems no egressing packets. I used 
> rte_eth_add_tx_callback to register a tx callback. The callback is able 
> to print the right egress packet but the destination is just not 
> receiving it (via tcpdump). Does anybody have the similar experience? 
> Any solution or hints will be great.

You need to call rte_eth_tx_burst() instead of rte_eth_add_tx_callback().
For more information, please check the guide:
	http://dpdk.org/doc/guides/prog_guide/poll_mode_drv.html#poll-mode-driver
You can also check this basic example:
	http://dpdk.org/browse/dpdk/tree/examples/skeleton/basicfwd.c

  reply	other threads:[~2015-09-16  7:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 21:10 Wu, Yiwen
2015-09-16  7:32 ` Thomas Monjalon [this message]
2015-09-16 13:30   ` Wu, Yiwen
2015-09-16 13:35     ` Richardson, Bruce

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=1944265.eVANXui8GP@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=yiwen.wu76@gmail.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 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).