From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0084.outbound.protection.outlook.com [104.47.38.84]) by dpdk.org (Postfix) with ESMTP id CC11E5A33 for ; Wed, 5 Oct 2016 08:40:26 +0200 (CEST) Received: from BN6PR03CA0040.namprd03.prod.outlook.com (10.175.124.26) by BN6PR03MB2436.namprd03.prod.outlook.com (10.168.223.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Wed, 5 Oct 2016 06:40:25 +0000 Received: from BY2FFO11FD031.protection.gbl (2a01:111:f400:7c0c::161) by BN6PR03CA0040.outlook.office365.com (2603:10b6:404:10c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16 via Frontend Transport; Wed, 5 Oct 2016 06:40:25 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD031.mail.protection.outlook.com (10.1.14.196) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Wed, 5 Oct 2016 06:40:25 +0000 Received: from [127.0.0.1] ([10.232.134.49]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u956eLlD011523; Tue, 4 Oct 2016 23:40:23 -0700 To: , Declan Doherty References: <20160926163300.22990-1-akhil.goyal@nxp.com> <20160926163300.22990-3-akhil.goyal@nxp.com> From: Akhil Goyal Message-ID: <17b5c942-4b83-2ef0-a0f7-6755eaf73383@nxp.com> Date: Wed, 5 Oct 2016 12:10:20 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160926163300.22990-3-akhil.goyal@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131201232253954400; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(18543002)(377454003)(24454002)(189002)(199003)(230700001)(36756003)(77096005)(586003)(68736007)(104016004)(2950100002)(356003)(85426001)(83506001)(23746002)(50466002)(19580395003)(2906002)(19580405001)(8936002)(7846002)(92566002)(47776003)(65806001)(120886001)(65956001)(31696002)(31686004)(106466001)(81156014)(76176999)(54356999)(50986999)(86362001)(81166006)(107886002)(97736004)(189998001)(8676002)(5001770100001)(64126003)(5660300001)(7246003)(305945005)(626004)(105606002)(4001350100001)(65826007)(7126002)(11100500001)(87936001)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2436; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD031; 1:0oZvOX9kuVRXVsvVvoAUFJHadmBshBCSdDbnBkDFONApGcrWhioF42eI32y1VjGAhSagqHhRrlGhUnZKA/5jBHpG+hA6TmlmK0F0jDIjDpNBL3tlSTQ45wlzKGmUFe90wU6RkrouoeESmY+ZV8SKKSCuWgvjx6FqAA4vdpDpkTTr6Gw8ZFhLgAI4gOFzF374InhAcSSV7xSu9Vt0/8X4d/McM8ZQHiN8yxubVS6QOxMbN9cinfm9zu8xrolKqDSFmyyjgkG95haw0CYxC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rER8IZpDfdBILslbI7xFtpxS40v9ygCtwHWHezugZE8HSgAENdrFJTQjp54RNrdHBuTfF1xu6i3e/OGwLzcsmFf+FwVJ3aZZ1dBg+WWlW0KANix72FDglhyVmCjfqo/lq+o708koMj9aLicT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13024025)(13017025)(13023025)(13015025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BN6PR03MB2436; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2436; X-Forefront-PRVS: 008663486A X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR03MB2436; 23:VUsVAWzUKkvBk3HvLddKZ1tNMXuZ7Sw41VsGj?= =?Windows-1252?Q?Ug7M7U/fKS+iNDE0JoKQUiDd5TOR7oBhoZ2FIZ1IR70Ky33Zox2nmipb?= =?Windows-1252?Q?wPFJZa1+JyO08RGXlPDNQnhkpu7Ccl7ZE/ShP6R0FRU4FZ6tfPYYZjZa?= =?Windows-1252?Q?F68EGyOODgdiorlCCkSuySFbJTqeaV4xQawPM9G0HHxRabAySz4NAESX?= =?Windows-1252?Q?E7mLN/ckBkuC2bevprl1CEkMTpIuzl0yfk9UrgBDJn5VknjQ96JW2z5M?= =?Windows-1252?Q?MAIaZDRS0GbaW+equDe5ZObjiKDHE/aKDf+dk9Q+twJ1oOiUhBto6Hnh?= =?Windows-1252?Q?29NVFU/DW8rZ86xS+qZCEonH/W1WkzRNho5mpVYCzN6BLwPZHWnbe29B?= =?Windows-1252?Q?HuvaHrAryxSRNV05ha/c5wze67HaSATUQHjzh8DM8WNIB6vrkzzyfWfp?= =?Windows-1252?Q?F6kpld2hMSTBYzv4w2oj47Xc02uhYaWFaW2vVkpCMX766vuRvMYUhpaR?= =?Windows-1252?Q?KRhrgj2zX9HR8LOdeKtbp53Bmno0vo1crDLGbi9if9SYYYOy/qsRigC1?= =?Windows-1252?Q?SITG/MNySgo6tNAh6TsGVQoXw1UfOyjvWZ/HA2Vd0QzdOJQx5EIzZSve?= =?Windows-1252?Q?f9svDZy39P32KF0gIELeg+EpYK6KfTG0WVWOPsFt0PvwIEM6nSOiChdA?= =?Windows-1252?Q?nGT1lgspTkuywqqqqoKT+1Ir/lDkROtXw5L7oxS0T5Hl6z5v14k9AK9s?= =?Windows-1252?Q?gJznCzV62IdoRFMRS/ip5EXQ2CFMZ9KeBHEM2J3PlIXOzntccWCX9HD7?= =?Windows-1252?Q?lmJEE46PpkkrLchYbqrz6Q5r5tCAVKLf/howuCD44W+WeK3jx3M+Apdc?= =?Windows-1252?Q?mlVFBjDFfsa83qFMd2xBvZvSZ6fPreaNLDbmufWlLkdrJTOdYgMp5FIl?= =?Windows-1252?Q?HGeVHD/gx9d1Zliu5LshenEnLlTkC3oMT5Ol0YJTcnpxWIzBXhzIYHqE?= =?Windows-1252?Q?4xXmJdNgiwMedxEOU/rgIBsIEZe2QIt9Xar1c/OVrKd7/WMT9gAJXUIW?= =?Windows-1252?Q?t4BGhR+uWqPXJ5aieDx3o8E9nYC9cXGPi8iUFXWnskii2h/V+SoWq3vP?= =?Windows-1252?Q?hHw25a18nC6k1py3rQQL0Jgyzekq5VB8ng/qo/0pR3qXA3CnJuIabZT8?= =?Windows-1252?Q?l3EBxiPsUkqLBU+z7N0VudDrJnjswgQYAc1sIB1no2SJZRvWR1AzHvbP?= =?Windows-1252?Q?C+DK8town7kuDu8dqdmcmaD0ypBDJUt2j8YQ79K/iKRZ6RDRHvJWBQSC?= =?Windows-1252?Q?XuW0e8Kc8q9ENRArzpu/J8SQBBYs7lG+aL9TMzjxWYoo2i/6k25P2ycq?= =?Windows-1252?Q?jaugPA9nzV8va67rfwPV+MWAz41wcKkPQSNZvqeYlZaQwFGxOkA+onJ5?= =?Windows-1252?Q?SfXF+HC67w+Bshf7sMa/WjbMKWnJj47dSEDYLMOeD1Y++0T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D/FZhpB0gHRPI3NdPX0jg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2016 06:40:25.2082 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2436 Subject: Re: [dpdk-dev] [PATCH] test_cryptodev_perf: IV and digest should be stored at a DMAeble address X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2016 06:40:27 -0000 On 9/26/2016 10:03 PM, akhil.goyal@nxp.com wrote: > From: Akhil Goyal > > For physical crypto devices, IV and digest are processed by the crypto > device which need the contents to be written on some DMA able address. > > So in order to do that, IV and digest are accomodated in the packet. > > Signed-off-by: Akhil Goyal > --- > app/test/test_cryptodev_perf.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/app/test/test_cryptodev_perf.c b/app/test/test_cryptodev_perf.c > index 0ea7ec1..930d5b8 100644 > --- a/app/test/test_cryptodev_perf.c > +++ b/app/test/test_cryptodev_perf.c > @@ -2366,9 +2366,13 @@ test_perf_set_crypto_op(struct rte_crypto_op *op, struct rte_mbuf *m, > op->sym->auth.aad.length = AES_CBC_CIPHER_IV_LENGTH; > > /* Cipher Parameters */ > - op->sym->cipher.iv.data = aes_cbc_iv; > + op->sym->cipher.iv.data = (uint8_t *)m->buf_addr + m->data_off; > + op->sym->cipher.iv.phys_addr = rte_pktmbuf_mtophys(m); > op->sym->cipher.iv.length = AES_CBC_CIPHER_IV_LENGTH; > > + rte_memcpy(op->sym->cipher.iv.data, aes_cbc_iv, > + AES_CBC_CIPHER_IV_LENGTH); > + > /* Data lengths/offsets Parameters */ > op->sym->auth.data.offset = 0; > op->sym->auth.data.length = data_len; > @@ -2468,7 +2472,9 @@ test_perf_aes_sha(uint8_t dev_id, uint16_t queue_id, > rte_pktmbuf_free(mbufs[k]); > return -1; > } > - > + /* Make room for Digest and IV in mbuf */ > + rte_pktmbuf_append(mbufs[i], digest_length); > + rte_pktmbuf_prepend(mbufs[i], AES_CBC_CIPHER_IV_LENGTH); > } > > > Hi Declan, Sorry I missed out copy your name in the TO list. Do we have some comments on this patch. Regards, Akhil