[PATCH v2] dts: testpmd link check on port start
Dean Marx
dmarx at iol.unh.edu
Thu Nov 6 18:14:59 CET 2025
On Wed, Nov 5, 2025 at 2:50 PM Patrick Robb <probb at iol.unh.edu> wrote:
>
> When running our existing DTS testsuites on a new
> NIC we observed packets would not transmit from
> the traffic generator to the system under test
> even after DPDK testpmd and the NIC under test
> had indicated readiness. After investigation, we
> determined that the existing readiness check in DTS
> for testpmd start (checking that port is started)
> is insufficient, because on some systems the link
> will remain down for some measurable time, creating
> a race condition between the testpmd port's link
> coming up and the DTS execution reaching the packet
> transmission step. This change will ensure that
> testpmd start will block until the port is reporting
> that its link is up. In addition, the interval in
> between checking the link state has been reduced in
> order to speed up the execution.
>
> Signed-off-by: Patrick Robb <probb at iol.unh.edu>
> Tested-by: Patrick Robb <probb at iol.unh.edu>
<snip>
> if "Link status: up" in port_info:
> break
> - time.sleep(0.5)
> + time.sleep(0.25)
What's the rationale for changing this, just wondering?
Reviewed-by: Dean Marx <dmarx at iol.unh.edu>
More information about the dev
mailing list