Adding script to auto build VNFs
[samplevnf.git] / patches / dpdk_custom_patch / i40e-fix-Rx-hang-when-disable-LLDP.patch
1 From fcbd40d4327b36725c4de9f33f57809edc359f4a Mon Sep 17 00:00:00 2001
2 From: Qi Zhang <qi.z.zhang@intel.com>
3 Date: Thu, 20 Oct 2016 04:40:13 +0800
4 Subject: [PATCH] net/i40e: fix Rx hang when disable LLDP
5
6 Remove stopping LLDP as a workaround for a known
7 errata which can cause Rx hang.
8
9 Ref: Item #70 from
10 http://www.intel.com/content/www/us/en/embedded/products/networking/xl710-10-40-controller-spec-update.html
11
12 Fixes: 4861cde46116 ("i40e: new poll mode driver")
13
14 Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
15 Acked-by: Jingjing Wu <jingjing.wu@intel.com>
16 ---
17  drivers/net/i40e/i40e_ethdev.c | 9 ---------
18  1 file changed, 9 deletions(-)
19
20 diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
21 index ca515dd..bb81b15 100644
22 --- a/drivers/net/i40e/i40e_ethdev.c
23 +++ b/drivers/net/i40e/i40e_ethdev.c
24 @@ -1223,11 +1223,6 @@ eth_i40e_dev_uninit(struct rte_eth_dev *dev)
25         dev->rx_pkt_burst = NULL;
26         dev->tx_pkt_burst = NULL;
27  
28 -       /* Disable LLDP */
29 -       ret = i40e_aq_stop_lldp(hw, true, NULL);
30 -       if (ret != I40E_SUCCESS) /* Its failure can be ignored */
31 -               PMD_INIT_LOG(INFO, "Failed to stop lldp");
32 -
33         /* Clear PXE mode */
34         i40e_clear_pxe_mode(hw);
35  
36 @@ -9432,10 +9427,6 @@ i40e_dcb_init_configure(struct rte_eth_dev *dev, bool sw_dcb)
37          * LLDP MIB change event.
38          */
39         if (sw_dcb == TRUE) {
40 -               ret = i40e_aq_stop_lldp(hw, TRUE, NULL);
41 -               if (ret != I40E_SUCCESS)
42 -                       PMD_INIT_LOG(DEBUG, "Failed to stop lldp");
43 -
44                 ret = i40e_init_dcb(hw);
45                 /* if sw_dcb, lldp agent is stopped, the return from
46                  * i40e_init_dcb we expect is failure with I40E_AQ_RC_EPERM
47 -- 
48 2.7.4
49