Skip to contentSkip to conversation

doc: add deprecation notice for security session create API

PATCH Applied Akhil Goyal 5 participants 5 messages Jul 30, 2020 – Aug 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: add deprecation notice for security session create API

The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the number of sessions needed and will also lead to wastage of memory as session private data need more memory compared to session. Hence the API will be modified to take two mempool pointers - one for session and one for private data. This is very similar to crypto based session create APIs.

---
 doc/guides/rel_notes/deprecation.rst | 7 +++++++
 1 file changed, 7 insertions(+)
doc/guides/rel_notes/deprecation.rst +7 -0
index ea4cfa7a4..9ed7b55e6 100644
@@ -126,6 +126,13 @@ Deprecation Notices
   to one it means it represents IV, when is set to zero it means J0 is used
   directly, in this case 16 bytes of J0 need to be passed.
 
+* security: The API ``rte_security_session_create`` takes only single mempool
+  for session and session private data. So the application need to create
+  mempool for twice the number of sessions needed and will also lead to
+  wastage of memory as session private data need more memory compared to session.
+  Hence the API will be modified to take two mempool pointers - one for session
+  and one for private data.
+
 * sched: To allow more traffic classes, flexible mapping of pipe queues to
   traffic classes, and subport level configuration of pipes and queues
   changes will be made to macros, data structures and API functions defined
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#2 lore raw
In reply to Akhil Goyal
Quoted 8 lines

The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the number of sessions needed and will also lead to wastage of memory as session private data need more memory compared to session.
Hence the API will be modified to take two mempool pointers - one for session and one for private data. This is very similar to crypto based session create APIs.

Quoted 4 lines
---
 doc/guides/rel_notes/deprecation.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Acked-by on v1 1/1
#3 lore raw
In reply to Akhil Goyal
Quoted 33 lines

-----Original Message-----
From: Akhil Goyal <[email protected]>
Sent: Thursday, July 30, 2020 8:14 PM
To: [email protected]; [email protected]; Nicolau, Radu <[email protected]>; Ananyev, Konstantin <[email protected]>; Doherty, Declan <[email protected]>; Zhang, Roy Fan <[email protected]>
Cc: [email protected]; Trahe, Fiona <[email protected]>; [email protected]; [email protected]; Akhil Goyal <[email protected]>
Subject: [PATCH] doc: add deprecation notice for security session create API

The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the number of sessions needed and will also lead to wastage of memory as session private data need more memory compared to session. Hence the API will be modified to take two mempool pointers - one for session and one for private data. This is very similar to crypto based session create APIs.

---
 doc/guides/rel_notes/deprecation.rst | 7 +++++++
 1 file changed, 7 insertions(+)
doc/guides/rel_notes/deprecation.rst +1 -0
index ea4cfa7a4..9ed7b55e6 100644
@@ -126,6 +126,13 @@ Deprecation Notices
   to one it means it represents IV, when is set to zero it means J0 is used
   directly, in this case 16 bytes of J0 need to be passed.
 
+* security: The API ``rte_security_session_create`` takes only single mempool

doc/guides/rel_notes/deprecation.rst Deprecation Notices

Quoted 10 lines
doc/guides/rel_notes/deprecation.rst +6 -1
+  for session and session private data. So the application need to create
+  mempool for twice the number of sessions needed and will also lead to
+  wastage of memory as session private data need more memory compared to session.
+  Hence the API will be modified to take two mempool pointers - one for session
+  and one for private data.
+
 * sched: To allow more traffic classes, flexible mapping of pipe queues to
   traffic classes, and subport level configuration of pipes and queues
   changes will be made to macros, data structures and API functions defined
--
Quoted 1 line

2.17.1

#4 lore raw
Quoted 8 lines
Quoted 8 lines

The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the number of sessions needed and will also lead to wastage of memory as session private data need more memory compared to session. Hence the API will be modified to take two mempool pointers - one for session and one for private data. This is very similar to crypto based session create APIs.

Quoted 12 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 135

Quoted 9 lines

---

doc/guides/rel_notes/deprecation.rst +7 -0
+* security: The API ``rte_security_session_create`` takes only single mempool
+  for session and session private data. So the application need to create
+  mempool for twice the number of sessions needed and will also lead to
+  wastage of memory as session private data need more memory compared to session.
+  Hence the API will be modified to take two mempool pointers - one for session
+  and one for private data.
+

Applied