Bug 1333
Summary: | DMA Perf test unable to parse multiple DMA devices from configuration file | ||
---|---|---|---|
Product: | DPDK | Reporter: | Thiyagarajan P (thiyagarajan.p) |
Component: | other | Assignee: | dev |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | bruce.richardson, vipin.varghese |
Priority: | Normal | ||
Version: | 23.11 | ||
Target Milestone: | --- | ||
Hardware: | x86 | ||
OS: | Linux |
Description
Thiyagarajan P
2023-12-05 12:45:39 CET
Correction in Observed Behavior: dma perf test throws config file parsing error with the error of check if line too long. line no 11 is entry for lcore_dma #### Error Observed: config file parsing... rte_cfgfile_load_with_params(): line 11 - no \n found on string. Check if line too long Open configure file error. #### Reproduced the issue locally. Based on the debug, the problem seems to be from `lib/cfgfile` where the Value holds only 256 characters. Modifying the header file to a larger value or adding compiler arguments `-Dc_args=-DCFG_VALUE_LEN=2048'` and then recompiling the dpdk fixes the problem. Will share a patch to udpate the default value. Rather than just increasing the length of lines supported by cfgfile library, I think we should change how the config of test-dma-perf is done. Rather than a single line listing all devices, we should have it use one device per line. For example: lcore_dma0=lcore10@0000:04.2-q0 lcore_dma1=lcore12@0000:04.2-q1 .... lcore_dma15=lcore26@0000:04.4-q7 |