From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 46D833787 for ; Wed, 16 Sep 2015 15:35:28 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 16 Sep 2015 06:35:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,539,1437462000"; d="scan'208";a="770238250" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by orsmga001.jf.intel.com with ESMTP; 16 Sep 2015 06:35:27 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.251]) by irsmsx110.ger.corp.intel.com ([163.33.3.25]) with mapi id 14.03.0224.002; Wed, 16 Sep 2015 14:35:25 +0100 From: "Richardson, Bruce" To: "Wu, Yiwen" , Thomas Monjalon Thread-Topic: [dpdk-dev] No egressing packet Thread-Index: AQHQ7/r4Gp3CBWNbukm5jdURR74vdJ4+staAgABkKwCAABHbEA== Date: Wed, 16 Sep 2015 13:35:24 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B035927E73@IRSMSX103.ger.corp.intel.com> References: <55F88932.7020800@gmail.com> <1944265.eVANXui8GP@xps13> <55F96EFA.8050006@gmail.com> In-Reply-To: <55F96EFA.8050006@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:35:28 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wu, Yiwen > Sent: Wednesday, September 16, 2015 2:31 PM > To: Thomas Monjalon > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] No egressing packet >=20 > Thomas, >=20 > 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 bee= n > sent. >=20 I would suggest checking that the source mac address is correct for all outgoing frames as packets with an incorrect source are likely to be blocke= d due to security (spoofing) concerns. /Bruce > Thanks, >=20 > Yiwen >=20 > 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-dri > > ver You can also check this basic example: > > http://dpdk.org/browse/dpdk/tree/examples/skeleton/basicfwd.c