crypto/mlx5: add WQE set initialization
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 20 Jul 2021 13:09:39 +0000 (16:09 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 20 Jul 2021 20:27:00 +0000 (22:27 +0200)
commitc2a42d19d967e24223f06f2fc797eaed8e17c345
treefd4fcbe71c227e2833a5ecee071503cbab5fcf2f
parenta1978aa23bf4a8dd34087173f7769250d050315e
crypto/mlx5: add WQE set initialization

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.

This commit initializes the fixed WQE set segments.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Signed-off-by: Matan Azrad <matan@nvidia.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/mlx5/mlx5_crypto.c
drivers/crypto/mlx5/mlx5_crypto.h