Updates CPT parse header HW structure for O20.

Signed-off-by: Rahul Bhansali <rbhans...@marvell.com>
---
 drivers/common/cnxk/hw/cpt.h        | 12 +++++++-----
 drivers/common/cnxk/roc_cpt_debug.c |  8 ++++----
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers/common/cnxk/hw/cpt.h
index 40987abbb9..e542f3a3d4 100644
--- a/drivers/common/cnxk/hw/cpt.h
+++ b/drivers/common/cnxk/hw/cpt.h
@@ -358,11 +358,11 @@ union cpt_parse_hdr_u {
                        struct {
                                uint64_t rsvd_134_128 : 7;
                                uint64_t pkt_inline : 1;
-                               uint64_t new_pkt_aura : 20;
+                               uint64_t rsvd_155_136 : 20;
                                uint64_t orig_pkt_aura : 20;
                                uint64_t il3_off : 8;
-                               uint64_t ptr_pad : 3;
-                               uint64_t ptr_offset : 5;
+                               uint64_t ptr_pad : 5;
+                               uint64_t ptr_offset : 3;
                        };
                } w2;
 
@@ -383,10 +383,12 @@ union cpt_parse_hdr_u {
                        uint64_t u64;
                        struct {
                                uint32_t l4_chksum;
-                               uint32_t l4_chksum_type : 1;
-                               uint32_t rsvd_298_289 : 10;
+                               uint32_t l4_chksum_type : 2;
+                               uint32_t rsvd_292_290 : 3;
                                uint32_t channel : 12;
+                               uint32_t rsvd_308_305 : 4;
                                uint32_t sctr_size : 4;
+                               uint32_t rsvd_314_313 : 2;
                                uint32_t gthr_size : 5;
                        };
                } w4;
diff --git a/drivers/common/cnxk/roc_cpt_debug.c 
b/drivers/common/cnxk/roc_cpt_debug.c
index 35a2cf6b3a..28aedf088e 100644
--- a/drivers/common/cnxk/roc_cpt_debug.c
+++ b/drivers/common/cnxk/roc_cpt_debug.c
@@ -36,8 +36,8 @@ cpt_cnxk_parse_hdr_dump(FILE *file, const struct 
cpt_parse_hdr_s *cpth)
        cpt_dump(file, "W1: wqe_ptr \t0x%016lx\t", cpth->wqe_ptr);
 
        /* W2 */
-       cpt_dump(file, "W2: pkt_inline \t0x%x\t\tnew_pkt_aura 
\t0x%x\t\torig_pkt_aura \t0x%x",
-                cpth->w2.pkt_inline, cpth->w2.new_pkt_aura, 
cpth->w2.orig_pkt_aura);
+       cpt_dump(file, "W2: pkt_inline \t0x%x\t\torig_pkt_aura \t0x%x", 
cpth->w2.pkt_inline,
+                cpth->w2.orig_pkt_aura);
        cpt_dump(file, "W2: il3_off \t0x%x\t\tptr_pad \t0x%x \t", 
cpth->w2.il3_off,
                 cpth->w2.ptr_pad);
        cpt_dump(file, "W2: ptr_offset \t0x%x \t", cpth->w2.ptr_offset);
@@ -53,9 +53,9 @@ cpt_cnxk_parse_hdr_dump(FILE *file, const struct 
cpt_parse_hdr_s *cpth)
        cpt_dump(file, "W4: channel \t0x%x\t\tsctr_size \t0x%08x\t\tgthr_size 
\t0x%08x",
                 cpth->w4.channel, cpth->w4.sctr_size, cpth->w4.gthr_size);
 
-       /* offset of 0 implies 256B, otherwise it implies offset*8B */
+       /* offset of 0 implies 256B, otherwise it implies offset*32B */
        offset = cpth->w2.ptr_offset;
-       offset = (((offset - 1) & 0x1f) + 1) * 8;
+       offset = (((offset - 1) & 0x7) + 1) * 32;
        frag_info = PLT_PTR_ADD(cpth, offset);
 
        if (cpth->w0.num_frags > 0) {
-- 
2.25.1

Reply via email to