care of increasing the length of ops to accommodate space for
rte_event_crypto_metadata while creating the crypto ops mempool.
Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
Reported-by: ciara.po...@intel.com
Signed-off-by: Abhinandan Gujjar
---
v2:
- Fix length calcu
while freeing the ops mempool.
Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
Reported-by: ciara.po...@intel.com
Signed-off-by: Abhinandan Gujjar
---
app/test/test_event_crypto_adapter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
This patch adds test cases for testing functionality of
enqueue and dequeue callback mechanism.
Signed-off-by: Abhinandan Gujjar
Acked-by: Konstantin Ananyev
---
app/test/test_cryptodev.c | 244 +-
1 file changed, 242 insertions(+), 2 deletions(-)
diff
This patch adds APIs to add/remove callback functions on crypto
enqueue/dequeue burst. The callback function will be called for
each burst of crypto ops received/sent on a given crypto device
queue pair.
Signed-off-by: Abhinandan Gujjar
Acked-by: Konstantin Ananyev
---
config/rte_config.h
k related members to the end of cryptodev struct
-Added support for RCU
Abhinandan Gujjar (2):
cryptodev: support enqueue and dequeue callback functions
test: add testcase for crypto enqueue and dequeue callback
app/test/test_cryptodev.c | 244 ++-
config/rte_con
This patch adds test case for testing functionality of
enqueue callback mechanism.
Signed-off-by: Abhinandan Gujjar
Acked-by: Konstantin Ananyev
---
app/test/test_cryptodev.c | 135 +-
1 file changed, 133 insertions(+), 2 deletions(-)
diff --git a
This patch adds APIs to add/remove callback functions on crypto
enqueue/dequeue burst. The callback function will be called for
each burst of crypto ops received/sent on a given crypto device
queue pair.
Signed-off-by: Abhinandan Gujjar
Acked-by: Konstantin Ananyev
---
config/rte_config.h
pdated callback test with negative cases
-Updated with required changes for meson
v1->v2:
-Moved callback related members to the end of cryptodev struct
-Added support for RCU
Abhinandan Gujjar (2):
cryptodev: support enqueue & dequeue callback functions
test: add testcase for cr
This patch adds test case for testing functionality of
enqueue callback mechanism.
Signed-off-by: Abhinandan Gujjar
Acked-by: Konstantin Ananyev
---
app/test/test_cryptodev.c | 135 +-
1 file changed, 133 insertions(+), 2 deletions(-)
diff --git a
This patch adds APIs to add/remove callback functions on crypto
enqueue/dequeue burst. The callback function will be called for
each burst of crypto ops received on a given crypto device queue pair.
Signed-off-by: Abhinandan Gujjar
Acked-by: Konstantin Ananyev
---
config/rte_config.h
embers to the end of cryptodev struct
-Added support for RCU
Abhinandan Gujjar (2):
cryptodev: support enqueue & dequeue callback functions
test: add testcase for crypto enqueue callback
app/test/test_cryptodev.c | 135 +++-
config/rte_config.h
Add enqueue callback support for cryptodev library
Signed-off-by: Abhinandan Gujjar
---
doc/guides/prog_guide/cryptodev_lib.rst | 22 ++
doc/guides/rel_notes/release_20_11.rst | 5 +
2 files changed, 27 insertions(+)
diff --git a/doc/guides/prog_guide
Signed-off-by: Abhinandan Gujjar
---
app/test/test_cryptodev.c | 133 +-
1 file changed, 131 insertions(+), 2 deletions(-)
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 1d4c46f..a083612 100644
--- a/app/test/test_cryptodev.c
This patch adds APIs to add/remove callback functions. The callback
function will be called for each burst of crypto ops received on a
given crypto device queue pair.
Signed-off-by: Abhinandan Gujjar
---
config/rte_config.h| 1 +
lib/librte_cryptodev/meson.build
th required changes for meson
v1->v2:
-Moved callback related members to the end of cryptodev struct
-Added support for RCU
Abhinandan Gujjar (3):
cryptodev: support enqueue callback functions
test: add testcase for crypto enqueue callback
doc: add enqueue callback APIs
app/test/te
This patch adds APIs to add/remove callback functions. The callback
function will be called for each burst of crypto ops received on a
given crypto device queue pair.
Signed-off-by: Abhinandan Gujjar
---
config/rte_config.h| 1 +
lib/librte_cryptodev/meson.build
Signed-off-by: Abhinandan Gujjar
---
app/test/test_cryptodev.c | 133 +-
1 file changed, 131 insertions(+), 2 deletions(-)
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 1d4c46f..a083612 100644
--- a/app/test/test_cryptodev.c
-RCU is maintained per queue-pair
-Changed name of few variables
-Updated callback test with negative cases
-Updated with required changes for meson
v1->v2:
-Moved callback related members to the end of cryptodev struct
-Added support for RCU
Abhinandan Gujjar (2):
cryptod
This patch updates the xform with right configuration.
For session based ops, sym session pool is created with
valid userdata size.
Signed-off-by: Abhinandan Gujjar
---
app/test/test_event_crypto_adapter.c | 24 +---
1 file changed, 5 insertions(+), 19 deletions(-)
diff
This patch updates the xform with right configuration.
For session based ops, sym session pool is created with
valid userdata size.
Signed-off-by: Abhinandan Gujjar
---
app/test/test_event_crypto_adapter.c | 24 +---
drivers/crypto/meson.build | 12 ++--
2
The purpose of this testcase is to showcase the cryptodev
enqueue callback usage with RCU support.
Signed-off-by: Abhinandan Gujjar
---
app/test/test_cryptodev.c | 123 +-
1 file changed, 122 insertions(+), 1 deletion(-)
diff --git a/app/test
. The callback
function will be called for each burst of crypto ops received on a
given crypto device queue pair.
v1->v2:
Moved callback related members to the end of cryptodev struct
Added support for RCU
Signed-off-by: Abhinandan Gujjar
---
config/common_base |
rypto adapter. By adding a user callback to
cryptodev at enqueue burst, the user callback will get executed
in the context of event crypto adapter. This helps the application
to increment the ESP sequence number atomically and orderly manner.
Signed-off-by: Abhinandan Gujjar
---
config/common
Fixes: 7901eac3409 ("eventdev: add crypto adapter implementation")
Signed-off-by: Abhinandan Gujjar
---
lib/librte_eventdev/rte_event_crypto_adapter.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/lib/librte_eventdev/rte_event_crypto_adapte
d-by: Pablo de Lara
Signed-off-by: Abhinandan Gujjar
---
test/test/test_event_crypto_adapter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/test/test_event_crypto_adapter.c
b/test/test/test_event_crypto_adapter.c
index 17eae5d..6f0e794 100644
-
Add entries in the programmer's guide, API index, maintainer's file
and release notes for the event crypto adapter.
Signed-off-by: Abhinandan Gujjar
Acked-by: Jerin Jacob
Acked-by: Akhil Goyal
---
MAINTAINERS|1 +
doc/api/doxy-ap
.
This patch also adds adapter to the meson build system &
updates the necessary makefile & map file.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
Acked-by: Akhil Goyal
---
config/common_base |1 +
config/rte_
Added testsuite to test the crypto adapter functionality.
The testsuite detects the HW/SW event & crypto devices and
their capabilities. Depending upon the capability, adapter
is confgured and modes are tested.
Signed-off-by: Abhinandan Gujjar
Acked-by: Akhil Goyal
---
MAINTAI
T_OP_NEW
-RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_QP_EV_BIND
-RTE_EVENT_CRYPTO_ADAPTER_CAP_SESSION_PRIVATE_DATA
-Updated the service init code
-Moved adapter mode to the adapter create API
-Updated the test case for above changes
Abhinandan Gujjar (5):
eventdev: introduce event crypto
This patch defines capabilities & functions to be called
for eventdev PMDs.
Signed-off-by: Abhinandan Gujjar
Acked-by: Jerin Jacob
Acked-by: Akhil Goyal
---
drivers/event/sw/sw_evdev.c | 13 ++
lib/librte_eventdev/rte_eventdev.c | 25
lib/librte_even
This patch introduces event crypto adapter APIs. It
also provides information on working model/adapter
modes & their usage. Application is expected to use
this interface to transfer packets between the crypto
device & the event device.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Ni
Add entries in the programmer's guide, API index, maintainer's file
and release notes for the event crypto adapter.
Signed-off-by: Abhinandan Gujjar
Acked-by: Jerin Jacob
---
MAINTAINERS|1 +
doc/api/doxy-api-index.md
Signed-off-by: Abhinandan Gujjar
Acked-by: Jerin Jacob
---
drivers/event/sw/sw_evdev.c | 13 ++
lib/librte_eventdev/rte_eventdev.c | 25
lib/librte_eventdev/rte_eventdev.h | 53 +++-
lib/librte_eventdev/rte_eventdev_pmd.h | 187
Signed-off-by: Abhinandan Gujjar
---
MAINTAINERS | 1 +
test/test/Makefile| 2 +
test/test/test_event_crypto_adapter.c | 927 ++
3 files changed, 930 insertions(+)
create mode 100644 test/test
Event crypto adapter is added to the meson build system
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
config/common_base |1 +
config/rte_config.h|1 +
lib/Makefile
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
MAINTAINERS| 5 +
lib/librte_eventdev/rte_event_crypto_adapter.h | 575 +
2 files changed, 580 insertions(+)
create mode 100644 lib
ated the service init code
-Moved adapter mode to the adapter create API
-Updated the test case for above changes
Abhinandan Gujjar (5):
eventdev: introduce event crypto adapter
eventdev: add APIs and PMD callbacks for crypto adapter
eventdev: add crypto adapter implementation
test: add even
Event crypto adapter is added to the meson build system
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
config/common_base |1 +
lib/Makefile |3 +-
lib/librte_eventdev/Makefile
Signed-off-by: Abhinandan Gujjar
---
MAINTAINERS | 1 +
test/test/Makefile| 1 +
test/test/test_event_crypto_adapter.c | 913 ++
3 files changed, 915 insertions(+)
create mode 100644 test/test
Add entries in the programmer's guide, API index, maintainer's file
and release notes for the event crypto adapter.
Signed-off-by: Abhinandan Gujjar
---
MAINTAINERS|1 +
doc/api/doxy-api-index.md |1 +
Signed-off-by: Abhinandan Gujjar
---
drivers/event/sw/sw_evdev.c| 13 +++
lib/librte_eventdev/rte_eventdev.c | 25 +
lib/librte_eventdev/rte_eventdev.h | 54 ++
lib/librte_eventdev/rte_eventdev_pmd.h | 187 +
4 files changed, 279
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
MAINTAINERS| 5 +
lib/librte_eventdev/rte_event_crypto_adapter.h | 554 +
2 files changed, 559 insertions(+)
create mode 100644 lib
the adapter create API
-Updated the test case for above changes
Abhinandan Gujjar (5):
eventdev: introduce event crypto adapter
eventdev: add APIs and PMD callbacks for crypto adapter
eventdev: add crypto adapter implementation
test: add event crypto adapter auto-test
doc: add event cr
Add entries in the programmer's guide, API index, maintainer's file
and release notes for the event crypto adapter.
Signed-off-by: Abhinandan Gujjar
---
MAINTAINERS| 7 +
doc/api/doxy-api-index.md | 1 +
doc/guides/
Signed-off-by: Abhinandan Gujjar
---
test/test/Makefile| 1 +
test/test/test_event_crypto_adapter.c | 915 ++
2 files changed, 916 insertions(+)
create mode 100644 test/test/test_event_crypto_adapter.c
diff --git a/test/test/Makefile b/test
Signed-off-by: Abhinandan Gujjar
---
lib/librte_eventdev/meson.build | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/librte_eventdev/meson.build b/lib/librte_eventdev/meson.build
index 232b870..df9be41 100644
--- a/lib/librte_eventdev/meson.build
+++ b/lib
Signed-off-by: Abhinandan Gujjar
---
drivers/event/sw/sw_evdev.c| 13 +++
lib/librte_eventdev/rte_eventdev.c | 25 +
lib/librte_eventdev/rte_eventdev.h | 52 +
lib/librte_eventdev/rte_eventdev_pmd.h | 189 +
4 files changed, 279
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
config/common_base |1 +
lib/Makefile |4 +-
lib/librte_eventdev/Makefile |3 +
lib/librte_eventdev
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
lib/librte_eventdev/rte_event_crypto_adapter.h | 532 +
1 file changed, 532 insertions(+)
create mode 100644 lib/librte_eventdev/rte_event_crypto_adapter.h
diff --git a/lib
-RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_QP_EV_BIND
-RTE_EVENT_CRYPTO_ADAPTER_CAP_SESSION_PRIVATE_DATA
-Updated the service init code
-Moved adapter mode to the adapter create API
-Updated the test case for above changes
Abhinandan Gujjar (6):
eventdev: introduce event crypto adapter
eventdev: add caps API and PMD
Signed-off-by: Abhinandan Gujjar
Acked-by: Akhil Goyal
---
doc/guides/prog_guide/cryptodev_lib.rst | 27 +++
1 file changed, 27 insertions(+)
diff --git a/doc/guides/prog_guide/cryptodev_lib.rst
b/doc/guides/prog_guide/cryptodev_lib.rst
index 066fe2d..b279a20 100644
rte_cryptodev_sym_session_set_private_data() and retrieve it using
rte_cryptodev_sym_session_get_private_data().
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Acked-by: Pablo de Lara
---
lib/librte_cryptodev/rte_cryptodev.c | 43 +++---
lib/librte_cryptodev/rte_cryptodev.h | 32
be
enqueued to eventdev after completion of the crypto
operation. This patch provides a mechanism for the application
to associate this information with the rte_crypto_op in
session-less mode.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Acked-by: Pablo de Lara
---
lib
Add entries in the programmer's guide, API index, maintainer's file
and release notes for the event crypto adapter.
Signed-off-by: Abhinandan Gujjar
---
MAINTAINERS| 7 +
doc/api/doxy-api-index.md | 1 +
doc/guides/
Signed-off-by: Abhinandan Gujjar
---
lib/librte_eventdev/meson.build | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/librte_eventdev/meson.build b/lib/librte_eventdev/meson.build
index e1e22a5..d3d305a 100644
--- a/lib/librte_eventdev/meson.build
+++ b/lib
Signed-off-by: Abhinandan Gujjar
---
test/test/Makefile| 1 +
test/test/test_event_crypto_adapter.c | 866 ++
2 files changed, 867 insertions(+)
create mode 100644 test/test/test_event_crypto_adapter.c
diff --git a/test/test/Makefile b/test
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
config/common_base |1 +
lib/Makefile |3 +-
lib/librte_eventdev/Makefile |3 +
lib/librte_eventdev
Signed-off-by: Abhinandan Gujjar
---
lib/librte_eventdev/rte_eventdev.c | 25 +
lib/librte_eventdev/rte_eventdev.h | 35 +++
lib/librte_eventdev/rte_eventdev_pmd.h | 176 +
3 files changed, 236 insertions(+)
diff --git a/lib/librte_eventdev
Signed-off-by: Abhinandan Gujjar
---
doc/guides/prog_guide/cryptodev_lib.rst | 26 ++
1 file changed, 26 insertions(+)
diff --git a/doc/guides/prog_guide/cryptodev_lib.rst
b/doc/guides/prog_guide/cryptodev_lib.rst
index 066fe2d..57b3f6e 100644
--- a/doc/guides
be
enqueued to eventdev after completion of the crypto
operation. This patch provides a mechanism for the application
to associate this information with the rte_crypto_op in
session-less mode.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_cryptodev/rte_crypto.h | 8
rte_cryptodev_sym_session_set_private_data() and retrieve it using
rte_cryptodev_sym_session_get_private_data().
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_cryptodev/rte_cryptodev.c | 43 +++---
lib/librte_cryptodev/rte_cryptodev.h | 32 +++
lib
rte_cryptodev_sym_session_set_private_data() and retrieve it using
rte_cryptodev_sym_session_get_private_data().
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_cryptodev/rte_cryptodev.h | 32
1 file changed, 32 insertions(+)
diff --git a/lib/librte_cryptodev
rte_security_session_get_private_data()
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_security/rte_security.h | 29 +
1 file changed, 29 insertions(+)
diff --git a/lib/librte_security/rte_security.h
b/lib/librte_security/rte_security.h
index
be
enqueued to eventdev after completion of the crypto
operation. This patch provides a mechanism for the application
to associate this information with the rte_crypto_op in
session-less mode.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
Notes:
V3:
1. Added
rte_security_session_get_private_data()
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_security/rte_security.h | 29 +
1 file changed, 29 insertions(+)
diff --git a/lib/librte_security/rte_security.h
b/lib/librte_security/rte_security.h
index
private data using
rte_cryptodev_sym_session_set_private_data() and retrieve it using
rte_cryptodev_sym_session_get_private_data().
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
Notes:
V2:
1. Removed enum rte_crypto_op_private_data_type
2. Corrected
rte_security_session_get_private_data()
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_security/rte_security.h | 28
1 file changed, 28 insertions(+)
diff --git a/lib/librte_security/rte_security.h
b/lib/librte_security/rte_security.h
index
set the private data using
rte_cryptodev_sym_session_set_private_data() and retrieve it using
rte_cryptodev_sym_session_get_private_data().
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_cryptodev/rte_crypto.h| 19 +--
lib/librte_cryptodev
Add crypto event adapter APIs to support packet transfer
mechanism between cryptodev and event device.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
Notes:
V2:
1. Updated type as ENQ-DEQ in rte_event_crypto_adapter_type
2
Application gets required information to configure crypto
adapter for cryptodev and eventdev using caps API.
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
Notes:
V2:
1. Removed _MULTI_EVENTQ & _MULTI_EVENTQ capabilities
lib/librte_even
The patch frees memory allocated by add rxtx callbacks
Signed-off-by: Abhinandan Gujjar
---
lib/librte_ether/rte_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 318af28..2ab6e05 100644
--- a/lib/librte_ether
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
Signed-off-by: Gage Eads
---
lib/librte_eventdev/Makefile | 1 +
lib/librte_eventdev/rte_event_crypto_adapter.h | 474 +
2 files changed, 475 insertions(+)
create mode 100644 lib
Signed-off-by: Abhinandan Gujjar
Signed-off-by: Nikhil Rao
---
lib/librte_eventdev/rte_eventdev.c | 25 +++
lib/librte_eventdev/rte_eventdev.h | 44 ++
lib/librte_eventdev/rte_eventdev_pmd.h | 32 +
3 files changed
73 matches
Mail list logo