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

Thomas Monjalon thomas at monjalon.net
Wed Jan 28 10:53:42 CET 2026


23/12/2025 00:31, Stephen Hemminger:
> 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>

Applied, thanks.





More information about the stable mailing list