mark asym session-buffer non-reuseable
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(-)
Signature · 1 line
1.8.3.1
RFC 1/1 lib/crypto: mark asym session-buffer non-reuseable
Update asym xform usage in cryptodev documentation.
Xform are immutable, non-reuseable entity till life time of session. This allow some PMD to optimize session setup time.
--- doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
doc/guides/prog_guide/cryptodev_lib.rst +6 -0
@@ -894,6 +894,12 @@ asymmetric crypto chaining is Diffie-Hellman private key generation followed by public generation. Also, currently API does not support chaining of symmetric and asymmetric crypto xforms. +Transform is attached to session during asym session initialization and can't be +modified during session configuration. It remains constant till the end of life +span of a session. It should be used as it is in PMD, PMDs which requires +modification of these immutable data should internally do memcpy of data and +perform required operations. + Each xform defines specific asymmetric crypto algo. Currently supported are: * RSA * Modular operations (Exponentiation and Inverse)
lib/librte_cryptodev/rte_cryptodev_pmd.h +1 -1
@@ -290,7 +290,7 @@ typedef int (*cryptodev_sym_configure_session_t)(struct rte_cryptodev *dev,* - Returns -ENOMEM if the private session could not be allocated. */ typedef int (*cryptodev_asym_configure_session_t )(struct rte_cryptodev *dev, -struct rte_crypto_asym_xform *xform, +const struct rte_crypto_asym_xform *xform,struct rte_cryptodev_asym_session *session,struct rte_mempool *mp);/**
Signature · 1 line
1.8.3.1
Re: [dpdk-dev] [RFC] lib/crypto: mark asym session-buffer non-reuseable
Hi Ayuj,
Quoted 31 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 1:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] lib/crypto: mark asym session-buffer non-reuseableUpdate asym xform usage in cryptodev documentation.
Xform are immutable, non-reuseable entity till life time of session. This allow some PMD to optimize session setup time.
Signed-off-by Ayuj Verma <[email protected]>Signed-off-by Shally Verma <[email protected]>--- doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)doc/guides/prog_guide/cryptodev_lib.rst +0
-0@@ -894,6 +894,12 @@ asymmetric crypto chaining is Diffie-Hellman private key generation followedby
public generation. Also, currently API does not support chaining of symmetric and asymmetric crypto xforms.
doc/guides/prog_guide/cryptodev_lib.rst asymmetric crypto chaining is Diffie-Hellman private key generation followed by · line 898
Quoted 2 lines
doc/guides/prog_guide/cryptodev_lib.rst +2
-0+Transform is attached to session during asym session initialization and can't be +modified during session configuration. It remains constant till the end of life
[Fiona] I agree with the intent of the RFC. And suggest being more explicit and saying "It and all the data buffers it points to should remain constant..."
doc/guides/prog_guide/cryptodev_lib.rst asymmetric crypto chaining is Diffie-Hellman private key generation followed by · line 901
Quoted 3 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+span of a session. It should be used as it is in PMD, PMDs which requires +modification of these immutable data should internally do memcpy of data and +perform required operations.
[Fiona] for security I suggest adding here "It's the PMDs responsibility to ensure that any private data copied to local PMD storage is not stored by the PMD for longer than the session lifetime.
Quoted 18 lines
Each xform defines specific asymmetric crypto algo. Currently supported are:
* RSA
* Modular operations (Exponentiation and Inverse)lib/librte_cryptodev/rte_cryptodev_pmd.h +1
-2@@ -290,7 +290,7 @@ typedef int (*cryptodev_sym_configure_session_t)(struct rte_cryptodev *dev,* - Returns -ENOMEM if the private session could not be allocated. */ typedef int (*cryptodev_asym_configure_session_t )(struct rte_cryptodev *dev, -struct rte_crypto_asym_xform *xform, +const struct rte_crypto_asym_xform *xform,struct rte_cryptodev_asym_session *session,struct rte_mempool *mp);/** -- 1.8.3.1
Re: [dpdk-dev] [RFC] lib/crypto: mark asym session-buffer non-reuseable
Quoted 45 lines
-----Original Message-----
From: Trahe, Fiona
Sent: Wednesday, July 17, 2019 4:04 PM
To: Ayuj Verma <[email protected]>; [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Trahe, Fiona <[email protected]>
Subject: RE: [RFC] lib/crypto: mark asym session-buffer non-reuseableHi Ayuj,
Quoted 32 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 1:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] lib/crypto: mark asym session-buffer non-reuseableUpdate asym xform usage in cryptodev documentation.
Xform are immutable, non-reuseable entity till life time of session. This allow some PMD to optimize session setup time.
Signed-off-by Ayuj Verma <[email protected]>Signed-off-by Shally Verma <[email protected]>--- doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)doc/guides/prog_guide/cryptodev_lib.rst +0
-0@@ -894,6 +894,12 @@ asymmetric crypto chaining is Diffie-Hellmanprivate key generation followed by public generation. Also, currently API does not support chaining of symmetric and asymmetric crypto xforms.
Quoted 5 lines
doc/guides/prog_guide/cryptodev_lib.rst
Quoted 3 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+Transform is attached to session during asym session initialization +and can't be modified during session configuration. It remains +constant till the end of life[Fiona] I agree with the intent of the RFC. And suggest being more explicit and saying "It and all the data buffers it points to should remain constant..."
[AK] I agree with RFC and Fiona :).
Quoted 30 lines
doc/guides/prog_guide/cryptodev_lib.rst
Quoted 4 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+span of a session. It should be used as it is in PMD, PMDs which +requires modification of these immutable data should internally do +memcpy of data and perform required operations.[Fiona] for security I suggest adding here "It's the PMDs responsibility to ensure that any private data copied to local PMD storage is not stored by the PMD for longer than the session lifetime.
Quoted 1 line
Each xform defines specific asymmetric crypto algo. Currently supported
are:
lib/librte_cryptodev/rte_cryptodev_pmd.h typedef int
Quoted 8 lines
* RSA
* Modular operations (Exponentiation and Inverse) diff --gita/lib/librte_cryptodev/rte_cryptodev_pmd.hb/lib/librte_cryptodev/rte_cryptodev_pmd.h
index defe05e..1f083ea 100644lib/librte_cryptodev/rte_cryptodev_pmd.h +0
-0@@ -290,7 +290,7 @@ typedef int(*cryptodev_sym_configure_session_t)(struct
rte_cryptodev*dev,lib/librte_cryptodev/rte_cryptodev_pmd.h typedef int (*cryptodev_sym_configure_session_t)(struct rte_cryptodev *dev,
Quoted 3 lines
lib/librte_cryptodev/rte_cryptodev_pmd.h +0
-0* - Returns -ENOMEM if the private session could not be allocated. */ typedef int (*cryptodev_asym_configure_session_t)(struct rte_cryptodev*dev,
Quoted 7 lines
lib/librte_cryptodev/rte_cryptodev_pmd.h +1
-2-struct rte_crypto_asym_xform *xform, +const struct rte_crypto_asym_xform *xform, struct rte_cryptodev_asym_session *session, struct rte_mempool *mp);/** -- 1.8.3.1
Re: [dpdk-dev] [RFC] lib/crypto: mark asym session-buffer non-reuseable
Hi Arek, Fiona
Please see in-line.
Thanks and regards
Ayuj Verma
________________________________
From: Kusztal, ArkadiuszX <[email protected]>
Sent: 17 July 2019 19:40
To: Trahe, Fiona; Ayuj Verma; [email protected]
Cc: Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]
Subject: RE: [RFC] lib/crypto: mark asym session-buffer non-reuseable
Quoted 43 lines
-----Original Message-----
From: Trahe, Fiona
Sent: Wednesday, July 17, 2019 4:04 PM
To: Ayuj Verma <[email protected]>; [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Trahe, Fiona <[email protected]>
Subject: RE: [RFC] lib/crypto: mark asym session-buffer non-reuseableHi Ayuj,
Quoted 32 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 1:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] lib/crypto: mark asym session-buffer non-reuseableUpdate asym xform usage in cryptodev documentation.
Xform are immutable, non-reuseable entity till life time of session. This allow some PMD to optimize session setup time.
Signed-off-by Ayuj Verma <[email protected]>Signed-off-by Shally Verma <[email protected]>--- doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)doc/guides/prog_guide/cryptodev_lib.rst +0
-0@@ -894,6 +894,12 @@ asymmetric crypto chaining is Diffie-Hellmanprivate key generation followed by public generation. Also, currently API does not support chaining of symmetric and asymmetric crypto xforms.
Quoted 5 lines
doc/guides/prog_guide/cryptodev_lib.rst
Quoted 3 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+Transform is attached to session during asym session initialization +and can't be modified during session configuration. It remains +constant till the end of life[Fiona] I agree with the intent of the RFC. And suggest being more explicit and saying "It and all the data buffers it points to should remain constant..."
[AK] I agree with RFC and Fiona :).
[Ayuj] ACK. will submit a v2.
Quoted 30 lines
doc/guides/prog_guide/cryptodev_lib.rst
Quoted 4 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+span of a session. It should be used as it is in PMD, PMDs which +requires modification of these immutable data should internally do +memcpy of data and perform required operations.[Fiona] for security I suggest adding here "It's the PMDs responsibility to ensure that any private data copied to local PMD storage is not stored by the PMD for longer than the session lifetime.
Quoted 1 line
Each xform defines specific asymmetric crypto algo. Currently supported
are:
lib/librte_cryptodev/rte_cryptodev_pmd.h typedef int
Quoted 8 lines
* RSA
* Modular operations (Exponentiation and Inverse) diff --gita/lib/librte_cryptodev/rte_cryptodev_pmd.hb/lib/librte_cryptodev/rte_cryptodev_pmd.h
index defe05e..1f083ea 100644lib/librte_cryptodev/rte_cryptodev_pmd.h +0
-0@@ -290,7 +290,7 @@ typedef int(*cryptodev_sym_configure_session_t)(struct
rte_cryptodev*dev,lib/librte_cryptodev/rte_cryptodev_pmd.h typedef int (*cryptodev_sym_configure_session_t)(struct rte_cryptodev *dev,
Quoted 3 lines
lib/librte_cryptodev/rte_cryptodev_pmd.h +0
-0* - Returns -ENOMEM if the private session could not be allocated. */ typedef int (*cryptodev_asym_configure_session_t)(struct rte_cryptodev*dev,
Quoted 7 lines
lib/librte_cryptodev/rte_cryptodev_pmd.h +1
-2-struct rte_crypto_asym_xform *xform, +const struct rte_crypto_asym_xform *xform, struct rte_cryptodev_asym_session *session, struct rte_mempool *mp);/** -- 1.8.3.1
Re: [dpdk-dev] [RFC] lib/crypto: mark asym session-buffer non-reuseable
Hi Arek, Fiona,
Quoted 2 lines
[Fiona] I agree with the intent of the RFC. And suggest being more explicit and saying "It and all the data buffers it points to should remain constant..."
[AK] I agree with RFC and Fiona :).
[Ayuj] ACK. will submit a v2.
Quoted 1 line
Quoted 1 line
Correction: Will incorporate this in Patch v1.
Thanks and regards
Ayuj Verma
________________________________
From: Ayuj Verma
Sent: 18 July 2019 15:26
To: Kusztal, ArkadiuszX; Trahe, Fiona; [email protected]
Cc: Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]
Subject: Re: [RFC] lib/crypto: mark asym session-buffer non-reuseable
Hi Arek, Fiona
Please see in-line.
Thanks and regards
Ayuj Verma
________________________________
From: Kusztal, ArkadiuszX <[email protected]>
Sent: 17 July 2019 19:40
To: Trahe, Fiona; Ayuj Verma; [email protected]
Cc: Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]
Subject: RE: [RFC] lib/crypto: mark asym session-buffer non-reuseable
Quoted 43 lines
-----Original Message-----
From: Trahe, Fiona
Sent: Wednesday, July 17, 2019 4:04 PM
To: Ayuj Verma <[email protected]>; [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Trahe, Fiona <[email protected]>
Subject: RE: [RFC] lib/crypto: mark asym session-buffer non-reuseableHi Ayuj,
Quoted 32 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 1:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] lib/crypto: mark asym session-buffer non-reuseableUpdate asym xform usage in cryptodev documentation.
Xform are immutable, non-reuseable entity till life time of session. This allow some PMD to optimize session setup time.
Signed-off-by Ayuj Verma <[email protected]>Signed-off-by Shally Verma <[email protected]>--- doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)doc/guides/prog_guide/cryptodev_lib.rst +0
-0@@ -894,6 +894,12 @@ asymmetric crypto chaining is Diffie-Hellmanprivate key generation followed by public generation. Also, currently API does not support chaining of symmetric and asymmetric crypto xforms.
Quoted 5 lines
doc/guides/prog_guide/cryptodev_lib.rst
Quoted 3 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+Transform is attached to session during asym session initialization +and can't be modified during session configuration. It remains +constant till the end of life[Fiona] I agree with the intent of the RFC. And suggest being more explicit and saying "It and all the data buffers it points to should remain constant..."
[AK] I agree with RFC and Fiona :).
[Ayuj] ACK. will submit a v2.
Quoted 30 lines
doc/guides/prog_guide/cryptodev_lib.rst
Quoted 4 lines
doc/guides/prog_guide/cryptodev_lib.rst +3
-0+span of a session. It should be used as it is in PMD, PMDs which +requires modification of these immutable data should internally do +memcpy of data and perform required operations.[Fiona] for security I suggest adding here "It's the PMDs responsibility to ensure that any private data copied to local PMD storage is not stored by the PMD for longer than the session lifetime.
Quoted 1 line
Each xform defines specific asymmetric crypto algo. Currently supported
are:
lib/librte_cryptodev/rte_cryptodev_pmd.h typedef int
Quoted 8 lines
* RSA
* Modular operations (Exponentiation and Inverse) diff --gita/lib/librte_cryptodev/rte_cryptodev_pmd.hb/lib/librte_cryptodev/rte_cryptodev_pmd.h
index defe05e..1f083ea 100644lib/librte_cryptodev/rte_cryptodev_pmd.h +0
-0@@ -290,7 +290,7 @@ typedef int(*cryptodev_sym_configure_session_t)(struct
rte_cryptodev*dev,lib/librte_cryptodev/rte_cryptodev_pmd.h typedef int (*cryptodev_sym_configure_session_t)(struct rte_cryptodev *dev,
Quoted 3 lines
lib/librte_cryptodev/rte_cryptodev_pmd.h +0
-0* - Returns -ENOMEM if the private session could not be allocated. */ typedef int (*cryptodev_asym_configure_session_t)(struct rte_cryptodev*dev,
Quoted 7 lines
lib/librte_cryptodev/rte_cryptodev_pmd.h +1
-2-struct rte_crypto_asym_xform *xform, +const struct rte_crypto_asym_xform *xform, struct rte_cryptodev_asym_session *session, struct rte_mempool *mp);/** -- 1.8.3.1
Hi Ayuj,
Quoted 10 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 2:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] mark asym session-buffer non-reuseable
Quoted 6 lines
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,
[AK] - what is you expected session lifetime? (2,3,50 packets?)
Quoted 16 lines
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-reuseabledoc/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
Hi Arek,
Please see inline.
Thanks and regards
Ayuj Verma
________________________________
From: Kusztal, ArkadiuszX <[email protected]>
Sent: 17 July 2019 19:40
To: Ayuj Verma; [email protected]
Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]
Subject: RE: [RFC] mark asym session-buffer non-reuseable
Hi Ayuj,
Quoted 10 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 2:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] mark asym session-buffer non-reuseable
Quoted 6 lines
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,
[AK] - what is you expected session lifetime? (2,3,50 packets?)
[Ayuj] In practical scenario like SSL, handshake will happen in some 10-15 packets.
Quoted 16 lines
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-reuseabledoc/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
Hi Akhil, Arek, Fiona,
Since this require changes in other Asym PMD( qat) apart from openssl (we plan to send changes for this),
so should we need to send any announcement on ABI breakage here before proposing patch v1?
Thanks and regards
Ayuj Verma
________________________________
From: Ayuj Verma
Sent: 18 July 2019 15:17:54
To: Kusztal, ArkadiuszX; [email protected]
Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]
Subject: Re: [RFC] mark asym session-buffer non-reuseable
Hi Arek,
Please see inline.
Thanks and regards
Ayuj Verma
________________________________
From: Kusztal, ArkadiuszX <[email protected]>
Sent: 17 July 2019 19:40
To: Ayuj Verma; [email protected]
Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]
Subject: RE: [RFC] mark asym session-buffer non-reuseable
Hi Ayuj,
Quoted 10 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 2:34 PM
To: [email protected]
Cc: Kusztal, ArkadiuszX <[email protected]>; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Ayuj Verma <[email protected]>
Subject: [RFC] mark asym session-buffer non-reuseable
Quoted 6 lines
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,
[AK] - what is you expected session lifetime? (2,3,50 packets?)
[Ayuj] In practical scenario like SSL, handshake will happen in some 10-15 packets.
Quoted 16 lines
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-reuseabledoc/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
No need as API is still experimental.
Howver I'd suggest changing the subject to
"declare crypto asym xform immutable"
non-reusable is confusing as the session and xform will be re-used on all the ops associated with the session.
From: Ayuj Verma [mailto:[email protected]]
Sent: Friday, July 19, 2019 3:51 PM
To: Kusztal, ArkadiuszX <[email protected]>; [email protected]
Cc: Trahe, Fiona <[email protected]>; Shally Verma <[email protected]>; Sunila Sahu <[email protected]>; Kanaka Durga Kotamarthy <[email protected]>; [email protected]
Subject: Re: [RFC] mark asym session-buffer non-reuseable
Hi Akhil, Arek, Fiona,
Since this require changes in other Asym PMD( qat) apart from openssl (we plan to send changes for this),
so should we need to send any announcement on ABI breakage here before proposing patch v1?
Thanks and regards
Ayuj Verma
________________________________
From: Ayuj Verma
Sent: 18 July 2019 15:17:54
To: Kusztal, ArkadiuszX; [email protected]<mailto:[email protected]>
Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]<mailto:[email protected]>
Subject: Re: [RFC] mark asym session-buffer non-reuseable
Hi Arek,
Please see inline.
Thanks and regards
Ayuj Verma
________________________________
From: Kusztal, ArkadiuszX <[email protected]<mailto:[email protected]>>
Sent: 17 July 2019 19:40
To: Ayuj Verma; [email protected]<mailto:[email protected]>
Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; [email protected]<mailto:[email protected]>
Subject: RE: [RFC] mark asym session-buffer non-reuseable
Hi Ayuj,
Quoted 10 lines
-----Original Message-----
From: Ayuj Verma [mailto:[email protected]]
Sent: Wednesday, July 17, 2019 2:34 PM
To: [email protected]<mailto:[email protected]>
Cc: Kusztal, ArkadiuszX <[email protected]<mailto:[email protected]>>; Trahe, Fiona <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; Ayuj Verma <[email protected]<mailto:[email protected]>>
Subject: [RFC] mark asym session-buffer non-reuseable
Quoted 6 lines
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,
[AK] - what is you expected session lifetime? (2,3,50 packets?)
[Ayuj] In practical scenario like SSL, handshake will happen in some 10-15 packets.
Quoted 16 lines
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-reuseabledoc/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