From: Qi Zhang Date: Wed, 19 Oct 2016 20:40:13 +0000 (+0800) Subject: net/i40e: fix Rx hang when disable LLDP X-Git-Tag: spdx-start~5427 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fcbd40d4327b36725c4de9f33f57809edc359f4a;p=dpdk.git net/i40e: fix Rx hang when disable LLDP Remove stopping LLDP as a workaround for a known errata which can cause Rx hang. Ref: Item #70 from http://www.intel.com/content/www/us/en/embedded/products/networking/xl710-10-40-controller-spec-update.html Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Qi Zhang Acked-by: Jingjing Wu --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index ca515dd8ad..bb81b156e1 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1223,11 +1223,6 @@ eth_i40e_dev_uninit(struct rte_eth_dev *dev) dev->rx_pkt_burst = NULL; dev->tx_pkt_burst = NULL; - /* Disable LLDP */ - ret = i40e_aq_stop_lldp(hw, true, NULL); - if (ret != I40E_SUCCESS) /* Its failure can be ignored */ - PMD_INIT_LOG(INFO, "Failed to stop lldp"); - /* Clear PXE mode */ i40e_clear_pxe_mode(hw); @@ -9432,10 +9427,6 @@ i40e_dcb_init_configure(struct rte_eth_dev *dev, bool sw_dcb) * LLDP MIB change event. */ if (sw_dcb == TRUE) { - ret = i40e_aq_stop_lldp(hw, TRUE, NULL); - if (ret != I40E_SUCCESS) - PMD_INIT_LOG(DEBUG, "Failed to stop lldp"); - ret = i40e_init_dcb(hw); /* if sw_dcb, lldp agent is stopped, the return from * i40e_init_dcb we expect is failure with I40E_AQ_RC_EPERM