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 A5F22A04F1 for ; Mon, 6 Jan 2020 08:08:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55F9E1D5D1; Mon, 6 Jan 2020 08:08:03 +0100 (CET) Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by dpdk.org (Postfix) with ESMTP id AC3401D5D1; Mon, 6 Jan 2020 08:08:02 +0100 (CET) Received: by mail-il1-f172.google.com with SMTP id v69so41735277ili.10; Sun, 05 Jan 2020 23:08:02 -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=J3E3JcIDDEJ6+ZvSW+yR5GKa9O/jJMPV0rgLoQMPpQk=; b=Pma+oxWmqnudBNQQgRxISqNV95BDbvZC52mUVUUQVy7SPYn+QYHkzbfPtgWFgt6GUZ ebl+sLoBDlGOu8eH12qaC+kqZL0yWhWvAkxM39wJkPF3cxTyRY+ulQsTxvp+9UBdbW7/ 5kyaR8AtBW25/z7XlWO0xoP7oF6e4wxkICbxkB2U8le1INcgSM3cZJoTl+5vB/3ChMWS F0LAoCwf3VC+cFdD1tUsQDlc+uTPM1Lm8lD+meewhCx23T1HbECGMY7OhhBaWeeYsLpN 9JXH3a/Gc8Y9bdyxcC7jk9XWrv5xQJOoXWm4yP0OMmypKMz0rTbv3H1lH/Dscr1aV5cW ZsxA== 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=J3E3JcIDDEJ6+ZvSW+yR5GKa9O/jJMPV0rgLoQMPpQk=; b=OwM6dBFgyPPUKGVzgaGtfN0A+wlyblZg1JTDCzNjWwGD9Qqzqlw2XuAMNJj9kF1Ccn ZWZX3OqbixEit466u1wnHCU25FS6Qq9GNj1kMpH5cYBG6rcjgujHZkvDtBKrrKkPDo4O qGyGAogtILESXN+4/EJpTA1j2R80O52qn9NdtQpRJnrQfjrf2ob9bZw649COl5SF8J2z sEhcaPj32vfSN3HYdZTzI3+1XNPhRAJsJXpaTXfb3Hd/OS5s25gRIEVxkx3yPia9dL9P 5tCQpBnL6B+RzzugSvNJFRL23B4H0/icmlQOoq/nxSK/C3oATDbNAaCf+qndq1bF5rfX LMMg== X-Gm-Message-State: APjAAAVNWPp3jYKt8CKfgP5iuEGBcQeGWbNdkof94+FjCxUPv4Ofnfm0 foFoRBQPwNYTh1Q6j3bhFNah3HaleZXGz9o583IK0Q== X-Google-Smtp-Source: APXvYqy1ZmchFeg6SFmWWGwmdKakdir8jjw70TmtWnMAIzv8VNKHVEBWnmVUfoud8+ytMMVyonfgjNTN/dSga04x+ps= X-Received: by 2002:a92:5bc7:: with SMTP id c68mr55598636ilg.184.1578294481798; Sun, 05 Jan 2020 23:08:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: satyavalli rama Date: Mon, 6 Jan 2020 12:37:48 +0530 Message-ID: To: dev@dpdk.org, stable@dpdk.org, users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-stable] l2fwd application are not sending continuous packets . X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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