From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id D86FC11F5 for ; Wed, 16 Sep 2015 09:33:11 +0200 (CEST) Received: by wicfx3 with SMTP id fx3so59540401wic.1 for ; Wed, 16 Sep 2015 00:33:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=Dl809AtYht7JwKeLHTQgWIXcOAh79OnHJn/uV0uKhz0=; b=UwhYtb8iInRhDvGENFNjnmQotaRnRN0OJncm649RY6Ne0ug6SCZ1FfHaJWJ4eBBa0w CQmwac9JPoHIB2p/MHMxP2njHrY0cKEDFe3b9OrzavWgSi2PxkAJF4JsXnx6Lw4263iC F7wKFFav4XRB1WXOpNGFdxmkMDyljqVJ1+Vm4QhBx5HwuUf82zE8Yqinw1VW/O49SRu8 YKbXAgKcecJ9EgoJ6zRJGrFH9OZ/MlDPk7mGg6EPaQcj2fcRUh6lWmD6tdySDxxi2fGx q3M0a2a/uNgAuADnZDcqbQEI8MreXXa/zeSNkOQSBd3IO+1j9J7zhujedRX/BirOINYW fqyg== X-Gm-Message-State: ALoCoQnk6QWnGTgmp0ai2+UapRiyjK2BbL9Chsfxpmr6R42XjY/WC0esexFWbA6PXZPTEDKxtB7p X-Received: by 10.180.90.33 with SMTP id bt1mr15665014wib.59.1442388791701; Wed, 16 Sep 2015 00:33:11 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id pg5sm24992904wjb.21.2015.09.16.00.33.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 00:33:10 -0700 (PDT) From: Thomas Monjalon To: "Wu, Yiwen" Date: Wed, 16 Sep 2015 09:32:03 +0200 Message-ID: <1944265.eVANXui8GP@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <55F88932.7020800@gmail.com> References: <55F88932.7020800@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 07:33:12 -0000 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