net/iavf: adjust VLAN initialize failure handling
authorHaiyue Wang <haiyue.wang@intel.com>
Mon, 25 Jan 2021 11:44:21 +0000 (19:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:08 +0000 (18:16 +0100)
Instead of returning error on VLAN init failure, just log the error, so
that the VF device can continue to be configured.

Fixes: 1c301e8c3cff ("net/iavf: support new VLAN capabilities")

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_ethdev.c

index a5c5d2e..5309427 100644 (file)
@@ -429,10 +429,8 @@ iavf_dev_configure(struct rte_eth_dev *dev)
        }
 
        ret = iavf_dev_init_vlan(dev);
-       if (ret) {
+       if (ret)
                PMD_DRV_LOG(ERR, "configure VLAN failed: %d", ret);
-               return -1;
-       }
 
        if (vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_RSS_PF) {
                if (iavf_init_rss(ad) != 0) {