On 8/20/2020 2:42 AM, Wei Hu (Xavier) wrote: > From: Huisong Li <lihuis...@huawei.com> > > Currently, the information of Rx/Tx queues from PMD driver is not displayed > exactly in the rxtx_config_display function. Because "ports[pid].rx_conf" > and "ports[pid].tx_conf" maintained in testpmd application may be not the > value actually used by PMD driver. For instance, user does not set a field, > but PMD driver has to use the default value.
Overall the question is why testpmd maintains the config values itself? If this is testpmd implementation problem that is no big deal, but if our APIs are forcing applications to maintain local copies that is something to fix I think, which may lead the differences in application copy and more troubles as you are fixing here. > > This patch fixes rxtx_config_display so that the information of Rx/Tx > queues can be really displayed for the PMD driver that implement > .rxq_info_get and .txq_info_get ops callback function. > > Fixes: 75c530c1bd5351 ("app/testpmd: fix port configuration print") > Fixes: d44f8a485f5d1f ("app/testpmd: enable per queue configure") > Cc: sta...@dpdk.org > > Signed-off-by: Huisong Li <lihuis...@huawei.com> > Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>