From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) by dpdk.org (Postfix) with ESMTP id 2C9745A06 for ; Thu, 5 May 2016 23:41:39 +0200 (CEST) Received: by mail-ig0-f172.google.com with SMTP id bi2so28975254igb.0 for ; Thu, 05 May 2016 14:41:39 -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; bh=bSuEusJwZwL/hg5seyMzRQXC0CGrLB5zUBCG4mo6rLc=; b=eWb5xv/uDVEY5kv1vJubUrXZXRvqv6dC3ku1UBT8GVc084cGV++hu3iXDAcx6LJtaL rVKP2RCrjAq8vZW+SGOciRz849+mNEH3iik4n84FpDjnX/Ax91KbQMZ+YYetf4EPUw0R QoHi7h3noRPI/OlVq3HJd++LZ9rc6MpkMydUjaHs2f6IYiFoKlhuyEtZzmAl1gmuybUF JonPlTdJ0zAFdieRKhmi4lz76I5uaLA0xhD7dSuyljG6gw7Ff65mjYJljpeunU2Otvlc eP8hRtiyVEcqFdAdzL4rLatwAbKNXyq7VkHo15hY2KXo9SsmkLl2HNCQMXq05/xqGHNj NEbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=bSuEusJwZwL/hg5seyMzRQXC0CGrLB5zUBCG4mo6rLc=; b=KJ0Jst1zbHLJ4Gm+4G4hWS2oPO/dh7/PadRx0nkVpsr7mvBTWEjHvH8btxoolyGtgo xcX3+MeIGr6cjMsBIHC9J65l71ALkiVk0s0Poipf/v0Qv2hL385EA5YODHbDv4jaAoDZ 1IEg5YQrDj9G6IGflj9EhATvxecoVjEl1xic7pCaJmvWJIE9zGfRwo3c0dJxt4rpp3+A ysNCNqnKKn/CQ+YHgerVV1ZvGnNcL7il3MCXEXf6/wdw1lnANgeADP42WGIDgX3vjOxP bqlMgbcVs9kmBvb0VIEiWtYHfESFYqUVqnkfTQxbHzvRrf4cD3bKTWBq9hncYGvbP0f7 OhKA== X-Gm-Message-State: AOPr4FWY506rM+NtbVQ1fpEYWG4tNsn9JRe8bEHzteeYiTQGLyQGLeOUdHU2JlGYbygyfgbAHqJZIuu30hSmiA== MIME-Version: 1.0 X-Received: by 10.50.230.17 with SMTP id su17mr6254156igc.80.1462484498673; Thu, 05 May 2016 14:41:38 -0700 (PDT) Received: by 10.36.204.138 with HTTP; Thu, 5 May 2016 14:41:38 -0700 (PDT) Date: Fri, 6 May 2016 01:41:38 +0400 Message-ID: From: Victor Boudon To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Dealing with pcaps X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2016 21:41:39 -0000 Hi, I'm trying to build an application based on dpdk, but I'm a little lost, and I feel like I'm not in the traditional use case: The idea is that i can have pcaps that a are "dropped" into my application. What I was thinking of doing: Build a new driver based on the one in net/pcap. It will read on a queue: "what pcap should I read", and send the packets through the rx_queue. - How does the threading model works ? For what I understand, the driver is a "producer", that push the datas to worker thought the rx_queue. - Can I add add additional metadata for the packet into the rx_queue ? Stuff like a pcapid, and the offset of the packet in the pcap. - Can I detect "are all packet processed" and aggregate statistics based on that ? - In which case should I use one or multiple rx_queues ? - Should I implement the tx_queues parts, event if I'm not going to use this driver for dumping ? Thanks, Victor