Skip to content

Commit 2c3f2c1

Browse files
committed
crypto: qat - relocate backlog related structures
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2 commit-author Giovanni Cabiddu <giovanni.cabiddu@intel.com> commit 4d76f38 Move the structures qat_instance_backlog and qat_alg_req from qat_crypto.h to qat_algs_send.h since they are not unique to crypto. Both structures will be used by the compression service to support requests with the CRYPTO_TFM_REQ_MAY_BACKLOG flag set. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Reviewed-by: Adam Guerin <adam.guerin@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> (cherry picked from commit 4d76f38) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent a6a7706 commit 2c3f2c1

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

drivers/crypto/qat/qat_common/qat_algs_send.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
#ifndef QAT_ALGS_SEND_H
44
#define QAT_ALGS_SEND_H
55

6-
#include "qat_crypto.h"
6+
#include <linux/list.h>
7+
#include "adf_transport_internal.h"
8+
9+
struct qat_instance_backlog {
10+
struct list_head list;
11+
spinlock_t lock; /* protects backlog list */
12+
};
13+
14+
struct qat_alg_req {
15+
u32 *fw_req;
16+
struct adf_etr_ring_data *tx_ring;
17+
struct crypto_async_request *base;
18+
struct list_head list;
19+
struct qat_instance_backlog *backlog;
20+
};
721

822
int qat_alg_send_message(struct qat_alg_req *req);
923
void qat_alg_send_backlog(struct qat_instance_backlog *backlog);

drivers/crypto/qat/qat_common/qat_crypto.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@
88
#include <linux/slab.h>
99
#include "adf_accel_devices.h"
1010
#include "icp_qat_fw_la.h"
11+
#include "qat_algs_send.h"
1112
#include "qat_bl.h"
1213

13-
struct qat_instance_backlog {
14-
struct list_head list;
15-
spinlock_t lock; /* protects backlog list */
16-
};
17-
18-
struct qat_alg_req {
19-
u32 *fw_req;
20-
struct adf_etr_ring_data *tx_ring;
21-
struct crypto_async_request *base;
22-
struct list_head list;
23-
struct qat_instance_backlog *backlog;
24-
};
25-
2614
struct qat_crypto_instance {
2715
struct adf_etr_ring_data *sym_tx;
2816
struct adf_etr_ring_data *sym_rx;

0 commit comments

Comments
 (0)