From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) by dpdk.org (Postfix) with ESMTP id 818E8376C for ; Wed, 16 Sep 2015 15:30:36 +0200 (CEST) Received: by qgx61 with SMTP id 61so171047554qgx.3 for ; Wed, 16 Sep 2015 06:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=+e5fj3QlftCgdKh+EOYhppOhOLIeoPSZdkzv/ixj70A=; b=nvVhuuNpXn5DIrmc4+5Fgyh9kC99uI+WMSLM97HBFembpeVTMUnuk7L8IreMGNVJJp AVBoKqPvxKuFi+1ULuVSurL8S4rFuRqlZVN8j/wh56A6KPuKmjqHN+KAXl4/NfhOC6JS 0gmkGC3Y4KElQXwvChaXidga4v77/OxjBpFkYbiSdqCVl1olFUY7lcXpMg573SIi1+Zm Y3kAu6VnW49KnQw371F8WlJOLarTV2zEIxu6/YAxwt1UhE4iaq42tLvMUPy4GehfABfj 6JB2eLABRFVKQoyCL1xX41jADZ0uminSsVmvze9qR8IY0zjTCd65yRQ/iq3QwKQ+pMjG lIYQ== X-Received: by 10.140.132.71 with SMTP id 68mr44201006qhe.64.1442410235943; Wed, 16 Sep 2015 06:30:35 -0700 (PDT) Received: from [10.49.247.22] ([54.240.217.18]) by smtp.googlemail.com with ESMTPSA id g77sm10005345qgd.5.2015.09.16.06.30.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 06:30:35 -0700 (PDT) To: Thomas Monjalon References: <55F88932.7020800@gmail.com> <1944265.eVANXui8GP@xps13> From: "Wu, Yiwen" Message-ID: <55F96EFA.8050006@gmail.com> Date: Wed, 16 Sep 2015 09:30:34 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1944265.eVANXui8GP@xps13> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] No egressing packet X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2015 13:30:36 -0000 Thomas, I am using rte_eth_tx_burst to send packets. I also use rte_eth_add_tx_callback to register a callback to figure out what has been sent. Thanks, Yiwen On 9/16/2015 3:32 AM, Thomas Monjalon wrote: > 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