summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.c
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2019-02-24 23:42:40 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-08 17:52:22 +0100
commit09c9c4d23dc764bf833e432c8f3d5fae612e18b7 (patch)
tree681c7c124bef0ba87c5fff0bd6fa5ca051f6f1bb /drivers/net/mlx5/mlx5.c
parentefad0db1ff58461a53d803bc4df1820cbb3ae500 (diff)
downloaddpdk-next-eventdev-09c9c4d23dc764bf833e432c8f3d5fae612e18b7.zip
dpdk-next-eventdev-09c9c4d23dc764bf833e432c8f3d5fae612e18b7.tar.gz
dpdk-next-eventdev-09c9c4d23dc764bf833e432c8f3d5fae612e18b7.tar.xz
net/mlx5: call generic strlcpy
The call to strlcpy uses either libc, libbsd or internal rte_strlcpy. No need to call the DPDK flavor explicitly. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Rami Rosen <ramirose@gmail.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5.c')
-rw-r--r--drivers/net/mlx5/mlx5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 740c5e2..ae4b716 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -785,7 +785,7 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
}
/* Build device name. */
if (!switch_info->representor)
- rte_strlcpy(name, dpdk_dev->name, sizeof(name));
+ strlcpy(name, dpdk_dev->name, sizeof(name));
else
snprintf(name, sizeof(name), "%s_representor_%u",
dpdk_dev->name, switch_info->port_name);