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>
This commit is contained in:
Thomas Monjalon 2019-02-24 23:42:40 +01:00 committed by Ferruh Yigit
parent efad0db1ff
commit 09c9c4d23d

View File

@ -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);