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:
parent
efad0db1ff
commit
09c9c4d23d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user