mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-26 22:58:51 +00:00
crypto: octeontx2 - update CPT inbound inline IPsec mailbox
Updates CPT inbound inline IPsec configure mailbox to take CPT credit threshold and bpid, which are introduced in CN10KB. Signed-off-by: Srujana Challa <schalla@marvell.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
cac482f241
commit
8bb0be9f53
@ -56,6 +56,8 @@ struct otx2_cpt_rx_inline_lf_cfg {
|
||||
u16 param2;
|
||||
u16 opcode;
|
||||
u32 credit;
|
||||
u32 credit_th;
|
||||
u16 bpid;
|
||||
u32 reserved;
|
||||
};
|
||||
|
||||
|
||||
@ -171,6 +171,8 @@ static int rx_inline_ipsec_lf_cfg(struct otx2_cptpf_dev *cptpf, u8 egrp,
|
||||
nix_req->hdr.id = MBOX_MSG_NIX_INLINE_IPSEC_CFG;
|
||||
nix_req->hdr.sig = OTX2_MBOX_REQ_SIG;
|
||||
nix_req->enable = 1;
|
||||
nix_req->credit_th = req->credit_th;
|
||||
nix_req->bpid = req->bpid;
|
||||
if (!req->credit || req->credit > OTX2_CPT_INST_QLEN_MSGS)
|
||||
nix_req->cpt_credit = OTX2_CPT_INST_QLEN_MSGS - 1;
|
||||
else
|
||||
|
||||
@ -16,7 +16,11 @@
|
||||
#define LOADFVC_MAJOR_OP 0x01
|
||||
#define LOADFVC_MINOR_OP 0x08
|
||||
|
||||
#define CTX_FLUSH_TIMER_CNT 0xFFFFFF
|
||||
/*
|
||||
* Interval to flush dirty data for next CTX entry. The interval is measured
|
||||
* in increments of 10ns(interval time = CTX_FLUSH_TIMER_COUNT * 10ns).
|
||||
*/
|
||||
#define CTX_FLUSH_TIMER_CNT 0x2FAF0
|
||||
|
||||
struct fw_info_t {
|
||||
struct list_head ucodes;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user