Re: [PATCH] app/testpmd: fix out-of-bound reference in offload config

2025-02-20 Thread lihuisong (C)
LGTM, Acked-by: Huisong Li 在 2025/2/21 4:44, Stephen Hemminger 写道: When configuring offloads, need to check the port id before indexing into the ports[] array. This can easily be done by moving the call to oh_dev_conf_get_print_err() to before the checks for port stopped. Fixes: c73a9071877a ("

[PATCH] app/testpmd: fix out-of-bound reference in offload config

2025-02-20 Thread Stephen Hemminger
When configuring offloads, need to check the port id before indexing into the ports[] array. This can easily be done by moving the call to oh_dev_conf_get_print_err() to before the checks for port stopped. Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API") Cc: sta...@dpdk.or