From f3bbf08fafa51ce70451b8f4b6bbe8d1673df366 Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Mon, 25 Jan 2021 19:44:21 +0800 Subject: [PATCH] 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 --- drivers/net/iavf/iavf_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.20.1