On Tue, 18 Feb 2025 19:31:56 +0800 Huisong Li <lihuis...@huawei.com> wrote:
> Testpmd doesn't modify the Rx/Tx queue number of all ports after attach a > new device. The root cause is that "port config all rxq <value>" would > check if all ports are stopped and the status of this port is still in > 'RTE_PORT_HANDLING'. This status is changed to 'RTE_PORT_STOPPED' in > setup_attached_port() when start port. > > In addition, this new port needs to be initialized in advance because these > information are depanded on many commands. Otherwise other commands like > "port config xxx" may also encounter similar issue. But the initialization > can't be in new event callback as discussed in following commit. So this > patch moves setup_attached_port() to the time point 100ms after received > the new event. > > Bugzilla ID: 1663 > Fixes: 994635edb2c0 ("app/testpmd: add port attach/detach for multiple > process") > > Signed-off-by: Huisong Li <lihuis...@huawei.com> > --- Applied to next-net with some rewording of commit message to improve grammar. Should this patch be cc to stable since it has a Fixes tag?