Skip to content

Commit cbb0a3d

Browse files
committed
crypto: qat - relocate backlog related structures
jira LE-1907 Rebuild_History Non-Buildable kernel-rt-5.14.0-284.30.1.rt14.315.el9_2 commit-author Giovanni Cabiddu <[email protected]> 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 <[email protected]> Reviewed-by: Wojciech Ziemba <[email protected]> Reviewed-by: Adam Guerin <[email protected]> Signed-off-by: Herbert Xu <[email protected]> (cherry picked from commit 4d76f38) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 843ea0b commit cbb0a3d

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)