From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 1286F307 for ; Sun, 13 Apr 2014 12:19:42 +0200 (CEST) Received: by mail-wi0-f173.google.com with SMTP id z2so2835698wiv.12 for ; Sun, 13 Apr 2014 03:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=N8dRWnuKejl8X0/iLsGpRQUVcY9uFvILiZaTTi0z/D0=; b=DzFl3nPdt5VOmVYqa4cVk/qN16JKfLbxqyCFthIDJhUa5kpnXqafj7Leb5EFpnGOeQ 0hmDai88fFCMM9oURPPcGcjcZZjw+VpS5ZlhF8Tt+2/qR/nzlflFRROO3mIPB6Jv/HVh TDVjhnD2FugeuhitRIgpAzonT6ge7/ZAV2wcfxXOzg9x9iPzB9IbjBxCWG+ig6HjKd+l OcGtpt76fdtnBxERgWr9S9+XGy2TDGtFWJ6uOapzUBm3iBVG1RFGEK+bAJi8cjB8xU19 ksgwpQBsuNiRnlZWrEcguN05TQW7LZTSEWeKFQC+5XkhAb3q9paXQwzGe9fkta/HsUYt 4W4w== MIME-Version: 1.0 X-Received: by 10.194.24.74 with SMTP id s10mr4756206wjf.43.1397384480831; Sun, 13 Apr 2014 03:21:20 -0700 (PDT) Received: by 10.194.237.227 with HTTP; Sun, 13 Apr 2014 03:21:20 -0700 (PDT) Date: Sun, 13 Apr 2014 13:21:20 +0300 Message-ID: From: Meir Tseitlin To: dev@dpdk.org, Olivier MATZ Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Weird behavior of DPDK - ongoing problem 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: Sun, 13 Apr 2014 10:19:43 -0000 Hi guys, I am still struggling to find a solution for a problem each time I face from different angle (already wrote few posts). Now I think it is some kind of DMA problem. I am modifying l2fwd example to collect packet flow from high speed ethernet device and store it in file, this is why I use pcap driver attached to file as a one side of l2fwd. In addition I need to send control packets to the device and receive answers. Initially I implemented packet injection mechanism using rte_pktmbuf_alloc (I tried both original mempool or additional one). I checked receive packets for specific packet type it header, to detect if it is data packet or an answer to control packet (answers to control packets are not forwarded to file). The problem is that in 30% of the cases data packet enters the path of control packet instead of expected answer. Which probably means that after my packet type check, the mbuf is overwritten before handled properly. To overcome this problem I created a TAP device for control packets (instead of allocating them with rte_pktmbuf_alloc) and initialized it with Pcap driver. But I am facing the same problem - on the receive side, when control answer packet arrives is it skipped and another data packet sent to TAP device. It seems like mbuf containing control packet, intended to be sent to TAP device is overwritten with data packet after the routing mechanism (maybe with DMA?) I also tried enabling sanity check before calling to rte_eth_tx_burst and it fails. Please help, It is really frustrating Meir