common/cnxk: enable L3 header write back in SA
Enable the field in SA to write back L2, L3 headers in case of errors during inline processing. Signed-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
5ece02e736
commit
350b7a536a
@ -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);
|
||||
|
@ -351,7 +351,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;
|
||||
|
Loading…
Reference in New Issue
Block a user