[PATCH] app/testpmd: handle IEEE1588 init fail
Stephen Hemminger
stephen at networkplumber.org
Fri Apr 5 18:44:27 CEST 2024
On Sat, 30 Mar 2024 15:44:09 +0800
Dengdui Huang <huangdengdui at huawei.com> wrote:
> When the port's timestamping function failed to initialize
> (for example, the device does not support PTP), the packets
> received by the hardware do not contain the timestamp.
> In this case, IEEE1588 packet forwarding should not start.
> This patch fix it.
>
> Plus, adding a failure message when failed to disable PTP.
>
> Fixes: a78040c990cb ("app/testpmd: update forward engine beginning")
> Cc: stable at dpdk.org
>
> Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
Noticed that ieee1588 part is printing errors to stdout,
but other parts of test-pmd are using stderr or TEST_PMD_LOG.
It would be good to decide on one good way to handle this
across all of testpmd.
More information about the dev
mailing list