Re: [dpdk-dev] [PATCH] vdev: fix name comparison in find_vdev

2018-03-11 Thread Tan, Jianfeng
Hi, On 3/10/2018 6:28 AM, Nachiketa Prachanda wrote: Use strcmp to compare device names as the strncmp in original code causes find_vdev to return -EEXIST for names that are prefix of another. The creation of interfaces fails unpredictably based on the order of their creation. An easy way hit

[dpdk-dev] [PATCH] vdev: fix name comparison in find_vdev

2018-03-09 Thread Nachiketa Prachanda
Use strcmp to compare device names as the strncmp in original code causes find_vdev to return -EEXIST for names that are prefix of another. The creation of interfaces fails unpredictably based on the order of their creation. An easy way hit this bug is to create eth_vhost1 after eth_vhost11. Sign