git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6435f9a
)
net/ice: stop LLDP by default
author
Qiming Yang
<qiming.yang@intel.com>
Fri, 12 Apr 2019 10:10:06 +0000
(18:10 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 12 Apr 2019 15:11:37 +0000
(17:11 +0200)
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>
drivers/net/ice/ice_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ice/ice_ethdev.c
b/drivers/net/ice/ice_ethdev.c
index
ff2f7b1
..
0946b19
100644
(file)
--- 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);