I'm running linux 4.14.16 on an ls1043a. I recently enabled a DPAA configuration (via the fmc command with appropriate policy and configurations). For some cases, I see an improvement in packet forwarding throughput (and a corresponding reduction in out-of-order packet delivery). How can I get more statistics out of the frame-manager / queue-manager ?
Ideally, I'd like to be able to see a counter of how many frames get assigned to queues based on the classification in the policy (preferably broken down by queue ?).
I've looked at the stuff in /sys/kernel/debug/qman/fqd (and documented in the QorIQ SDK); but maybe I've missed something.
I'd even just like a boolean flag "DPAA got a config from FMC." I'm sure I must be missing something.
My impression is that changing the fmc/dpaa1 configuration during operation is either unsupported or is not-recommended ? Is that true ?
Hello Tim Kordas,
No method to get statistics information from /sys/kernel/debug.
You could refer to USDPAA source code.
static int dump_match_table_entry_stats(t_Handle ccnode, int entry_idx)
{
t_Error err;
t_FmPcdCcKeyStatistics stats;
err = FM_PCD_MatchTableGetKeyStatistics(
ccnode,
entry_idx,
&stats);
if (err != E_OK) {
printf("\t- entry #%d : FAILED TO GET STATS\n", entry_idx);
return -EINVAL;
}
printf("\t- entry #%d : %u frames\n", entry_idx, stats.frameCount);
return 0;
}
Thanks,
Yiping