]> git.droids-corp.org - dpdk.git/commitdiff
net/ark: update packet director initial state
authorEd Czeck <ed.czeck@atomicrules.com>
Thu, 18 Mar 2021 17:36:55 +0000 (13:36 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 22 Mar 2021 15:56:27 +0000 (16:56 +0100)
Fixes: b33ccdb17f55 ("net/ark: provide API for hardware modules MPU RQP and pktdir")
Cc: stable@dpdk.org
Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
drivers/net/ark/ark_ethdev.c
drivers/net/ark/ark_pktdir.c
drivers/net/ark/ark_pktdir.h

index ef650a4658a06d6a30b64c695458f1995303dfef..477e1de02dc3320a0773bcd895ca87b6252bdb8f 100644 (file)
@@ -321,6 +321,7 @@ eth_ark_dev_init(struct rte_eth_dev *dev)
        ark->rqpacing =
                (struct ark_rqpace_t *)(ark->bar0 + ARK_RCPACING_BASE);
        ark->started = 0;
+       ark->pkt_dir_v = ARK_PKT_DIR_INIT_VAL;
 
        ARK_PMD_LOG(INFO, "Sys Ctrl Const = 0x%x  HW Commit_ID: %08x\n",
                      ark->sysctrl.t32[4],
index 25e12183106b7ce8af7c5a635db0ea394909ef01..dbfd2924bdafc8f80b2efc4e8a7eedcfcc681125 100644 (file)
@@ -22,7 +22,7 @@ ark_pktdir_init(void *base)
                return inst;
        }
        inst->regs = (struct ark_pkt_dir_regs *)base;
-       inst->regs->ctrl = 0x00110110;  /* POR state */
+       inst->regs->ctrl = ARK_PKT_DIR_INIT_VAL; /* POR state */
        return inst;
 }
 
index 4afd128f95dd3b17393c81c996798ad8f6d0a18a..b5577cebb367173b6a309df0d0431d4b8f0f232e 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <stdint.h>
 
-#define ARK_PKTDIR_BASE_ADR  0xa0000
+#define ARK_PKT_DIR_INIT_VAL 0x0110
 
 typedef void *ark_pkt_dir_t;