net/ark: update packet generator and checker config status

Configuration status updates for internal packet checker and
generator.

Signed-off-by: John Miller <john.miller@atomicrules.com>
This commit is contained in:
John Miller 2022-02-15 16:19:23 -06:00 committed by Ferruh Yigit
parent 2f27ef736f
commit 4f2f1bd8cd
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ ark_pktchkr_stopped(ark_pkt_chkr_t handle)
struct ark_pkt_chkr_inst *inst = (struct ark_pkt_chkr_inst *)handle; struct ark_pkt_chkr_inst *inst = (struct ark_pkt_chkr_inst *)handle;
uint32_t r = inst->sregs->pkt_start_stop; uint32_t r = inst->sregs->pkt_start_stop;
return (((r >> 16) & 1) == 1); return (((r >> 16) & 1) == 1) || (r == 0);
} }
void void

View File

@ -107,7 +107,7 @@ ark_pktgen_paused(ark_pkt_gen_t handle)
struct ark_pkt_gen_inst *inst = (struct ark_pkt_gen_inst *)handle; struct ark_pkt_gen_inst *inst = (struct ark_pkt_gen_inst *)handle;
uint32_t r = inst->regs->pkt_start_stop; uint32_t r = inst->regs->pkt_start_stop;
return (((r >> 16) & 1) == 1); return (((r >> 24) & 1) == 1) || (((r >> 16) & 1) == 1) || (r == 0);
} }
void void