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 3C37AA09E0; Fri, 13 Nov 2020 19:54:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A7166C868; Fri, 13 Nov 2020 19:54:16 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id F3E0B4C96; Fri, 13 Nov 2020 19:54:13 +0100 (CET) IronPort-SDR: dRTGeUMB4TxOllhlR+d+YQBxg4wLV6n3fAMHKjMsywXJog8CBqTP88g0jvZgF0bqQ95BGDs+3S 1x5Z9UleyTGA== X-IronPort-AV: E=McAfee;i="6000,8403,9804"; a="158293173" X-IronPort-AV: E=Sophos;i="5.77,476,1596524400"; d="scan'208";a="158293173" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2020 10:54:12 -0800 IronPort-SDR: 9xYZitwJ9ttaTur1Kxi2Aepy5/mpujPEhvT1855yzltHQ+EDtXQz/dbyY58/Wr82y2CT3d86ad ZamSLZgdUKIw== X-IronPort-AV: E=Sophos;i="5.77,476,1596524400"; d="scan'208";a="474765570" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.252.3.208]) ([10.252.3.208]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2020 10:54:10 -0800 To: Bill Zhou , viacheslavo@nvidia.com, matan@nvidia.com, Thomas Monjalon Cc: stable@dpdk.org, dev@dpdk.org, rasland@nvidia.com, Bill Zhou References: <1604469895-418435-1-git-send-email-dongz@mellanox.com> From: Ferruh Yigit Message-ID: <78884a9e-d20a-c8c8-aada-8b0a6282724a@intel.com> Date: Fri, 13 Nov 2020 18:54:06 +0000 MIME-Version: 1.0 In-Reply-To: <1604469895-418435-1-git-send-email-dongz@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix switch port id when representor in bonding 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" On 11/4/2020 6:04 AM, Bill Zhou wrote: > From: Bill Zhou > > In the bonding configurations the port switch id for representors > was composed of pf index in bonding as the 1 msb and the representor's > index as the remaining 15 lsbs. The special corner case for the host > PF representor on BF setups with representor id 0xFFFF was missed as well. > > The new switch port id consists of 4 msbs for the pf bonding index and > the remaining 12 lsbs for the representor index. The switch port id ranges > for each type of representors are as follows: > > Uplink representor(AKA master): 0xFFFF > Host PF representor: 0xFFF > VF representor: 0x[0-FFE] > > Fixes: bee57a0a3565 ("net/mlx5: update switch port id in bonding configuration") > Cc: stable@dpdk.org > > Signed-off-by: Bill Zhou > Acked-by: Viacheslav Ovsiienko Sign off tag is updated as following in the next-net, to keep consistent to previously used name: Signed-off-by: Dong Zhou