From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it1-f181.google.com (mail-it1-f181.google.com [209.85.166.181]) by dpdk.org (Postfix) with ESMTP id C772D4C96 for ; Fri, 9 Nov 2018 11:09:32 +0100 (CET) Received: by mail-it1-f181.google.com with SMTP id m15so2409779itl.4 for ; Fri, 09 Nov 2018 02:09:32 -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 :cc; bh=vtZx5z0pP0vdEOURV+Eech2mS9AHwqhdssnj1M+8GOg=; b=Bed2gU+P1wtZ/q/CvNi/qim3Lndaf8PosWWgtPoxcWC2P2WXCqGYpwgaA5XAfTmQJZ 4idWkXgJQqlD79U9g+M6H4yp1otX8puPKQyecTS3KmDrnmDhRrf3I5ASQCe6672sypQW 1gCkSUHhxcPsbeZjqrDKgIHb981TmzZCbsK08BJREHBchR679CY65gG8B5PpRzChgc+I F+n8KzICUQThIxhmDF2OR2WKzPAuwLLu4H6JEVDmHDyuZRAdfCFX5vRSZJHaJ59HmH1E B3QqMJpoDa//FrSszPBEYVjCgHoFXNSodYaWV/pp4w8puDVvWC+jTiGxw5zyk2xQsK0t 6pSA== 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:cc; bh=vtZx5z0pP0vdEOURV+Eech2mS9AHwqhdssnj1M+8GOg=; b=XVea/AWcgSlpyOD3DmW2Q92MaY8JKQRWYvNwCaNQ3lHP1wCo8W+Fa8pbLTFg1L3hkQ kEZ56/mNzZOh8Aux2E8a2IFzHuAC+YiWewBPF1BQXI0oTOG/FJ2dMP3lcesuvqga4Elb QJqoi6aY+L0rtDbq2GEv772ZDG2sbDIHyIqWT1PQcGA+neArsYfXF1rEdOI/cFp0JAGY dXcpkZKUA2/glb0EXbsvk2+lF3CpfmSsffZJLJ2DxkpFRvxmpvqv+Y/clXamKrpgEN3G wjiMth+ZuH8EIdpfOG/OFG8l4E4TXsA9hYXW71LXM5tYUsJysvlfv9sSzUr55uArCUCU sF2A== X-Gm-Message-State: AGRZ1gISzuQ7E08y09UZnoitS2eRl7i1YoCfcWdCvtzxWPZgZP59HYsg NA5oeNzMslViKpzpZj5hIScWU+Eb9cHw+XKWTaY= X-Google-Smtp-Source: AJdET5cUEsinhNaYp4IJ+0HeoIFThi2XveIpz5ffGq2y2jvfrw9CoEA4fV4eqzHsuqCTV+vc0wbhVWd8ts7FK1OjFgw= X-Received: by 2002:a24:9d48:: with SMTP id f69-v6mr813008itd.13.1541758171230; Fri, 09 Nov 2018 02:09:31 -0800 (PST) MIME-Version: 1.0 References: <71CBA720-633D-4CFE-805C-606DAAEDD356@intel.com> In-Reply-To: From: Harsh Patel Date: Fri, 9 Nov 2018 15:39:19 +0530 Message-ID: To: keith.wiles@intel.com Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Query on handling 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: Fri, 09 Nov 2018 10:09:33 -0000 We have implemented the logic for Tx/Rx as you suggested. We compared the obtained throughput with another version of same application that uses Linux raw sockets. Unfortunately, the throughput we receive in our DPDK application is less by a good margin. Is this any way we can optimize our implementation or anything that we are missing? Thanks and regards Harsh & Hrishikesh On Thu, 8 Nov 2018 at 23:14, Wiles, Keith wrote: > > > On Nov 8, 2018, at 4:58 PM, Harsh Patel wrote: > > Thanks for your insight on the topic. Transmission is working with the > functions you mentioned. We tried to search for some similar functions for > handling incoming packets but could not find anything. Can you help us on > that as well? > > > I do not know if a DPDK API set for RX side. But in the DAPI (DPDK API) > PoC I was working on and presented at the DPDK Summit last Sept. In the PoC > I did create a RX side version. The issues it has a bit of tangled up in > the DAPI PoC. > > The basic concept is a call to RX a single packet does a rx_burst of N > number of packets keeping then in a mbuf list. The code would spin waiting > for mbufs to arrive or return quickly if a flag was set. When it did find > RX mbufs it would just return the single mbuf and keep the list of mbufs > for later requests until the list is empty then do another rx_burst call. > > Sorry this is a really quick note on how it works. If you need more > details we can talk more later. > > > Regards, > Harsh and Hrishikesh. > > On Thu, 8 Nov 2018 at 14:26, Wiles, Keith wrote: > >> >> >> > On Nov 8, 2018, at 8:24 AM, Harsh Patel >> wrote: >> > >> > Hi, >> > We are working on a project where we are trying to integrate DPDK with >> > another software. We are able to obtain packets from the other >> environment >> > to DPDK environment in one-by-one fashion. On the other hand DPDK >> allows to >> > send/receive burst of data packets. We want to know if there is any >> > functionality in DPDK to achieve this conversion of single incoming >> packet >> > to a burst of packets sent on NIC and similarly, conversion of burst >> read >> > packets from NIC to send it to other environment sequentially? >> >> >> Search in the docs or lib/librte_ethdev directory on >> rte_eth_tx_buffer_init, rte_eth_tx_buffer, ... >> >> >> >> > Thanks and regards >> > Harsh Patel, Hrishikesh Hiraskar >> > NITK Surathkal >> >> Regards, >> Keith >> >> > Regards, > Keith > >