From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 413F6AAA0 for ; Mon, 21 May 2018 10:59:13 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id a15-v6so7903775wrm.0 for ; Mon, 21 May 2018 01:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=6lUsq109O2NvHgDP+C9U2UPztKTrN/UW0r+prJBYBL8=; b=KwDCuCy7SkDbEsUvpGMP4POKGwxnBc+GtYIBDJekQ9BpwsfX2rG73MMqMjvykAcu2j 8so3kq/qzlhBM1oPikVFupdKEJx3QM3T5t27yH1nUtD+meuQYHvLd0ZuVISzB60SRrLU dJ0lEYLwxLRoRFCKFTr26KcHAV96+6vEVcRx7qJN8yX7a4LiNrgAnISIQ+2rfXPn125l igz+CobSmA19hv3cwZNMzDszQhY+CPVKLHZUZSCACAf5KOgyAVMnQF/A9bQDeg3ThqIb 7aXmf8RWiIRFf/4UQS2dEmozKxIVCg+bzVv6UnBCl+wMP6FNPODxGGtEr92j902/SVS9 yc9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=6lUsq109O2NvHgDP+C9U2UPztKTrN/UW0r+prJBYBL8=; b=TtFGt397qBNfG2CXJs1k67Ashx7fSnKnDskiWSv4rfUgFO2Ohy1a2BKrXZhdbFYTPX EU+/7R3BqD5OtVMoi6cPlhfw9F32zRGinddyDNaFKHlAnRagMZcEzO17iKvXo6hWj+rm Xdrs7DOzDDCIP474bkOeBA2UMShyY+GKoetiF85Qudx+b09aBBjXGKUGce9I9l7jWlUa ytFaVO5EARCkFqqBC7KI8ZEPmSliHmooqULCaEzsQ4H8yMBImHxpR/5y4dBvR+ifkf3m NMtOaHtZf8Af6B5NdlkhJpDevwc9Wazl04gIiqroIjr4BaMAQSlMAc2fA3cn3R6mRJLB 9nqg== X-Gm-Message-State: ALKqPwfGDD6eDM1xKnoD3Yk8YwKHIxhgRlZgLxnj/kzgoGJLEYJTr8P7 aMsO65ONoBmdTgX55zdGMjmuOw== X-Google-Smtp-Source: AB8JxZraLFY0CKTXpsE7CImoacjuc7ubbFslD39+QUewrN8uqT4rE7m4FtRTPajFbLc63HasksGq9Q== X-Received: by 2002:adf:b685:: with SMTP id j5-v6mr15615920wre.10.1526893152903; Mon, 21 May 2018 01:59:12 -0700 (PDT) Received: from [10.16.0.207] (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.googlemail.com with ESMTPSA id 109-v6sm11680401wra.32.2018.05.21.01.59.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 01:59:12 -0700 (PDT) To: Thomas Monjalon , Zijie Pan Cc: dev , "beilei.xing" , "qi.z.zhang" , "helin.zhang" References: <1526638447-31246-1-git-send-email-zijie.pan@6wind.com> <3140133.83vjVej6t9@xps> <1752366.FEJfUWy9xN@xps> From: Laurent Hardy Message-ID: <6fc1b039-f79b-e82a-0e22-26f02a196697@6wind.com> Date: Mon, 21 May 2018 10:58:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1752366.FEJfUWy9xN@xps> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] net/i40e: add a specific API to control the LLDP agent 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: , X-List-Received-Date: Mon, 21 May 2018 08:59:13 -0000 Hello Thomas, On 05/21/2018 10:39 AM, Thomas Monjalon wrote: > 21/05/2018 05:35, Zijie Pan: >>>> Add a new API rte_pmd_i40e_set_lldp_cmd to control LLDP agent for i40e. >>>> It supports the following i40e debug lldp commands: >>>> - start/stop of the LLDP agent. >>>> - get local/remote of the LLDP MIB (Management Information Base). >>>> >>>> Signed-off-by: Laurent Hardy >>>> Signed-off-by: Zijie Pan >>> Does it mean that this feature is enabled by default in i40e devices? >>> Should it be disabled by default? >> The new API is just an interface to control the LLDP agent. No functions of i40e call it by default. It is only used to debug LLDP of i40e devices. For example we can add a new command for test-pmd to debug lldp of i40e by calling rte_pmd_i40e_set_lldp_cmd(). > There is a command to stop the LLDP agent. > My question is to know whether this agent is running by default > and should be disabled? This agent is running by default. Beside, disabling LLDP agent when using old fw (NVM 4.53 or 5.x) could have some side effects. https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xl710-10-40-controller-spec-update.pdf Extracted from x710 intel spec: "70. LLDP Disable Can Result in Incorrect Configuration of the Receive Packet Buffer Problem: --------- The default operation of the device is LLDP enabled. LLDP can be disabled by an AQ command or by a custom NVM obtained from Intel. Disabling LLDP when using NVM 4.53 or 5.x can result in the device firmware not configuring the Receive Packet Buffer according to the link mode and flow control settings. Implication: ------------ If flow control is disabled, a hang of the receive data path could occur wherein all received packets are dropped. If flow control is enabled, the incorrect settings could cause packet drops despite the flow control, making the flow control ineffective. Also, throughput might be sub-optimal in some cases. Workaround: ----------- When using NVM 4.53 or 5.x, do one of the following: • Do not disable LLDP or DCBx. Leave the device in default operation mode. • Use the Set Local LLDP MIB admin queue command to apply the (default) DCB configuration during driver initialization and following any link-up event. When using NVM 6.01 or later, the receive data path does not hang even if the FW LLDP is disabled." > I mean i40e is generating LLDP packets by default? > >