]> git.droids-corp.org - dpdk.git/commitdiff
common/cnxk: enable L3 header write back in SA
authorVidya Sagar Velumuri <vvelumuri@marvell.com>
Tue, 22 Feb 2022 19:34:57 +0000 (01:04 +0530)
committerJerin Jacob <jerinj@marvell.com>
Wed, 23 Feb 2022 16:35:04 +0000 (17:35 +0100)
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>
drivers/common/cnxk/roc_ie_ot.c
drivers/common/cnxk/roc_ie_ot.h

index 1ea7bfd68e6f570c095ae21b28f0d738ec2a4f16..d0b7ad38f15365e5b38a5649a1e9b52ea6dc27f7 100644 (file)
@@ -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);
index b5d4f4ac435a3f16d2e5033b91218d0a950cfa57..202e2d2f39f975cff750cfbb16948c022418fa7f 100644 (file)
@@ -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;