From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by dpdk.org (Postfix) with ESMTP id 93D982BB9 for ; Fri, 6 May 2016 13:14:47 +0200 (CEST) Received: by mail-ob0-f170.google.com with SMTP id aq1so44542279obc.3 for ; Fri, 06 May 2016 04:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=6+fvziSmLNnAKT3UJJNjU5UgvB9PtmTtkxnO2NH/JXo=; b=ZFDlrnftw8anRkFW11b35zqZlm2ktzj32ISy2OiYeucZBW01/WBjSx7Pz7G8QxSGyR 5ys09Mhj0IGnQks3x/H7nIphIgyXth0tX4howi5OJQt64TfvQp6up8fuAntphQNszBFx zRGh2cdnQGgEuubU3Sf+3qGsDvJx4whDUohTNoAbJDnkx1qFXZhqt4ihEbYZixpGGDly 6aNVahWcC8CvKnOWlN+KVdNKOXfu84Z/qVaZA/9ojdmGDOrdW+FEkK7/Fggbt3XuusQo /k/j0gtVj+0GBCobBsUPJV6CzqNcsiZoc9BxLu9ISNODSaqYBw3APEvnl+cNbJF8pczs xy0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=6+fvziSmLNnAKT3UJJNjU5UgvB9PtmTtkxnO2NH/JXo=; b=JcfiETnWHho6I8Nnnv0jYa2HrbpUhWLcJAxcfEVZ96Z70wHHBXbzhjP5XmCIUu9vGQ nOWFIKLtexMaeOVVuEkZS3LaRgq/XS/olD2U37c5aJzzScdcC8MY2t/WwEFR275RPHlm T+E57dT91Q4QezJ8L2FaGVJcDHmZNuPRCuwJjMU4weKuCOUHwjL+IilJeqp+DMLxlD69 9uOSIGkkDjmmy6W3NyAi9+SZ9+hZ0LKfrc4U8MhMOyzXRDZwAyH0Y6eKHaxS6q2h2LXA mQJNOnRNnjM0Qt+Cu9FI0Tp9/IUZbYc5o8iiaJuFxdhI8Y63NY8z48n3Tc7B96M2Mtuj 4NuQ== X-Gm-Message-State: AOPr4FWaF33tpWNeU2Fl3AuRgSD4jzATlXVx4fGJY8hWITgBRUmyvsWPeXDincRGPfQS2BcVh5k29/upAw/vRA== MIME-Version: 1.0 X-Received: by 10.60.125.134 with SMTP id mq6mr7330885oeb.18.1462533287113; Fri, 06 May 2016 04:14:47 -0700 (PDT) Received: by 10.157.11.112 with HTTP; Fri, 6 May 2016 04:14:47 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 May 2016 16:44:47 +0530 Message-ID: From: Upendra Pathrikar To: Victor Boudon Cc: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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: Fri, 06 May 2016 11:14:47 -0000 Hi Victor, I think this page Libpcap and Ring Based Poll Mode Drivers http://dpdk.org/doc/guides/nics/pcap_ring.html?highlight=pcap can help you. On Fri, May 6, 2016 at 3:11 AM, Victor Boudon wrote: > 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 > -- *Regards,Upendra Sunil PathrikarBharti School of Telecom Technology and Management,Indian Institute of Technology, Delhi.*