Skip to content

Commit

Permalink
net/ark: update packet director initial state
Browse files Browse the repository at this point in the history
[ upstream commit 3b4f34f ]

Fixes: b33ccdb ("net/ark: provide API for hardware modules MPU RQP and pktdir")

Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
  • Loading branch information
czeck authored and steevenlee committed May 8, 2021
1 parent d1b4166 commit f6beb20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/net/ark/ark_ethdev.c
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ark/ark_pktdir.c
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ark/ark_pktdir.h
Expand Up @@ -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;

Expand Down

0 comments on commit f6beb20

Please sign in to comment.