rte_malloc("ark_pkt_chkr_inst",
sizeof(struct ark_pkt_chkr_inst), 0);
if (inst == NULL) {
- PMD_DRV_LOG(ERR, "Failed to malloc ark_pkt_chkr_inst.\n");
+ ARK_PMD_LOG(ERR, "Failed to malloc ark_pkt_chkr_inst.\n");
return inst;
}
inst->sregs = (struct ark_pkt_chkr_stat_regs *)addr;
while (!ark_pktchkr_stopped(handle) && (wait_cycle > 0)) {
usleep(1000);
wait_cycle--;
- PMD_DEBUG_LOG(DEBUG, "Waiting for pktchk %d to stop...\n",
+ ARK_PMD_LOG(DEBUG, "Waiting for pktchk %d to stop...\n",
inst->ordinal);
}
- PMD_DEBUG_LOG(DEBUG, "Pktchk %d stopped.\n", inst->ordinal);
+ ARK_PMD_LOG(DEBUG, "Pktchk %d stopped.\n", inst->ordinal);
}
int
struct ark_pkt_chkr_inst *inst = (struct ark_pkt_chkr_inst *)handle;
if (ark_pktchkr_is_gen_forever(handle)) {
- PMD_DEBUG_LOG(ERR, "Pktchk wait_done will not terminate"
+ ARK_PMD_LOG(NOTICE, "Pktchk wait_done will not terminate"
" because gen_forever=1\n");
return -1;
}
while (!ark_pktchkr_stopped(handle) && (wait_cycle > 0)) {
usleep(1000);
wait_cycle--;
- PMD_DEBUG_LOG(DEBUG, "Waiting for packet checker %d's"
+ ARK_PMD_LOG(DEBUG, "Waiting for packet checker %d's"
" internal pktgen to finish sending...\n",
inst->ordinal);
- PMD_DEBUG_LOG(DEBUG, "Pktchk %d's pktgen done.\n",
+ ARK_PMD_LOG(DEBUG, "Pktchk %d's pktgen done.\n",
inst->ordinal);
}
return 0;
{
struct ark_pkt_chkr_inst *inst = (struct ark_pkt_chkr_inst *)handle;
- PMD_STATS_LOG(INFO, "pkts_rcvd = (%'u)\n",
+ ARK_PMD_LOG(INFO, "pkts_rcvd = (%'u)\n",
inst->sregs->pkts_rcvd);
- PMD_STATS_LOG(INFO, "bytes_rcvd = (%'" PRIU64 ")\n",
+ ARK_PMD_LOG(INFO, "bytes_rcvd = (%'" PRIU64 ")\n",
inst->sregs->bytes_rcvd);
- PMD_STATS_LOG(INFO, "pkts_ok = (%'u)\n",
+ ARK_PMD_LOG(INFO, "pkts_ok = (%'u)\n",
inst->sregs->pkts_ok);
- PMD_STATS_LOG(INFO, "pkts_mismatch = (%'u)\n",
+ ARK_PMD_LOG(INFO, "pkts_mismatch = (%'u)\n",
inst->sregs->pkts_mismatch);
- PMD_STATS_LOG(INFO, "pkts_err = (%'u)\n",
+ ARK_PMD_LOG(INFO, "pkts_err = (%'u)\n",
inst->sregs->pkts_err);
- PMD_STATS_LOG(INFO, "first_mismatch = (%'u)\n",
+ ARK_PMD_LOG(INFO, "first_mismatch = (%'u)\n",
inst->sregs->first_mismatch);
- PMD_STATS_LOG(INFO, "resync_events = (%'u)\n",
+ ARK_PMD_LOG(INFO, "resync_events = (%'u)\n",
inst->sregs->resync_events);
- PMD_STATS_LOG(INFO, "pkts_missing = (%'u)\n",
+ ARK_PMD_LOG(INFO, "pkts_missing = (%'u)\n",
inst->sregs->pkts_missing);
- PMD_STATS_LOG(INFO, "min_latency = (%'u)\n",
+ ARK_PMD_LOG(INFO, "min_latency = (%'u)\n",
inst->sregs->min_latency);
- PMD_STATS_LOG(INFO, "max_latency = (%'u)\n",
+ ARK_PMD_LOG(INFO, "max_latency = (%'u)\n",
inst->sregs->max_latency);
}
if (strcmp(id, toptions[i].opt) == 0)
return &toptions[i];
}
- PMD_DRV_LOG(ERR,
+ ARK_PMD_LOG(ERR,
"pktchkr: Could not find requested option!, option = %s\n",
id);
return NULL;
ark_pktchkr_stop(handle);
if (options("run")->v.BOOL) {
- PMD_DEBUG_LOG(DEBUG, "Starting packet checker on port %d\n",
+ ARK_PMD_LOG(DEBUG, "Starting packet checker on port %d\n",
options("port")->v.INT);
ark_pktchkr_run(handle);
}