From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by dpdk.org (Postfix) with ESMTP id 0ED581150 for ; Wed, 23 Jan 2019 08:16:34 +0100 (CET) Received: by mail-io1-f52.google.com with SMTP id r200so880107iod.11 for ; Tue, 22 Jan 2019 23:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Qz67UjHnGU0JKxlmPbvafJd1Rgua5tIs+9PIHCHthqQ=; b=kJ8SOgS15XSsrXFol9ErkbRc3KuZjBlPxVGvpVaN1zM/O+FKxjiSmFBK9K1bGTP/xM NB3XOyG/aHSU/LKR4erPDKAUy5MCOXWJ7QBljKcyodcn4aR9NmODO4F4xyqp5b2LIdex /Nt0EhqMdExUk+z8qvUSSjqc3w2wNEhB0YlmpWxbYZqWyYi+ML9tam4E73MrXgepH69W xcVUoFTCcdSS5Dk6VWQJ6Lq1qfb3olhlRTLasP+5+rheH7hEPT96/lYx+Va04IE+O/O1 19c1AatQIJ/rRRO0VVkn7dR/7ihiRT5wEWrVaTnxIK0HDKSqY3wMNJFiXTIDTieBofYZ 5sWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Qz67UjHnGU0JKxlmPbvafJd1Rgua5tIs+9PIHCHthqQ=; b=aG268TXa14dzFkFg/YW2YJQhuam0McZ2kh7REJ3muU2jPYrhnjMkrSY31q/njjoWIG sLko/Jwiux21bTXgtPOBmoV1bFaqmefnVcmYIvQfS4rcoLhyDZB0s1o83LvdeT3xu+s5 SGd3Imy0KIZ1FWxauzEFLr9U+9yFe9T/Y/T/WeRLWcqxBgsCBEygCRH0ZDSl+l2Q8EkI dxaYsVMr5ZjBS45XVkQbq4Q39JvqQodMQX1zS0q/VOCiFDCU27SXHK7jC6qBnH1U6CmK pp1i3HyY79FL9XHdOE18IU/fQmP2VpCOJFaMSFfH2RNidVztNwcC1z6jbP4rgFlgruFk uwCw== X-Gm-Message-State: AHQUAuZgaZOJOJYNayn1QzdMcHIAEu5SwXDFI+l2X6+xGqEqArFfU4Kq V1giGORg/tgAxdca2JwvZkOGBb6fFkqWV4X8Rd00pKQp0w== X-Google-Smtp-Source: AHgI3IZM9A1pa9lprgAGnh2RAvgh4woXFQxUra87vYDyiQmRaOFjyMs2W7paajZfoTfhueGn5JpS8ZJnmoncp94Q6Q0= X-Received: by 2002:a6b:3705:: with SMTP id e5mr598923ioa.240.1548227793184; Tue, 22 Jan 2019 23:16:33 -0800 (PST) MIME-Version: 1.0 From: Peter Balint Date: Wed, 23 Jan 2019 08:16:22 +0100 Message-ID: To: users@dpdk.org X-Mailman-Approved-At: Mon, 28 Jan 2019 03:15:02 +0100 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] rte_eth_tx_burst duplicate 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: , X-List-Received-Date: Wed, 23 Jan 2019 07:16:34 -0000 Hi, I am just writing my first a traffic generator code. The program sends predefined quantity of frames(Ethernet/IP/UDP) in each seconds. It use 2 loops 1 for seconds the other for the packets in each second. for sending I use a while loop sent=0; while (sent==0){ sent = rte_eth_tx_burst(eth_id, 0, &pkts, 1); } for reviving recv = rte_eth_rx_burst(eth_id, 0, pktr_burst2, 10); in the initialization phase I put the packet in the mbuf. In the UDP data filed is a counter which increasing in every second(with this I would like to identify the possible packet drops er sec bases) with lower load the program works fine but close to 100% of performance Forward frames sent: 8000000 Forward frames received: 8000336 Reverse frames sent: 8000000 Reverse frames received: 7990793 Results in 1 sec sent 800000 recvd 799972 and difference -28 Results in 2 sec sent 800000 recvd 799888 and difference -112 Results in 3 sec sent 800000 recvd 800000 and difference 0 Results in 4 sec sent 800000 recvd 800000 and difference 0 Results in 5 sec sent 800000 recvd 800000 and difference 0 Results in 6 sec sent 800000 recvd 800000 and difference 0 Results in 7 sec sent 800000 recvd 800120 and difference 120 Results in 8 sec sent 800000 recvd 799880 and difference -120 Results in 9 sec sent 800000 recvd 800000 and difference 0 Results in 10 sec sent 800000 recvd 800476 and difference 476 It received more packets than sent. Are there any solution to fix this issue? Many Thanks, Peter