net/ifc: store only registered device instance
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 18 Dec 2018 08:02:02 +0000 (16:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:40 +0000 (16:22 +0100)
commit7b47ea59f2f6da6cbeb84f203eaac0a4812036cd
tree169ca84ffd655bedd3a726e6f42f973ea1f6b8a0
parentc6ce525dd05c6499cec0905b8f4e8bec1c41e3c7
net/ifc: store only registered device instance

If driver fails to register ifc VF device into vhost lib, then this
device should not be stored.

Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/ifc/ifcvf_vdpa.c