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:
parent
2f27ef736f
commit
4f2f1bd8cd
@ -113,7 +113,7 @@ ark_pktchkr_stopped(ark_pkt_chkr_t handle)
|
||||
struct ark_pkt_chkr_inst *inst = (struct ark_pkt_chkr_inst *)handle;
|
||||
uint32_t r = inst->sregs->pkt_start_stop;
|
||||
|
||||
return (((r >> 16) & 1) == 1);
|
||||
return (((r >> 16) & 1) == 1) || (r == 0);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -107,7 +107,7 @@ ark_pktgen_paused(ark_pkt_gen_t handle)
|
||||
struct ark_pkt_gen_inst *inst = (struct ark_pkt_gen_inst *)handle;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user