|SUCCESS| [v5] ethdev: add buffer size parameter to rte_eth_dev_get_name_by_port()

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Sun Nov 15 23:21:03 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172901

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-15

Info

1. examples/multi_process/hotplug_mp/commands.c ignores the return value of the new call:

       rte_eth_dev_get_name_by_port(port_id, dev_name, sizeof(dev_name));

   The `= ""` initializer covers the `-ENODEV` case. On `-ERANGE`, though, `dev_name` holds a truncated name that is printed as if it were valid. Since every other caller in this patch now checks the result, consider checking it here too:

       if (rte_eth_dev_get_name_by_port(port_id, dev_name,
                                        sizeof(dev_name)) == 0)
               cmdline_printf(cl, "%d\t%s\n", port_id, dev_name);
       else
               ...

Review-Result: CLEAN


More information about the test-report mailing list