From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by dpdk.org (Postfix) with ESMTP id B7CFA5595 for ; Fri, 15 Jul 2016 14:59:04 +0200 (CEST) Received: by mail-io0-f173.google.com with SMTP id 38so103465302iol.0 for ; Fri, 15 Jul 2016 05:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infinite-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MermEAqxCHx22+woJ/CIN0O5BLS+dbEEolz0HlTtT0U=; b=PHAS9MzLRwj7i1h83k2lsf79xOpZLylyjozW2TY0yxv5+ZJSBrPiGERQCYwD8gYyU8 UMnoOJ10JU1sXWFaL6CgPVsgpXBGvNa6Skhj9xgZbr2cfH2ycP5xCOjsSY0+zBJM4vN5 JvmVemgatsNNhvrc02eP817UOiX3CFGLDr7GZ4wiiUY60W9xRwhRyXPw2fyyx2j1pNsx avFhuOeQB4XdrDvf9Uozl9LoVrbEVJTviWj4CWv/cBjtQcDP3S2PEZXaaEmYvyWTIxfW XiDMYRGg8NjW3UxhC/m/cMcCmqyBUZFXLE6p2im6YXQJFWigItocp7TQ62PZJOtAQc59 vl6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MermEAqxCHx22+woJ/CIN0O5BLS+dbEEolz0HlTtT0U=; b=D/Qmt0gZhIlYTFB1NDSfiakhum0+UBZKSGYuGGsWl5sg+fDIEtyIcVSbL9Jcy+j+Mn dTkag502NnQn8Vft8lOrdyZABY23gKvF9vyHNDjtkGXWu955RI/xlEVyLja1TSsw0VHZ Te9/4MAeADMZNIuGOPsiYx/Z+hk8ot6Zjci3uDBHAonNEj3uxPvgZ/p7PifXmP7WDtZB OwzTe0cbcZsFv76WeLkZTXxAjRQMF9WN2RKe9+XfJM43McAHbprhEHn+4t2/lYzVmhsE ZXp0uVvQf58q7w4XNzCcCeL68sDvQmNuvr2FsWDuus5N5StfgyuZc1YcZat9W287/9mI QR3A== X-Gm-Message-State: ALyK8tKm8RsU1alUxqF+n+yyg2tevcAiepb32nEWbOwl+5qG22XSgdAchLgeJeBDPuP0KT0FdYbEyVzI8mubWg== X-Received: by 10.107.138.101 with SMTP id m98mr21425105iod.91.1468587544105; Fri, 15 Jul 2016 05:59:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.131.68 with HTTP; Fri, 15 Jul 2016 05:59:03 -0700 (PDT) In-Reply-To: References: From: Matt Laswell Date: Fri, 15 Jul 2016 07:59:03 -0500 Message-ID: To: Raja Jayapal Cc: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] capture packets on VM 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: Fri, 15 Jul 2016 12:59:05 -0000 Hey Raja, When you bind the ports to the DPDK poll mode drivers, the kernel no longer has visibility into them. This makes some sense intuitively - it would be very bad for both the kernel and a user mode application to both attempt to control the ports. This is why tools like tcpdump and wireshark don't work (and why the ports don't show up in ifconfig generally). If you just want to know that packets are flowing, an easy way to do it is simply to emit messages (via printf or the logging subsystem of your choice) or increment counters when you receive packets. If you want to verify a little bit of information about the packets but don't need full capture, you can either add some parsing information to your messages, or build out more stats. However, if you want to actually capture the packet contents, it's a little trickier. You can write your own packet-capture application, of course, but that might be a bigger task than you're looking for. You can also instantiate a KNI interface and either copy or forward the packets to it (and, from there, you can do tcpdump on the kernel side of the interface). I seem to recall that there's been some work done on tcpdump like applications within DPDK, but don't remember what state those efforts are in presently. -- Matt Laswell laswell@infinite.io infinite io, inc. On Fri, Jul 15, 2016 at 12:54 AM, Raja Jayapal wrote: > Hi All, > > I have installed dpdk on VM and would like to know how to capture the > packets on dpdk ports. > I am sending traffic from host and want to know how to confirm whether > the packets are flowing via dpdk ports. > I tried with tcpdump and wireshark but could not capture the packets > inside VM. > setup : bridge1(Host)------- VM(Guest with DPDK) ----- bridge2(Host) > > Please suggest. > > Thanks, > Raja > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > >