Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Srujana Challa and committed by
Herbert Xu
8bb0be9f cac482f2

+9 -1
+2
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
··· 56 56 u16 param2; 57 57 u16 opcode; 58 58 u32 credit; 59 + u32 credit_th; 60 + u16 bpid; 59 61 u32 reserved; 60 62 }; 61 63
+2
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
··· 171 171 nix_req->hdr.id = MBOX_MSG_NIX_INLINE_IPSEC_CFG; 172 172 nix_req->hdr.sig = OTX2_MBOX_REQ_SIG; 173 173 nix_req->enable = 1; 174 + nix_req->credit_th = req->credit_th; 175 + nix_req->bpid = req->bpid; 174 176 if (!req->credit || req->credit > OTX2_CPT_INST_QLEN_MSGS) 175 177 nix_req->cpt_credit = OTX2_CPT_INST_QLEN_MSGS - 1; 176 178 else
+5 -1
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
··· 16 16 #define LOADFVC_MAJOR_OP 0x01 17 17 #define LOADFVC_MINOR_OP 0x08 18 18 19 - #define CTX_FLUSH_TIMER_CNT 0xFFFFFF 19 + /* 20 + * Interval to flush dirty data for next CTX entry. The interval is measured 21 + * in increments of 10ns(interval time = CTX_FLUSH_TIMER_COUNT * 10ns). 22 + */ 23 + #define CTX_FLUSH_TIMER_CNT 0x2FAF0 20 24 21 25 struct fw_info_t { 22 26 struct list_head ucodes;