From: Qiming Yang Date: Fri, 12 Apr 2019 10:10:06 +0000 (+0800) Subject: net/ice: stop LLDP by default X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=59d151de6673;p=dpdk.git net/ice: stop LLDP by default This patch stopped LLDP by default to avoid the statistics error. Signed-off-by: Qiming Yang Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index ff2f7b1ada..0946b19453 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -12,6 +12,7 @@ #include "base/ice_sched.h" #include "base/ice_flow.h" +#include "base/ice_dcb.h" #include "ice_ethdev.h" #include "ice_rxtx.h" @@ -1428,6 +1429,10 @@ ice_dev_init(struct rte_eth_dev *dev) /* Disable double vlan by default */ ice_vsi_config_double_vlan(vsi, FALSE); + ret = ice_aq_stop_lldp(hw, TRUE, NULL); + if (ret != ICE_SUCCESS) + PMD_INIT_LOG(DEBUG, "lldp has already stopped\n"); + /* register callback func to eal lib */ rte_intr_callback_register(intr_handle, ice_interrupt_handler, dev);