From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id C363DC484 for ; Mon, 29 Jun 2015 17:44:41 +0200 (CEST) Received: by wgjx7 with SMTP id x7so71549150wgj.2 for ; Mon, 29 Jun 2015 08:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vEwfMPxhBBxXkhngA/XGL5tXY23jSYW0t6N1mcecnp0=; b=EiI8N/gmQqldeoQ9CdDTP548irqHqK1V8zo/WKUTS0rQdR2npm/jLLFDG9yv+TQ5dj ELSp4hCPgN8/1YugUc0v0naGxlTAIQpZMlZwsyEqaPb8cAbcknDuXULtyaAX3Y5tnLPs QufLRqwm5jthAVwi2wE+0jw6ul8qOWZ+0rOqqkWOtjGbWWkLrU8AmDBtbxDLEZOHsf41 rUHN2zsMemF6Af+4GPkGvVElDOPgVntNycdnZmzIOQm8iy7WK5HrAPxAHbu1Lkk5TSNU vpTU7LoS5HP1GWHPY6pYoeZYrp6bJnldX1boeSDYBX1ihF9VN+XaeFQnwKFsjqZdhP7N FzgA== MIME-Version: 1.0 X-Received: by 10.180.9.6 with SMTP id v6mr23981355wia.83.1435592681639; Mon, 29 Jun 2015 08:44:41 -0700 (PDT) Received: by 10.194.36.99 with HTTP; Mon, 29 Jun 2015 08:44:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Jun 2015 00:44:41 +0900 Message-ID: From: Keunhong Lee To: Daeyoung Kim Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Receiving packets on only one port 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: Mon, 29 Jun 2015 15:44:42 -0000 Check that whether you are polling all RX queues of your program. You said that your configuration works well with Wireshark. So I don't think that this is the problem. You can check your port statistics for the number of received packets. If the statistics show 2 packets, but you received 1 packet, then your program might have mistakes. Keunhong. 2015-06-30 0:39 GMT+09:00 Daeyoung Kim : > OK, I see. My program uses RSS. Is it related to my problem? If the > testpmd application does not work, the switch configuration might be wrong. > Am I right? > > Thank you for your answer. > > Regards, > Daeyoung > > 2015-06-29 11:28 GMT-04:00 Keunhong Lee : > >> Actually I have no idea why this happens. >> If your switch configuration is correct, your program should work just >> like Wireshark does. >> I wander whether your program uses RSS. >> In my opinion, program bug is the most probable reason. >> >> Keunhong. >> >> >> 2015-06-29 23:32 GMT+09:00 Daeyoung Kim : >> >>> Hi Keunhong, >>> >>> Thank you for your help. Here is the network topology. >>> >>> DNS Client - Switch 1 - Switch 2 - Switch 3 - DNS Server >>> | | >>> port 0 port 1 >>> >>> DPDK port 0 receives packets using from the Switch 1 port mirroring and >>> port 1 receives packets from the Switch 2 using port mirroring as well. As >>> I already said, when I send DNS packets, the wireshark simultaneously gets >>> all the packets on two ports. I'm sorry what I told you is incorrect. Using >>> my program with promiscuous mode, the port 0 receives only DNS queries from >>> the DNS client, but the port 1 receives only DNS replies from the DNS >>> server. I'd like to know why it happens. >>> >>> Thank you very much! >>> >>> Regards, >>> Daeyoung >>> >>> 2015-06-28 20:22 GMT-04:00 Keunhong Lee : >>> >>>> I don't know your situation exactly, but here are possible problems. >>>> >>>> 1. Your switch learned MAC addresses of two ports. >>>> 2. Your program bug. >>>> 3. l3fwd itself contains some bug. >>>> 4. You did not set all ports in promiscuous mode. >>>> >>>> You'd better try 'pktgen' application to test your environment. >>>> >>>> Keunhong. >>>> >>>> >>>> >>>> 2015-06-27 0:45 GMT+09:00 Daeyoung Kim : >>>> >>>>> Hello, >>>>> >>>>> I'm writing a packet capture program from the l3fwd. When I send DNS >>>>> packets, the wireshark simultaneously gets all the packets on two >>>>> ports. >>>>> However, using my program with promiscuous mode, one port receives all >>>>> the >>>>> packets, but the other port gets nothing. Do you know why it happens? >>>>> Could >>>>> it be network topology problem using DPDK, a DPDK design like >>>>> forwarding >>>>> mechanism, or just my program bugs? Any comments would be appreciated. >>>>> >>>>> Thanks, >>>>> Daeyoung >>>>> >>>> >>>> >>> >> >