DPDK patches and discussions
 help / color / mirror / Atom feed
From: Qiming Yang <qiming.yang@intel.com>
To: dev@dpdk.org
Cc: qi.z.zhang@intel.com, Qiming Yang <qiming.yang@intel.com>
Subject: [dpdk-dev] [PATCH v3] net/ice: stop lldp by default
Date: Fri, 12 Apr 2019 18:10:06 +0800	[thread overview]
Message-ID: <20190412101006.121455-1-qiming.yang@intel.com> (raw)
Message-ID: <20190412101006.c6oq95glP4vJk5T59a8jQ-au1eP_xgPT_QfdDJSyUfM@z> (raw)
In-Reply-To: <20190408160215.142548-1-qiming.yang@intel.com>

This patch stopped lldp by default to avoid the statistics error.

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 9d01018..b106ee9 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);
-- 
2.9.5


  parent reply	other threads:[~2019-04-12  2:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-03 15:59 [dpdk-dev] [PATCH] " Qiming Yang
2019-04-03 15:59 ` Qiming Yang
2019-04-05  8:01 ` Zhang, Qi Z
2019-04-05  8:01   ` Zhang, Qi Z
2019-04-08 16:02 ` [dpdk-dev] [PATCH v2] " Qiming Yang
2019-04-08 16:02   ` Qiming Yang
2019-04-12 10:10   ` Qiming Yang [this message]
2019-04-12 10:10     ` [dpdk-dev] [PATCH v3] " Qiming Yang
2019-04-12 12:24     ` Zhang, Qi Z
2019-04-12 12:24       ` Zhang, Qi Z

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190412101006.121455-1-qiming.yang@intel.com \
    --to=qiming.yang@intel.com \
    --cc=dev@dpdk.org \
    --cc=qi.z.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).