From: Haiyue Wang Date: Mon, 25 Jan 2021 11:44:21 +0000 (+0800) Subject: net/iavf: adjust VLAN initialize failure handling X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f3bbf08fafa51ce70451b8f4b6bbe8d1673df366;p=dpdk.git net/iavf: adjust VLAN initialize failure handling 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 Acked-by: Qi Zhang --- diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index a5c5d2e2a1..5309427082 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -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) {