Skip to content

cleanup use of rte_strlcpy

Stephen Hemminger dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: replace rte_strlcpy() with strlcpy()lib/eal/common/eal_common_memzone.c lib/fib/rte_fib.c lib/fib/rte_fib6.c +5 more+28 -280 replies
2/2drivers: don't use rte_strlcpydrivers/common/cnxk/roc_platform.h drivers/mempool/cnxk/cnxk_mempool_telemetry.c drivers/net/cnxk/cnxk_ethdev_ops.c +1 more+5 -50 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBruce RichardsonTyler Retzlaff
SeriesA-b A-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] cleanup use of rte_strlcpy

In DPDK API's rte_strlcpy() is not intended to be used directly. It was introduced as a replacement for when operating system libraries were missing strlcpy(). Over time it appears several drivers and subsystems started using it directly, which is inefficient since the wrapper uses snprintf().

This series makes sure that the only usage of rte_strlcpy() is in rte_string_fns.h where it is needed.

Perhaps checkpatch should warn about other uses?

Stephen Hemminger (2):
lib: replace rte_strlcpy() with strlcpy()
drivers: don't use rte_strlcpy

 drivers/common/cnxk/roc_platform.h            |  2 +-
 drivers/mempool/cnxk/cnxk_mempool_telemetry.c |  2 +-
 drivers/net/cnxk/cnxk_ethdev_ops.c            |  4 +-
 drivers/net/mlx5/mlx5_testpmd.c               |  2 +-
 lib/eal/common/eal_common_memzone.c           |  2 +-
 lib/fib/rte_fib.c                             |  2 +-
 lib/fib/rte_fib6.c                            |  2 +-
 lib/hash/rte_thash.c                          |  4 +-
 lib/mempool/rte_mempool.c                     |  2 +-
 lib/mldev/mldev_utils.c                       | 40 +++++++++----------
 lib/rib/rte_rib.c                             |  2 +-
 lib/rib/rte_rib6.c                            |  2 +-
 12 files changed, 33 insertions(+), 33 deletions(-)
Signature · 1 line
2.39.2