From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB43EA0471 for ; Wed, 17 Jul 2019 14:34:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D7EA58C6; Wed, 17 Jul 2019 14:34:21 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 90D014D27 for ; Wed, 17 Jul 2019 14:34:19 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6HCUKjH020388; Wed, 17 Jul 2019 05:34:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=pfpt0818; bh=RmQah5WkXTtUp6ct5DtWUQ/WbL8I6odJswMYJtEnfps=; b=hWDQZEW/KG/1goJ3rpPoW9DUj0cp4RKY7thQkHB9yGxHWslEPkEtCtOKyKk5psoqcTri YD2WZwFA41LVfox/8Zz6ogJy8tcs1AuoZsi/jvxmFeZsxDJ6pK7GDTYDZw92BwpnRJ0I EVMhA8Reb3G3PAckmZMdepKAy7SXZrqJ9KmuIxsb318r9qzllGJcHXN09VnXFQR9Jr2n UGOvNB0SyE8R9MJIZhfwhchVv3CD7k6VlIFVNDydJQwSk+TsqgZ8iyZ9jXe7Gtz9AjDR 5sQ98fCjsTXRNDlhewsm2ps/CbBIHxrYTntRis0tSI4yV7n+UqT195KifaMc6rngyfiZ fA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2ts07vg5br-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 05:34:18 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 17 Jul 2019 05:34:17 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 17 Jul 2019 05:34:17 -0700 Received: from localhost.marvell.com (unknown [10.28.10.76]) by maili.marvell.com (Postfix) with ESMTP id 397E63F703F; Wed, 17 Jul 2019 05:34:14 -0700 (PDT) From: Ayuj Verma To: CC: , , , , , , Ayuj Verma Date: Wed, 17 Jul 2019 18:04:11 +0530 Message-ID: <1563366852-23118-1-git-send-email-ayverma@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-17_05:2019-07-17,2019-07-17 signatures=0 Subject: [dpdk-dev] [RFC] mark asym session-buffer non-reuseable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This RFC proposes changes in asymmetric session usability of transform structure. In current implementation asym xform is seen as temporary entity that can be re-used by application once sessions are initialized with it. This enforces PMD to copy all key buffers during session setup time. Since life-time of sessions are small, so we can hold these buffers with session, reducing memcpy time by marking these as read-only so that PMDs which doesn’t require any manipulation of xform data can directly use these buffers in session configure. So, sending a proposal to mark xform as non-reusable till lifetime of session. This will help PMDs to reduce session setup time. Ayuj Verma (1): lib/crypto: mark asym session-buffer non-reuseable doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) -- 1.8.3.1