[06/20] common/cnxk: enable l3hdr write back in SA
Commit Message
From: Vidya Sagar Velumuri <vvelumuri@marvell.com>
Enable the field in SA to write back l2, l3 hdrs in case of errors
during inline processing.
Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>
---
drivers/common/cnxk/roc_ie_ot.c | 1 +
drivers/common/cnxk/roc_ie_ot.h | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
@@ -17,6 +17,7 @@ roc_ot_ipsec_inb_sa_init(struct roc_ot_ipsec_inb_sa *sa, bool is_inline)
sa->w0.s.pkt_format = ROC_IE_OT_SA_PKT_FMT_META;
sa->w0.s.pkind = ROC_IE_OT_CPT_PKIND;
sa->w0.s.et_ovrwr = 1;
+ sa->w2.s.l3hdr_on_err = 1;
}
offset = offsetof(struct roc_ot_ipsec_inb_sa, ctx);
@@ -336,7 +336,8 @@ struct roc_ot_ipsec_inb_sa {
uint64_t ip_hdr_verify : 2;
uint64_t udp_ports_verify : 1;
- uint64_t rsvd6 : 7;
+ uint64_t l3hdr_on_err : 1;
+ uint64_t rsvd6 : 6;
uint64_t async_mode : 1;
uint64_t spi : 32;