summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-03-21 12:00:46 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-03-21 12:00:46 +0200
commit50d9c71d710f4180f4f2f0f712e8b934348eb064 (patch)
tree57f7664b8689c44e9e52e2bd0fe813b2a8606b58
parentc8560f232381a55ec0b568e56d5b63bafdcb5692 (diff)
i40e: Return back removed in DPDK 17.02 disable of LLDP
Change-Id: Id9774bcdb5e1fd49dc0d70f9f3801c2593f1194a Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r--src/dpdk/drivers/net/i40e/i40e_ethdev.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dpdk/drivers/net/i40e/i40e_ethdev.c b/src/dpdk/drivers/net/i40e/i40e_ethdev.c
index 8bf8554..1decbfd 100644
--- a/src/dpdk/drivers/net/i40e/i40e_ethdev.c
+++ b/src/dpdk/drivers/net/i40e/i40e_ethdev.c
@@ -1399,6 +1399,14 @@ eth_i40e_dev_uninit(struct rte_eth_dev *dev)
dev->rx_pkt_burst = NULL;
dev->tx_pkt_burst = NULL;
+#ifdef TREX_PATCH
+ // return removed in DPDK 17.02 disable of lldp
+ /* 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");
+#endif
+
/* Clear PXE mode */
i40e_clear_pxe_mode(hw);
@@ -9948,6 +9956,14 @@ i40e_dcb_init_configure(struct rte_eth_dev *dev, bool sw_dcb)
* LLDP MIB change event.
*/
if (sw_dcb == TRUE) {
+
+#ifdef TREX_PATCH
+ // return removed in DPDK 17.02 disable of lldp
+ ret = i40e_aq_stop_lldp(hw, TRUE, NULL);
+ if (ret != I40E_SUCCESS)
+ PMD_INIT_LOG(DEBUG, "Failed to stop lldp");
+#endif
+
ret = i40e_init_dcb(hw);
/* If lldp agent is stopped, the return value from
* i40e_init_dcb we expect is failure with I40E_AQ_RC_EPERM