net/ice: stop LLDP by default
This patch stopped LLDP by default to avoid the statistics error. Signed-off-by: Qiming Yang <qiming.yang@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
6435f9a0ac
commit
59d151de66
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user