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

Thomas Monjalon thomas at monjalon.net
Wed Mar 28 00:35:56 CEST 2018


12/03/2018 17:54, 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.
> 
> Fixes: dda987315ca2 ("vdev: make virtual bus use its device struct")
> Cc: jblunck at infradead.org
> Cc: stable at dpdk.org
> 
> Signed-off-by: Nachiketa Prachanda <nprachan at vyatta.att-mail.com>
> Acked-by: Jianfeng Tan <jianfeng.tan at intel.com>

Applied, thanks




More information about the dev mailing list