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>
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],
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;
}
#include <stdint.h>
-#define ARK_PKTDIR_BASE_ADR 0xa0000
+#define ARK_PKT_DIR_INIT_VAL 0x0110
typedef void *ark_pkt_dir_t;