From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DAC6FA04F1 for ; Mon, 6 Jan 2020 06:55:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5F3391D5C4; Mon, 6 Jan 2020 06:55:38 +0100 (CET) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by dpdk.org (Postfix) with ESMTP id E535A1D5B7; Mon, 6 Jan 2020 06:55:34 +0100 (CET) Received: by mail-io1-f50.google.com with SMTP id b10so47427361iof.11; Sun, 05 Jan 2020 21:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=wg5060eemW91Gwaw7cbz7qG5i9MeK8kqvyXLnPDzmE4=; b=AyzGNMmUmXT8XhuEmXqe6RE2NB2oNhoris4Iz/RhrJm/UjPoW7SF0+OMDQXSPNHQMt 6iy6esBss6EP3R/Bihyg63HpeWSRKwlTCb0jemde9NyjbQaRt5kYLcI2uYSjbHJ/vypO ROnQ+8GbwM3O3BC5LCjF3TX6v7r73E+CJSrxGrxX591hoc8jgcmydd7IPFUCXRj93HFx ofCwkueEol4LccFHX5elQUY9EImWt8nYZZn1vRFcNxiPHXD0vFEe9ZDpTR61UAzNkKx2 +cZBj+VGVFmZWr+q+E/F2apJ5aJVYyr2Qb2hJXJYe3K8g0qr5rPsJeCuORuZIK+owU3b EHSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=wg5060eemW91Gwaw7cbz7qG5i9MeK8kqvyXLnPDzmE4=; b=Mkyu5fpFNS6FDsW7lUPUTAlBVb1z6krdTNz0it4v34r5kJRRiJF+q3FypXKm7P4d9d gdSmbWFlu40lSuJCWJoz/5VCEDu8lYSwSOJWJ+t3+YRWDo6UjsliRpvF1JwCseErVsMx 8vKeDx+9eGfDmq674W/fT5F3l0odQoRZYETqT3zaYwukNy03ZgQak175HcBxq46D6xNH 3CBoF6aXqZxkfhYpG+/kfkXDgfuJXgpoVXbA+d/9b0U5QrYfQasjtUKNBmJz2OcgtKs2 vHx4nNPogKwZjJ5ZWkYlxhr6Ea8Ba6WL+HfDSAe+m98NXBULGyNbnKBmlxf2W6ehP39b BEFg== X-Gm-Message-State: APjAAAVU/MLNXk7R2VhqFX+xWDbRs1STsfzodnmueD9QyHVDvhhRRqT0 I4xxPFezoDihVk/6sdYnBwSKswL5WZ536irPwDF1IQ== X-Google-Smtp-Source: APXvYqxPPYgyDgVpcwVIXyR35gR92eWsWgvCg2i60sTkrP2logqZW30YBFdn8LPVv9uz1M4hwmW71Q4eoUsW3wJO5ZA= X-Received: by 2002:a5e:df46:: with SMTP id g6mr54322356ioq.240.1578290134019; Sun, 05 Jan 2020 21:55:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: satyavalli rama Date: Mon, 6 Jan 2020 11:25:22 +0530 Message-ID: To: dev@dpdk.org, users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Fwd: l2fwd application are not sending continuous packets . X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hello Dpdk Team, I'm facing issue while forwarding packets in DPDK's l2fwd application. While sending 1 Lac packets from Scapy, I could see sometimes packets are sending from one VM to another VM. Before explaining issue let me explain topology. *Topology :-=======*1) I am having 4 VMs(Virtual Machines) in same host. All these VM are running on Ubuntu 16.04.1. 2) VM-1 is used as Scapy to forward packets (Scapy version 2.4.3) . While creating packets I am giving destination mac(d-mac) address of VM-1. 3) In VM-2 am running L2 forwarding application. In this l2fwd application, I am doing simple packet forwarding by statically keeping mac address of VM-3. Code :- l2fwd_mac_updating () { ... ...... ....... *((uint64_t *)tmp) = 0xddccbbaa/*VM-3 mac address*/ + ((uint64_t)dest_portid << 40); } 4) Also in VM-3, I am doing same like VM-2, but I kept mac address of VM-4 5) In VM-4, I am using wireshark to see packets coming from VM-3. 6) In VM-2 and VM-3, I kept promiscuous mode off by commenting out rte_eth_promiscuous_enable(). --------------- --------------------- ------------------ ------------------------ | VM-1 | ----------> | VM-2 | ----------------> | VM-3 | ------------------> | VM-4 | --------------- --------------------- ------------------ ------------------------ Scapy Simple L2 forwarding Simple L2 forwarding Wireshark used for sending packets Sending all packets to Sending all packets to VM-3 VM-4 (DPDK) (DPDK) *Problem :- ======*== >From scapy VM, I am sending 1 lac packets with rate of 100 packets per second. *During problematic condition I could see packets are not getting forward from VM-3.**Problematic state is happening anytime after sending 1k packets.* This issue is not consistence but I could see this issue 8 out of 10 times. * Debugging and Observations :-=========================* When I tried to debug this issue , I could see that 1) In problematic state, rx queue of VM-3 is not getting packets, but VM-2 is sending packets properly. I checked this by using pdump of rx queue. 2) Just before problematic state in VM-3, I could see that previous packet(only one packet) instead of going to VM-4, it is coming back to again in rx queue of VM-3 and after wards I did not get any packets in rx queue. 3) I have changed rate of packet forward 10packets per second. but still see the issue. *Can anyone please help to solve this problem ? I need it urgently .* Thanks, Satya