[PATCH v2] examples/ethtool: fix buffer size for pkt pool name

Stephen Hemminger stephen at networkplumber.org
Tue Dec 23 00:31:14 CET 2025


On Mon, 22 Dec 2025 10:38:58 +0200
Shani Peretz <shperetz at nvidia.com> wrote:

> Use RTE_MEMPOOL_NAMESIZE for str_name buffer size instead of the
> hardcoded value 16, which was insufficient as the format
> string "pkt_pool%i" can produce up to 19 bytes (8 for "pkt_pool",
> up to 10 for integer value, and 1 for null terminator).
> 
> Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>

Acked-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list