From: Suanming Mou
This commit adds mlx5 crypto statistic get and reset operations.
Signed-off-by: Suanming Mou
Signed-off-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 40 ---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/
In order to test the new mlx5 crypto PMD, the driver is added to the
crypto test application.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 2 ++
doc/guides/cryptodevs/mlx5.rst | 3 +++
3 files changed, 12
From: Suanming Mou
The crypto operations are done with the WQE set which contains
one UMR WQE and one rdma write WQE. Most segments of the WQE
set are initialized properly during queue setup, only limited
segments are initialized according to the crypto detail in the
datapath process.
This commi
The AES-XTS algorithm supports using a wrapped key.
In AES-XTS the data-unit defines the data block size to be
encrypted\decrypted.
Add AES-XTS vectors with a wrapped key.
Add a variable stating whether the key is wrapped or not.
Add the AES-XTS data-unit.
Signed-off-by: Shiri Kuzin
Acked-by
The AES-XTS algorithm can supports wrapped key and data-unit.
The encryption/decryption can be done out of place and using multi
segments.
Add multi segment and out of place tests to the recently added AES-XTS
vectors, which support using data-unit and a wrapped key.
Signed-off-by: Shiri Kuzin
From: Suanming Mou
A keytag is a piece of data encrypted together with a DEK.
When a DEK is referenced by an MKEY.bsf through its index, the keytag is
also supplied in the BSF as plaintext. The HW will decrypt the DEK (and
the attached keytag) and will fail the operation if the keytags don't
mat
From: Suanming Mou
Currently, HW handles the WQEs much faster than the software,
Using the constant WQE set layout can initialize most of the WQE
segments in advanced, and software only needs to configure very
limited segments in datapath. This accelerates the software WQE
organize in datapath.
From: Suanming Mou
The mlx5 HW crypto operations are done by attaching crypto property
to a memory region. Once done, every access to the memory via the
crypto-enabled memory region will result with in-line encryption or
decryption of the data.
As a result, the design choice is to provide two ty
-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/mlx5.rst| 60 +
drivers/crypto/mlx5/mlx5_crypto.c | 103 ++
drivers/crypto/mlx5/mlx5_crypto.h | 7 ++
3 files changed, 170 insertions(+)
diff --git a/doc/guides/cryptodevs/mlx5
implementation for the release QP function to release all the QP
resources.
Added the ops structure that contains any operation which is supported
by the cryptodev.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 129
Add the dev_start function that is used to start a configured device.
Add the dev_stop function that is used to stop a configured device.
Both functions set the dev parameter as used and return 0.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 17
g a system call.
Add memory region cache management:
- 2 level cache per queue-pair - no locks.
- 1 shared cache between all the queues using a lock.
Using this way, the MR key search per data-path address is optimized.
Signed-off-by: Shiri Kuzin
Signed-off-by: Michael Baum
Acked
struct to user private data with the fields socket id,
number of queue pairs and feature flags to be disabled.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 26 +++---
drivers/crypto/mlx5/mlx5_crypto.h | 1 +
2 files changed, 20
by error.
Shiri Kuzin (11):
drivers: introduce mlx5 crypto PMD
crypto/mlx5: add DEK object management
crypto/mlx5: add session operations
crypto/mlx5: add basic operations
crypto/mlx5: add queue pairs operations
crypto/mlx5: add dev stop and start operations
crypto/mlx5: add memor
adds the PCI probing, basic functions, build files and
log utility.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
MAINTAINERS | 4 +
doc/guides/cryptodevs/features/mlx5.ini | 27 +++
doc/guides/cryptodevs/index.rst | 1 +
doc/guides/cryptodevs/mlx5
: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/features/mlx5.ini | 5 +
doc/guides/cryptodevs/mlx5.rst | 10 ++
drivers/crypto/mlx5/mlx5_crypto.c | 172 +++-
3 files changed, 182 insertions(+), 5 deletions(-)
diff --git a/doc/guides/cryptodevs
routine.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/meson.build | 1 +
drivers/crypto/mlx5/mlx5_crypto.c | 42 ---
drivers/crypto/mlx5/mlx5_crypto.h | 51
drivers/crypto/mlx5/mlx5_crypto_dek.c | 161 ++
4 files
In order to test the new mlx5 crypto PMD, the driver is added to the
crypto test application.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 2 ++
doc/guides/cryptodevs/mlx5.rst | 3 +++
3 files changed, 12
The AES-XTS algorithm supports using a wrapped key.
In AES-XTS the data-unit defines the data block size to be
encrypted\decrypted.
Add AES-XTS vectors with a wrapped key.
Add a variable stating whether the key is wrapped or not.
Add the AES-XTS data-unit.
Signed-off-by: Shiri Kuzin
Acked-by
From: Suanming Mou
Currently, HW handles the WQEs much faster than the software,
Using the constant WQE set layout can initialize most of the WQE
segments in advanced, and software only needs to configure very
limited segments in datapath. This accelerates the software WQE
organize in datapath.
From: Suanming Mou
This commit adds mlx5 crypto statistic get and reset operations.
Signed-off-by: Suanming Mou
Signed-off-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 40 ---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/
The AES-XTS algorithm can supports wrapped key and data-unit.
The encryption/decryption can be done out of place and using multi
segments.
Add multi segment and out of place tests to the recently added AES-XTS
vectors, which support using data-unit and a wrapped key.
Signed-off-by: Shiri Kuzin
-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/mlx5.rst| 60 +
drivers/crypto/mlx5/mlx5_crypto.c | 103 ++
drivers/crypto/mlx5/mlx5_crypto.h | 7 ++
3 files changed, 170 insertions(+)
diff --git a/doc/guides/cryptodevs/mlx5
From: Suanming Mou
The crypto operations are done with the WQE set which contains
one UMR WQE and one rdma write WQE. Most segments of the WQE
set are initialized properly during queue setup, only limited
segments are initialized according to the crypto detail in the
datapath process.
This commi
From: Suanming Mou
The mlx5 HW crypto operations are done by attaching crypto property
to a memory region. Once done, every access to the memory via the
crypto-enabled memory region will result with in-line encryption or
decryption of the data.
As a result, the design choice is to provide two ty
From: Suanming Mou
A keytag is a piece of data encrypted together with a DEK.
When a DEK is referenced by an MKEY.bsf through its index, the keytag is
also supplied in the BSF as plaintext. The HW will decrypt the DEK (and
the attached keytag) and will fail the operation if the keytags don't
mat
Add the dev_start function that is used to start a configured device.
Add the dev_stop function that is used to stop a configured device.
Both functions set the dev parameter as used and return 0.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 17
g a system call.
Add memory region cache management:
- 2 level cache per queue-pair - no locks.
- 1 shared cache between all the queues using a lock.
Using this way, the MR key search per data-path address is optimized.
Signed-off-by: Shiri Kuzin
Signed-off-by: Michael Baum
Acked
struct to user private data with the fields socket id,
number of queue pairs and feature flags to be disabled.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 26 +++---
drivers/crypto/mlx5/mlx5_crypto.h | 1 +
2 files changed, 20
: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/features/mlx5.ini | 5 +
doc/guides/cryptodevs/mlx5.rst | 10 ++
drivers/crypto/mlx5/mlx5_crypto.c | 172 +++-
3 files changed, 182 insertions(+), 5 deletions(-)
diff --git a/doc/guides/cryptodevs
adds the PCI probing, basic functions, build files and
log utility.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
MAINTAINERS | 4 +
doc/guides/cryptodevs/features/mlx5.ini | 27 +++
doc/guides/cryptodevs/index.rst | 1 +
doc/guides/cryptodevs/mlx5
implementation for the release QP function to release all the QP
resources.
Added the ops structure that contains any operation which is supported
by the cryptodev.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 129
routine.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/meson.build | 1 +
drivers/crypto/mlx5/mlx5_crypto.c | 42 ---
drivers/crypto/mlx5/mlx5_crypto.h | 51
drivers/crypto/mlx5/mlx5_crypto_dek.c | 161 ++
4 files
nse.
v6:
- Rebase to new version.
- Address David's comment and update log accordingly.
- Update testing app commits as suggested by Akhil.
v7:
- Rebase to new version.
- Add scatter gather and OOP test cases.
Shiri Kuzin (11):
drivers: introduce mlx5 crypto PMD
crypto/mlx5: add DE
The AES-XTS algorithm supports using a wrapped key.
In AES-XTS the data-unit defines the data block size to be
encrypted\decrypted.
Add AES-XTS vectors with a wrapped key.
Add a variable stating whether the key is wrapped or not.
Add the AES-XTS data-unit.
Signed-off-by: Shiri Kuzin
---
app
In order to test the new mlx5 crypto PMD, the driver is added to the
crypto test application.
Signed-off-by: Shiri Kuzin
---
app/test/test_cryptodev.c | 7 +++
app/test/test_cryptodev.h | 1 +
doc/guides/cryptodevs/mlx5.rst | 3 +++
3 files changed, 11 insertions(+)
diff --git a
From: Suanming Mou
This commit adds mlx5 crypto statistic get and reset operations.
Signed-off-by: Suanming Mou
Signed-off-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 40 ---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/
From: Suanming Mou
The crypto operations are done with the WQE set which contains
one UMR WQE and one rdma write WQE. Most segments of the WQE
set are initialized properly during queue setup, only limited
segments are initialized according to the crypto detail in the
datapath process.
This commi
From: Suanming Mou
Currently, HW handles the WQEs much faster than the software,
Using the constant WQE set layout can initialize most of the WQE
segments in advanced, and software only needs to configure very
limited segments in datapath. This accelerates the software WQE
organize in datapath.
From: Suanming Mou
The mlx5 HW crypto operations are done by attaching crypto property
to a memory region. Once done, every access to the memory via the
crypto-enabled memory region will result with in-line encryption or
decryption of the data.
As a result, the design choice is to provide two ty
From: Suanming Mou
A keytag is a piece of data encrypted together with a DEK.
When a DEK is referenced by an MKEY.bsf through its index, the keytag is
also supplied in the BSF as plaintext. The HW will decrypt the DEK (and
the attached keytag) and will fail the operation if the keytags don't
mat
-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/mlx5.rst| 60 +
drivers/crypto/mlx5/mlx5_crypto.c | 103 ++
drivers/crypto/mlx5/mlx5_crypto.h | 7 ++
3 files changed, 170 insertions(+)
diff --git a/doc/guides/cryptodevs/mlx5
g a system call.
Add memory region cache management:
- 2 level cache per queue-pair - no locks.
- 1 shared cache between all the queues using a lock.
Using this way, the MR key search per data-path address is optimized.
Signed-off-by: Shiri Kuzin
Signed-off-by: Michael Baum
Acked
Add the dev_start function that is used to start a configured device.
Add the dev_stop function that is used to stop a configured device.
Both functions set the dev parameter as used and return 0.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 17
implementation for the release QP function to release all the QP
resources.
Added the ops structure that contains any operation which is supported
by the cryptodev.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 129
struct to user private data with the fields socket id,
number of queue pairs and feature flags to be disabled.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 26 +++---
drivers/crypto/mlx5/mlx5_crypto.h | 1 +
2 files changed, 20
: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/features/mlx5.ini | 5 +
doc/guides/cryptodevs/mlx5.rst | 10 ++
drivers/crypto/mlx5/mlx5_crypto.c | 172 +++-
3 files changed, 182 insertions(+), 5 deletions(-)
diff --git a/doc/guides/cryptodevs
routine.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/meson.build | 1 +
drivers/crypto/mlx5/mlx5_crypto.c | 42 +---
drivers/crypto/mlx5/mlx5_crypto.h | 51 ++
drivers/crypto/mlx5/mlx5_crypto_dek.c | 136 ++
4
adds the PCI probing, basic functions, build files and
log utility.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
MAINTAINERS | 4 +
doc/guides/cryptodevs/features/mlx5.ini | 27 +++
doc/guides/cryptodevs/index.rst | 1 +
doc/guides/cryptodevs/mlx5
v6:
- Rebase to new version.
- Address David's comment and update log accordingly.
- Update testing app commits as suggested by Akhil.
Shiri Kuzin (10):
drivers: introduce mlx5 crypto PMD
crypto/mlx5: add DEK object management
crypto/mlx5: add session operations
crypto/mlx5: a
> -Original Message-
> From: Akhil Goyal
> Sent: Tuesday, July 6, 2021 12:38 PM
> To: Shiri Kuzin ; dev@dpdk.org
> Cc: Matan Azrad ; Suanming Mou
>
> Subject: RE: [EXT] [PATCH v5 15/15] test/crypto: add mlx5 multi segment
> tests
>
> > > >
> -Original Message-
> From: Akhil Goyal
> Sent: Tuesday, July 6, 2021 10:48 AM
> To: Shiri Kuzin ; dev@dpdk.org
> Cc: Matan Azrad ; Suanming Mou
>
> Subject: RE: [EXT] [PATCH v5 15/15] test/crypto: add mlx5 multi segment
> tests
>
> > The crypto m
and use a
wrapped key.
The added tests will test both data integrity and correct stat values.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
app/test/meson.build|1 +
app/test/test_cryptodev.c | 334 ++-
app/test/test_cryptodev.h
From: Suanming Mou
This commit adds mlx5 crypto statistic get and reset operations.
Signed-off-by: Suanming Mou
Signed-off-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 40 ---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/
The crypto mlx5 driver supports multi segment encryption and decryption
operations.
Added mlx5 multi segment encryption function and multi segment
decryption function that will both use the mlx5 vectors.
The added tests will test both data integrity and correct stat values.
Signed-off-by: Shiri
From: Suanming Mou
The crypto operations are done with the WQE set which contains
one UMR WQE and one rdma write WQE. Most segments of the WQE
set are initialized properly during queue setup, only limited
segments are initialized according to the crypto detail in the
datapath process.
This commi
From: Suanming Mou
Currently, HW handles the WQEs much faster than the software,
Using the constant WQE set layout can initialize most of the WQE
segments in advanced, and software only needs to configure very
limited segments in datapath. This accelerates the software WQE
organize in datapath.
From: Suanming Mou
The mlx5 HW crypto operations are done by attaching crypto property
to a memory region. Once done, every access to the memory via the
crypto-enabled memory region will result with in-line encryption or
decryption of the data.
As a result, the design choice is to provide two ty
From: Suanming Mou
A keytag is a piece of data encrypted together with a DEK.
When a DEK is referenced by an MKEY.bsf through its index, the keytag is
also supplied in the BSF as plaintext. The HW will decrypt the DEK (and
the attached keytag) and will fail the operation if the keytags don't
mat
-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/mlx5.rst| 60 +
drivers/crypto/mlx5/mlx5_crypto.c | 103 ++
drivers/crypto/mlx5/mlx5_crypto.h | 7 ++
3 files changed, 170 insertions(+)
diff --git a/doc/guides/cryptodevs/mlx5
g a system call.
Add memory region cache management:
- 2 level cache per queue-pair - no locks.
- 1 shared cache between all the queues using a lock.
Using this way, the MR key search per data-path address is optimized.
Signed-off-by: Shiri Kuzin
Signed-off-by: Michael Baum
Acked
Add the dev_start function that is used to start a configured device.
Add the dev_stop function that is used to stop a configured device.
Both functions set the dev parameter as used and return 0.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 17
implementation for the release QP function to release all the QP
resources.
Added the ops structure that contains any operation which is supported
by the cryptodev.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 129
struct to user private data with the fields socket id,
number of queue pairs and feature flags to be disabled.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 26 +++---
drivers/crypto/mlx5/mlx5_crypto.h | 1 +
2 files changed, 20
: Shiri Kuzin
Acked-by: Matan Azrad
---
doc/guides/cryptodevs/features/mlx5.ini | 5 +
doc/guides/cryptodevs/mlx5.rst | 10 ++
drivers/crypto/mlx5/mlx5_crypto.c | 172 +++-
3 files changed, 182 insertions(+), 5 deletions(-)
diff --git a/doc/guides/cryptodevs
routine.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/meson.build | 1 +
drivers/crypto/mlx5/mlx5_crypto.c | 42 +---
drivers/crypto/mlx5/mlx5_crypto.h | 51 ++
drivers/crypto/mlx5/mlx5_crypto_dek.c | 136 ++
4
adds the PCI probing, basic functions, build files and
log utility.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
MAINTAINERS | 4 +
doc/guides/cryptodevs/features/mlx5.ini | 27 +++
doc/guides/cryptodevs/index.rst | 1 +
doc/guides/cryptodevs/mlx5
nse.
Shiri Kuzin (10):
drivers: introduce mlx5 crypto PMD
crypto/mlx5: add DEK object management
crypto/mlx5: add session operations
crypto/mlx5: add basic operations
crypto/mlx5: add queue pairs operations
crypto/mlx5: add dev stop and start operations
crypto/mlx5: add memory reg
This patch will be removed for now until FW support is fully done and be added
when the support is completed.
Regards,
Shiri
> -Original Message-
> From: Raslan Darawsheh
> Sent: Sunday, June 6, 2021 2:32 PM
> To: Shiri Kuzin ; dev@dpdk.org
> Cc: Matan Azrad ; Slava Ov
option item.
Signed-off-by: Shiri Kuzin
Acked-by: Viacheslav Ovsiienko
---
drivers/common/mlx5/mlx5_prm.h | 3 ++-
drivers/net/mlx5/mlx5_flow_dv.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h
index 26761f5bd
entire mkey attributes struct to 0
which will prevent this issue from reoccurring if any fields are added
to the mkey sturct in the future.
Fixes: 0111a74e13dd ("common/mlx5: adjust DevX mkey fields for crypto")
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/common/ml
RTE_CRYPTODEV_FF_CIPHER_WRAPPED_KEY feature flag is set, and
kept in case the key should be generated by the application or
RTE_CRYPTODEV_FF_CIPHER_WRAPPED_KEY is not set.
[1] https://www.mail-archive.com/dev@dpdk.org/msg204836.html
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
V1->V2
-
new field enables saving the data-unit size in the session
structure to the block size pointer variable in order to support
several data-unit sizes.
[1] https://www.mail-archive.com/dev@dpdk.org/msg203590.html
Signed-off-by: Shiri Kuzin
---
drivers/crypto/mlx5/mlx5_crypto.c | 25
Add the dev_start function that is used to start a configured device.
Add the dev_stop function that is used to stop a configured device.
Both functions set the dev parameter as used and return 0.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 17
-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 89 +++
drivers/crypto/mlx5/mlx5_crypto.h | 1 +
2 files changed, 90 insertions(+)
diff --git a/drivers/crypto/mlx5/mlx5_crypto.c
b/drivers/crypto/mlx5/mlx5_crypto.c
index f71de5a724
g a system call.
Add memory region cache management:
- 2 level cache per queue-pair - no locks.
- 1 shared cache between all the queues using a lock.
Using this way, the MR key search per data-path address is optimized.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
driv
implementation for the release QP function to release all the QP
resources.
Added the ops structure that contains any operation which is supported
by the cryptodev.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/mlx5_crypto.c | 124
:
mlx5_crypto_sym_session_get_size- returns the size of the mlx5
session struct.
mlx5_crypto_sym_session_configure- prepares the DEK hash-list
and saves all the session data.
mlx5_crypto_sym_session_clear - destroys the DEK hash-list.
Signed-off-by: Shiri Kuzin
Acked-by
get info function:
-mlx5_crypto_dev_infos_get- function used to get specific
information of a device.
Added config struct to user private data with the fields socket id,
number of queue pairs and feature flags to be disabled.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
From: Dekel Peled
Encryption key management requires use of several related registers.
This patch adds the relevant structs and values, according to PRM
definitions.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_prm.h | 41 ++
1
From: Dekel Peled
This patch adds support of write operation to NIC registers.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 67 +++-
drivers/common/mlx5/mlx5_devx_cmds.h | 4 ++
drivers/common/mlx5/version.map | 20 +
routine.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/crypto/mlx5/meson.build | 1 +
drivers/crypto/mlx5/mlx5_crypto.c | 44 +
drivers/crypto/mlx5/mlx5_crypto.h | 51 ++
drivers/crypto/mlx5/mlx5_crypto_dek.c | 135 ++
4
the PCI probing, basic functions, build files and
log utility.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
MAINTAINERS | 4 +
drivers/common/mlx5/mlx5_common.h | 1 +
drivers/common/mlx5/mlx5_common_pci.c | 14 ++
drivers/common/mlx5
In order to use the hash list defined in net in other drivers, the
hash list is moved to common utilities.
In addition, the log definition was moved from the common utilities to
a dedicated new log file in common in order to prevent a conflict.
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
The get_ib_device_match function iterates over the list of ib devices
returned by the get_device_list glue function and returns the ib device
matching the provided address.
Since this function is in use by several drivers, in this patch we
share the function in common part.
Signed-off-by: Shiri
From: Dekel Peled
CREDENTIAL object is used for any crypto operation in wrapped mode.
This patch add support of CREDENTIAL object create operation.
Add reading of CREDENTIAL support capability.
Add function to create general object type CREDENTIAL, using DevX API.
Signed-off-by: Dekel Peled
Ac
From: Dekel Peled
This patch adds the struct defining crypto BSF segment of UMR WQE,
and the related value definitions and offsets.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_prm.h | 66 ++
1 file changed, 66 insertions(+)
di
From: Dekel Peled
CRYPTO_LOGIN Object is used to login to the device as crypto user
or crypto officer.
Required in order to perform any crypto related control operations.
This patch adds support of CRYPTO_LOGIN object create operation.
Add reading of CRYPTO_LOGIN support capability.
Add function
From: Dekel Peled
IMPORT_KEK object is used to wrap (encrypt) critical security
parameters, such as other keys and credentials, when those need
to be passed between the device and the software.
This patch add support of IMPORT_KEK object create operation.
Add reading of IMPORT_KEK support capabi
From: Dekel Peled
MKEY that will be used in UMR operations must be created with
umr_en attribute.
This patch adds support for setting umr_en attribute in MKEY context.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 1 +
drivers/common/mlx5/mlx5_dev
From: Dekel Peled
Update the PRM structure and HCA capabilities reading, to include
relevant capabilities for AES-XTS crypto.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++
drivers/common/mlx5/mlx
From: Dekel Peled
MKEY that will be used for crypto purposes must be created with
crypto_en attribute.
This patch adds support for crypto_en attribute in MKEY context.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 1 +
drivers/common/mlx5/mlx5_de
From: Dekel Peled
Data Encryption Keys (DEKs) are the keys used for data
encryption/decryption operations.
Add reading of DEK support capability.
Add function to create general object type DEK, using DevX API.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx
From: Dekel Peled
General object types support is indicated in bitmap general_obj_types,
which is part of HCA capabilities list.
Currently this bitmap is read multiple times, and each time a different
bit is extracted.
This patch optimizes the code, reading the bitmap once into a local
variable,
From: Dekel Peled
File drivers/common/mlx5/mlx5_prm.h includes structs representing
data items as defined in PRM document.
Some of these structs were copied as-is from kernel file mlx5_ifc.h.
As result the structs are not all aligned with the same spacing.
This patch removes redundant spaces and
: add crypto register structs and defs
common/mlx5: support register write access
Shiri Kuzin (11):
common/mlx5: share hash list tool
common/mlx5: share get ib device match function
drivers: introduce mlx5 crypto PMD
crypto/mlx5: add DEK object management
crypto/mlx5: support session
From: Dekel Peled
Rename MLX5_OBJ_TYPE_GENEVE_TLV_OPT as
MLX5_GENERAL_OBJ_TYPE_GENEVE_TLV_OPT, to align with other general
objects names.
Signed-off-by: Dekel Peled
Acked-by: Matan Azrad
---
drivers/common/mlx5/mlx5_devx_cmds.c | 2 +-
drivers/common/mlx5/mlx5_prm.h | 4 ++--
2 files ch
should be generated by the application.
[1] https://www.mail-archive.com/dev@dpdk.org/msg201281.html
Signed-off-by: Shiri Kuzin
---
examples/l2fwd-crypto/main.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
issue a validation was added requiring ether type of VLAN
will be followed with VLAN item.
Fixes: 0b1edd21cd78 ("net/mlx5: refuse empty VLAN flow specification")
Cc: sta...@dpdk.org
Signed-off-by: Shiri Kuzin
Acked-by: Matan Azrad
---
drivers/net/mlx5/mlx5_flow_verbs.c | 8
1 fi
GENEVE TLV option support added to mlx5 PMD.
The limitations and support were updated in
documentation.
Signed-off-by: Shiri Kuzin
Acked-by: Viacheslav Ovsiienko
---
doc/guides/nics/mlx5.rst | 26 +-
doc/guides/rel_notes/release_21_02.rst | 5 +
2
1 - 100 of 224 matches
Mail list logo