From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm44-vm9.bullet.mail.gq1.yahoo.com (nm44-vm9.bullet.mail.gq1.yahoo.com [67.195.87.214]) by dpdk.org (Postfix) with ESMTP id 9774B282 for ; Wed, 11 Jan 2017 01:47:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s2048; t=1484095628; bh=ojvqdIG5tmENmOlr/WeQa40nobSNUt9VFqTsOQh0Jpg=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=jcvi3Xc6Unpi0MAzI718USOZgobwhcjURoHiYcUTabI6iV3otuPwubH3WnA/f3lGdGc6pif9M1pU2kM/mqook+4qj+keasfWOtxnjbYc7IYJrChg4YQbDtcd1+gFef7Io62tRfGFWO6SbfnRPo5vjYnfDWherXQuwJNZPT1H932U98rUPBR/l38pAUl8aEuEOn9KwhnHZusL/Wuw+Ekk10MffEeFKYoQGMvr0dlpw6AsSZqGI0hIDfQ+IYTLpu+N0xEJy9DKGHN7NlZx/SOx9SkMEgBYl5U5ZhdmJ71dVM+uNax/3AIyb++ryJZNRlP8q7fqYaNLOWkwZf7T53emnQ== Received: from [127.0.0.1] by nm44.bullet.mail.gq1.yahoo.com with NNFMP; 11 Jan 2017 00:47:08 -0000 Received: from [98.137.12.175] by nm44.bullet.mail.gq1.yahoo.com with NNFMP; 11 Jan 2017 00:44:27 -0000 Received: from [98.137.12.208] by tm14.bullet.mail.gq1.yahoo.com with NNFMP; 11 Jan 2017 00:44:27 -0000 Received: from [127.0.0.1] by omp1016.mail.gq1.yahoo.com with NNFMP; 11 Jan 2017 00:44:27 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 198383.58773.bm@omp1016.mail.gq1.yahoo.com X-YMail-OSG: mVzdAwgVM1kWZLAk7lUikZLtMkWWMJ7VGZZsFqRWjwqVDOaEa6Yz4jJ9CzgAZU1 .6xiS4HpcOkdg1RuYo1IM_FnpTu.QFkwCRImZSsU_rB81WA7jid2cJzz5tyfDDOjtexPhZ_.9jI3 8WG9en87gbmrTPZDYAI.sDGt3VayYI8v_l9scYy5eDmrJX_dOQzO7QVZjx1EiHFpnvsx86v2DTX5 mNmRPZnDEZhevD0Acqq6N3nFdrkYRHWJTiABODKD_shWJ4nSKpLI1ck7u9SgMnM.j6VY7QKK9_67 D3oJXVEB61QBqLsB1SblUGd7tMv32AjopFivq1G1gLH5se8Iro9zP6RNWtSzw9mB_nZjb7UfqToh 2AeJ0OTfQPqf8jCuQ8AZtAV1xSIZ7hqUVVEcZMUEhZWy16.X1X7tpytFyj_BN29eUoSXHkCktD2U hg2bdmyMy64FJe7nfIN1uGQfIf_eeRCeQRRk4I2_8J6e6_ujcDWrOCu4zKBgpiRzgnr0vP9Di4FK oR0VXqSksrKbD8dp9fQko75DY.b1zM5w66d8W3vgULg-- Received: from jws300036.mail.gq1.yahoo.com by sendmailws101b.mail.gq1.yahoo.com; Wed, 11 Jan 2017 00:44:26 +0000; 1484095466.843 Date: Wed, 11 Jan 2017 00:44:26 +0000 (UTC) From: rajesh kumar To: "De Lara Guarch, Pablo" , "users@dpdk.org" Message-ID: <303787119.1154342.1484095466581@mail.yahoo.com> In-Reply-To: References: <842265879.1377278.1483945224790.ref@mail.yahoo.com> <842265879.1377278.1483945224790@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] query on m_src buffer in crypto_op buffer X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: rajesh kumar List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 00:47:10 -0000 Hi Pablo, Thank you for the clarification. So as i understood from you mail we can up= date either from ethernet header or from ip_header. If included with ethern= et header ipdata_offset will be length of ethernet + ip header. if i includ= e only from ip_header then ipdata_offset will be length of ip header alone.= =C2=A0DPDK crypto api will not be touching anything on the ethernet and ip= headers.Since in my application code i will getting packet after processin= g the ethernet header so i want to copy from ipheader.Also after processing= from the crypto device we will receive the packet in the same m_src buffer= depending on how we updated.Please clarify me of my understanding is corre= ct. thanks, Rajesh=20 On Tuesday, January 10, 2017 9:49 PM, "De Lara Guarch, Pablo" wrote: =20 Hi Rajesh, > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of rajesh kumar > Sent: Monday, January 09, 2017 7:00 AM > To: users@dpdk.org > Subject: [dpdk-users] query on m_src buffer in crypto_op buffer >=20 > Hi All, > As part of our development crypto frame work we want to make use of > AES-NI instruction set from Intel i7 boxes for crypto operations. Want to > know whether m_src under crypto_op buffer which is op->sym->m_src has > to be pointed to ethernet header or any other header. This is to do > cryptographic operations on the packet received. From the l2fwd sample > application i could see this is pointed to ethernet header. Can i copy th= e > data from the ipheader and do the crypto operations since ESP data will > start after this only.Please provide your valuable inputs. m_src has to point at a mbuf, and then internally, it gets the address of t= he start of the packet with rte_pktmbuf_mtod. Since, L2fwd-crypto app handles IP packets, the start of the packet is the Ethernet header, but only the payload is intended to be encrypted. Therefore, op->sym->cipher.data.offset =3D ipdata_offset, where ipdata_offs= et is the length of the Ethernet and IP headers. So, all you need to do is adjust this offset (and length) for ciphering=20 and authentication. Thanks, Pablo > Thanks,Rajesh =20 >From sakthivelpvs@gmail.com Wed Jan 11 04:55:25 2017 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 9BAB3592C for ; Wed, 11 Jan 2017 04:55:25 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id c85so146588892wmi.1 for ; Tue, 10 Jan 2017 19:55:25 -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=muPQCPmQH/sSxP/vPjmwzRaZ79v0+ituKlP5e7AOu9M=; b=bIKtB77uJOyBqA49Zkv1BauFVXavwIyB4PDdK511awzGewhay3TABZRSpfj5cvBvR9 2P7SwuNsuzPnVAQhYCyJO7CtievG80PAVMNT20ulKnWkreoV6x/0dj4lbJck58FujOXJ cw9AWP+1qNjvI6htP4CWfp5bbY2QzEUOPsYs+yRLWvqXOE0TW92XR+nBwdV3ZXdVLbAn wWDzULCstbN7+ndeyoDVIdJvFCpe2CGoq4ACn9FRyIBQ32g0R9FbPuRLtKQbzpKLcDUe /dzihRsBRG7CFEwiHb2iigNQZTjxbLWsakn9wwKcCAXRpWH94WmYC7lNwQp2W1WJFhCe JYmw== 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=muPQCPmQH/sSxP/vPjmwzRaZ79v0+ituKlP5e7AOu9M=; b=PeISNvm7RKe9VuF1U9ysBBJ/TwW7xFaUkkoKrBLKlQQSWXsyx2hVd4deDMF2PVN0xm xG7MQSFkLYTUjM/g1P7VJzyA5BrxXu2yefOMSajWi4LZ8r9O1Qvk9EqQv2Y4Y4X1tFWY dwdYbfkyyRn4kKKMFtEKasfIapoltej3xrcALywJHeXFZtFx4+YE1TeK/uDKYy1KL2ut EFHSRMwMuWD/VjuA66QWE75xdCUh5lFgAmwE8yBBS/mVTbZFO7jJieOzBSolCCpHMkPe zHGMDDRLpVYlXPbDPK6y4+jwKO6on6REmC1gJ/qbYrWXY4c467iI1yp2G5YA3yn9T4kq w6Rg== X-Gm-Message-State: AIkVDXJCWK6w+jk9N7FsMgWQIs5VdEgxP/ktJ5Q8pK4l6+KU3X/OvVpG8TT7IT8DX5FOZOIDbPJgTm23x4bssA== X-Received: by 10.28.21.206 with SMTP id 197mr1105460wmv.128.1484106925120; Tue, 10 Jan 2017 19:55:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.182.124 with HTTP; Tue, 10 Jan 2017 19:55:24 -0800 (PST) From: Sakthivel Subramaniam Date: Wed, 11 Jan 2017 09:25:24 +0530 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Regarding Receiving packets from outer world (internet) 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, 11 Jan 2017 03:55:25 -0000 Hi, I'm new to DPDK and want to use dpdk for my project. I have basic question about receiving packets using dpdk bound interface from internet. Please provide clarity for following questions. 1. How can we receive packets from internet and process the same using DPDK? 2. How to assign IP address for the DPDK ethernet interface ? 3. Is it possible to receive specific protocol packets (ex:MQTT) without IP address using DPDK? 4. Is it necessary to add TCP/IP stack to dpdk? -- Thanks & Regards Sakthivel S