DPDK usage discussions
 help / color / mirror / Atom feed
From: rajesh kumar <rajeshisbest@yahoo.co.in>
To: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>,
	 "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] query on m_src buffer in crypto_op buffer
Date: Wed, 11 Jan 2017 00:44:26 +0000 (UTC)	[thread overview]
Message-ID: <303787119.1154342.1484095466581@mail.yahoo.com> (raw)
In-Reply-To: <E115CCD9D858EF4F90C690B0DCB4D897476C17A9@IRSMSX108.ger.corp.intel.com>

Hi Pablo,
Thank you for the clarification. So as i understood from you mail we can update either from ethernet header or from ip_header. If included with ethernet header ipdata_offset will be length of ethernet + ip header. if i include only from ip_header then ipdata_offset will be length of ip header alone.  DPDK crypto api will not be touching anything on the ethernet and ip headers.Since in my application code i will getting packet after processing 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 correct.
thanks,
Rajesh 

    On Tuesday, January 10, 2017 9:49 PM, "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com> wrote:
 

 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
> 
> 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 the
> 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 the
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 = ipdata_offset, where ipdata_offset
is the length of the Ethernet and IP headers.

So, all you need to do is adjust this offset (and length) for ciphering 
and authentication.

Thanks,
Pablo

> Thanks,Rajesh


   
From sakthivelpvs@gmail.com  Wed Jan 11 04:55:25 2017
Return-Path: <sakthivelpvs@gmail.com>
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 <users@dpdk.org>; Wed, 11 Jan 2017 04:55:25 +0100 (CET)
Received: by mail-wm0-f54.google.com with SMTP id c85so146588892wmi.1
 for <users@dpdk.org>; Tue, 10 Jan 2017 19:55:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s 161025;
 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\x1e100.net; s 161025;
 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 <sakthivelpvs@gmail.com>
Date: Wed, 11 Jan 2017 09:25:24 +0530
Message-ID: <CANrG1jXW_wPypSECZx3NBrg3ARBqfrE583+mBqbZL+K36C8dOw@mail.gmail.com>
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 <users.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=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

      reply	other threads:[~2017-01-11  0:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <842265879.1377278.1483945224790.ref@mail.yahoo.com>
2017-01-09  7:00 ` rajesh kumar
2017-01-10 16:19   ` De Lara Guarch, Pablo
2017-01-11  0:44     ` rajesh kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=303787119.1154342.1484095466581@mail.yahoo.com \
    --to=rajeshisbest@yahoo.co.in \
    --cc=pablo.de.lara.guarch@intel.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).