From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76961A00E6 for ; Mon, 5 Aug 2019 17:32:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4643C1BDE7; Mon, 5 Aug 2019 17:32:46 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 4EB8D1BDED for ; Mon, 5 Aug 2019 17:32:45 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EB49921C46; Mon, 5 Aug 2019 11:32:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 05 Aug 2019 11:32:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=A9lNdFDe6V INslYzjgWEm8zhIKZc+Ir6Ls+mLE/wPxg=; b=SzHfJvwvYQrA4PVtuF+Wl1paXu Q1GlGpjoNxKXcDmbL/52zs8mqiVz9OmTa3BtlgWeidtwNdIQxix+8nyAOoTpHOBb kMv7Z/q9+Sy1k+T0/e9+1lAmdnoZg1N9LV6+Fw0KW92k9GK5Vo2gEijc48xpKYDf bLqoIWMEOkazYHnYc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=A9lNdFDe6VINslYzjgWEm8zhIKZc+Ir6Ls+mLE/wPxg=; b=0Atqs1N4 BqRXXZjVxg8N5P0NkMvXFagd/X/1z8r+K03ARjOiaMdsZKbSoaIahMFTgvukUoRa ng9Xzs0FEh7Wk2PgIkO0W/XiSYfv1WYth61PMIATQWWTXlUkODsQeO+4uWQYx26a poQrkPmOsmS2twnWsrW3PodcsaFCjvjTzNbUmsU0Vte5Z6dRPJqLgmHj0//uctG8 LkiQb0U25+fdu1S3NrQU+rmHa83qCMEXSAihTVwCMW13K8IhhvF6E+st8/sJHkii xsMr79H1noOdwPZz1Y7YBxipRdhGBr0mwGxTwXcGwkc5BCTsd4uhYtYqWHb7euyc bg40iaYrdntGog== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddtjedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A41E680068; Mon, 5 Aug 2019 11:32:43 -0400 (EDT) From: Thomas Monjalon To: Shahaf Shuler , Yongseok Koh , Viacheslav Ovsiienko , John McNamara , Marko Kovacevic Cc: dev@dpdk.org Date: Mon, 5 Aug 2019 17:32:18 +0200 Message-Id: <20190805153222.29593-2-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190805153222.29593-1-thomas@monjalon.net> References: <20190805153222.29593-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/5] doc: improve firmware configuration in mlx5 guide 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" The command mlxconfig was not enough explained and too much verbose at the same time. The syntax is now explained in introduction before listing the options, without repeating the commands. Some options, which are explained elsewhere in the doc, are added to this list. Signed-off-by: Thomas Monjalon --- doc/guides/nics/mlx5.rst | 53 +++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 46538b8f1..32b1900bd 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -575,46 +575,53 @@ Run-time configuration Firmware configuration ~~~~~~~~~~~~~~~~~~~~~~ -- L3 VXLAN and VXLAN-GPE destination UDP port +Firmware features can be configured as key/value pairs. - .. code-block:: console +The command to set a value is:: - mlxconfig -d set IP_OVER_VXLAN_EN=1 - mlxconfig -d set IP_OVER_VXLAN_PORT= + mlxconfig -d set = - Verify configurations are set: +The command to query a value is:: - .. code-block:: console + mlxconfig -d query | grep - mlxconfig -d query | grep IP_OVER_VXLAN - IP_OVER_VXLAN_EN True(1) - IP_OVER_VXLAN_PORT +The device name for the command ``mlxconfig`` can be either the PCI address, +or the mst device name found with:: -- enable ICMP/ICMP6's code/type field matching + mst status - .. code-block:: console +Below are some firmware configurations listed. - mlxconfig -d set FLEX_PARSER_PROFILE_ENABLE=2 +- link type:: - Verify configurations are set: + LINK_TYPE_P1 + LINK_TYPE_P2 + value: 1=Infiniband 2=Ethernet 3=VPI(auto-sense) - .. code-block:: console +- enable SR-IOV:: - mlxconfig -d query | grep FLEX_PARSER_PROFILE_ENABLE - FLEX_PARSER_PROFILE_ENABLE 2 + SRIOV_EN=1 -- IP-in-IP tunnel enable +- maximum number of SR-IOV virtual functions:: - .. code-block:: console + NUM_OF_VFS= - mlxconfig -d set FLEX_PARSER_PROFILE_ENABLE=0 +- aggressive CQE zipping:: - Verify configurations are set: + CQE_COMPRESSION=1 - .. code-block:: console +- L3 VXLAN and VXLAN-GPE destination UDP port:: - mlxconfig -d query | grep FLEX_PARSER_PROFILE_ENABLE - FLEX_PARSER_PROFILE_ENABLE 0 + IP_OVER_VXLAN_EN=1 + IP_OVER_VXLAN_PORT= + +- enable IP-in-IP tunnel flow matching:: + + FLEX_PARSER_PROFILE_ENABLE=0 + +- enable ICMP/ICMP6 code/type fields matching:: + + FLEX_PARSER_PROFILE_ENABLE=2 Prerequisites ------------- -- 2.21.0