From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 96F03A0A0C; Tue, 3 Aug 2021 14:34:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AB86411A7; Tue, 3 Aug 2021 14:34:45 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id E4A0640E3C for <dev@dpdk.org>; Tue, 3 Aug 2021 14:34:43 +0200 (CEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8D0A95C014F; Tue, 3 Aug 2021 08:34:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 03 Aug 2021 08:34:43 -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:content-type; s=fm1; bh= Y1Sv/aFCdskHZL5U7g2gwJNi/z7W/GdL8qKC4JwZoWw=; b=uwYrlh6Nt5bJGJ/E H3jfZE2fx9O5ZpnCfww5f9H5/vo07iLc2juzOW7/DY9QxmR63jypcdqf74EuN4M4 T0FdVgsCPihgNcMng8GspC/DxlBW6Y7VbGG2GeABlsO7RMB+ZaIY/9V6hEztBnrL U8N0NFUomw/Uw9vCFYq2AXuQyn0/bp7aAMe/pwx2MI2dmnwGC4HWaO5dyPXPkkZP 6tlvxiXBiMXVu5AGO0rUKOiMwT/RPBi8hUOQs5q1zwonzWIFxMi7eRARtcP3bfoc M0biEcxWdy3+UZq3oJbJUAcc0Q3csI29FU4ysGru0wv+pi7RmbLgsi/DXPyd9ru4 Vzajqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=Y1Sv/aFCdskHZL5U7g2gwJNi/z7W/GdL8qKC4JwZo Ww=; b=s/H86viIg9M4nzDHBf4YJetgHJvOl39dYRov3ZIrfEG38xXnkbCGSA985 mSDSaEqPNhnga5qKu4y5f05nIWbQAE2RBffrfWuzVPPi2CkBUyKkcC+L6MUjasDB /lv4VuF2VC4jpWDM3Jy+ilNCyGvukbjxixywwky3QIuTRQRf8GszwHngnPR6IK0k 8qQ4dhacypcfk+f/ZCUmBtZe/f5A1wLgdQ2ATD1EJyr5gHMAJi+LiHNSFaWnSmkB cwsz2psBm0RP8fb1/yJqLZqasHOwcjO+RuTmqTy6ArOx6qc6a8cmq6E01RrQlcoj 747sPEb2Jsp/nGMF0hKUa1y722VwQ== X-ME-Sender: <xms:4zcJYX7im_K8GFGUSbEf76yo6cuBAwAkyiz0oAHCpE4eXPn_LEmN5A> <xme:4zcJYc6_-rEoi0Lu43hPmk5buj75P5o3p1T-dfeE5skG1BsxqwCgMsf2U9uukGKZe lmaOyvp7y7H_mSAZA> X-ME-Received: <xmr:4zcJYecWX33by4gPT7_D5otBUe_ptbkP8oUp4YeR6QeDYAfIWpAw_x4VqdqNgnoJgRRmxDyAmk_O1tRv7v5Hy72Fpw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrieeggdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: <xmx:4zcJYYK254OJNtgam92BZyviPM9r3ep4Si_SoUKlfWhtt5j9I_Idpg> <xmx:4zcJYbJFvY_EzUQZgfectovK6G04boClDWHJ3qHIItPMRz8Ka_g0LQ> <xmx:4zcJYRw1M11QiqNmCcX8zpxWpZKnLLLI61do0aAJ_rBTb6Z75CIJJQ> <xmx:4zcJYYGBWaTNi0HiLHqWXPG4mzaV5ETn8xBoYChbBCB8nPswOT3IJA> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Aug 2021 08:34:42 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: Gregory Etelson <getelson@nvidia.com> Cc: dev@dpdk.org, matan@nvidia.com, rasland@nvidia.com, Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Xueming Li <xuemingl@nvidia.com> Date: Tue, 03 Aug 2021 14:34:41 +0200 Message-ID: <1678891.g4SDaZsxXZ@thomas> In-Reply-To: <20210802145524.3248-1-getelson@nvidia.com> References: <20210802145524.3248-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix port domain_id initialization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> Title proposal: net/mlx5: fix port initialization of switch domain 02/08/2021 16:55, Gregory Etelson: > All active ports that belong to the same E-switch share domain_id > value. > Port initialization procedure searches through a database for existing > port with matching properties. New domain_id allocated if match was > not located. Otherwise, new port inherits existing domain_id. > > Port initialization did not pass enough info to search procedure to > find existing matches. Therefore, each port was created with a private > domain_id value. As the result, port_id flow action failed because it > could not match ports in a rule to E-switch. > > The patch adds dpdk_dev with port properties to device search. > > Fixes: 56bb3c84e982 ("net/mlx5: reduce PCI dependency") > > Signed-off-by: Gregory Etelson <getelson@nvidia.com> > Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com> Applied, thanks.