From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B681FA0096 for ; Mon, 8 Apr 2019 10:35:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D54E52BC9; Mon, 8 Apr 2019 10:35:19 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id B1162DED for ; Mon, 8 Apr 2019 10:35:17 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 01:35:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,324,1549958400"; d="scan'208";a="289653869" Received: from map1.sh.intel.com ([10.67.111.124]) by orsmga004.jf.intel.com with ESMTP; 08 Apr 2019 01:35:14 -0700 From: Qiming Yang To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Qiming Yang Date: Tue, 9 Apr 2019 00:02:15 +0800 Message-Id: <20190408160215.142548-1-qiming.yang@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190403155921.184963-1-qiming.yang@intel.com> References: <20190403155921.184963-1-qiming.yang@intel.com> Subject: [dpdk-dev] [PATCH v2] net/ice: stop lldp by default X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190408160215.WwMY7bIJnmFQRppJ8gZrsaBKEHAuF4hMn8GxszeivqA@z> This patch stopped lldp by default to avoid the statistics error. Fixes: f9cf4f864150 ("net/ice: support device initialization") Signed-off-by: Qiming Yang --- 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 1482ced..a4191e9 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -11,6 +11,7 @@ #include "base/ice_sched.h" #include "base/ice_flow.h" +#include "base/ice_dcb.h" #include "ice_ethdev.h" #include "ice_rxtx.h" @@ -1406,6 +1407,10 @@ ice_dev_init(struct rte_eth_dev *dev) /* Disable double vlan by default */ ice_vsi_config_double_vlan(vsi, FALSE); + ret = ice_aq_start_lldp(hw, NULL); + if (ret != ICE_SUCCESS) + PMD_INIT_LOG(WARNING, "Failed to stop lldp"); + /* register callback func to eal lib */ rte_intr_callback_register(intr_handle, ice_interrupt_handler, dev); -- 2.9.5