From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 01123A0C4E; Tue, 19 Oct 2021 10:29:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1BB140DF5; Tue, 19 Oct 2021 10:29:24 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2081.outbound.protection.outlook.com [40.107.96.81]) by mails.dpdk.org (Postfix) with ESMTP id AC80D4003E for ; Tue, 19 Oct 2021 10:29:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c6UehWDQE9YtG8LIMsdkEst8wANf94DjbTHcQio3dHDWF7eIiDLhirUAfzewT9jjzvEB1Rq1nu8CgmLCkK+YUuvsxpZsQpR9oN60Y0lL7+no8bs7giNPkE05ZKJu+K16v7sKL040kCCVBCWDQ0Kjg1vZjUAmdlLRElgD+cAX4gZYremtDImuCH5yw6zxvWzN/dk1mpDMqgN6akWXOg4kOxxTYgL1vH6c74tQHc36Yx6mtFaPQuzu17g4JVh6RN4v0v+NKi5G7ntVPMpxCV4VPozRd6XXwnxo5O9DQs76GJDldHYZFkcTtQ66d4hl8FqwRyj5AD8nTeLw6PFhSKFkpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Dx2wFUuW4TN+j/mEKqz30oy4A4QMr0gRVA6EMQ2vI+M=; b=Ikjsd1iEwsNhVqSPlQGNrJD4ent1+C4KaWFeyJSnClRKI6gb8K1y/Q6oJrr1gFw+M7aoYAKLaAhJqIjIaFpvTJYNeaMLw/wfzi4k4uwvW2yb1RbxQf+sYz1tM1mzzUkKrEvjZfIjnipRfvpFFfzXwvwHEWgsGESsFmCOBwRhfCP7J5jOgZXejl6crGyVLkjxlLXuHAhhh+DW44dht35l6wJT8YdhhVczWMS3/SpeW4iSQ9CInxgGy9UwFYufNSr6DusFHmPKp1NrQ6m8KIxIJWXsUdWeKHaEj5uutPgg13IvfTu48WQ6qP7QKsAq/9Ls7n4ZIN16d+aDXc1gfUpj8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dx2wFUuW4TN+j/mEKqz30oy4A4QMr0gRVA6EMQ2vI+M=; b=QBokeiAS/HpDbaSClPV5y7pedE9kzny5C8+G4dOdfCF2Hiin8Cv+lupELjnicyHu4b0YyMYge5Dw5AmwgsT+khhATKqawk8AvIHnYtRHRxzyHPoH5lcANtgPH6DGX59xCle+zslqPqL/slSwVQzBYiBbrwq/MTxRbtObTXCtopUihqxSVNgLZaaj9Vv+TOjrpMAb6xX+/BGhRdXbeyJeaKXtWLJoWVP3zDkQOXig7xM0hdo6ukIfHVtuIWKukaGmKGfoQeDXGiyMdvI1VFmlmrMmYPWKaInXnraqieVGM/njY5AMg9fCSdSQY07AVqptFvH6TtRAG4o+x4Bf0kjqsA== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB4060.namprd12.prod.outlook.com (2603:10b6:5:216::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Tue, 19 Oct 2021 08:29:22 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e550:35a2:96e5:657f]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e550:35a2:96e5:657f%4]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 08:29:22 +0000 From: Slava Ovsiienko To: "Xueming(Steven) Li" , "dev@dpdk.org" CC: Lior Margalit , Matan Azrad Thread-Topic: [PATCH v2 7/8] net/mlx5: enable DevX Tx queue creation Thread-Index: AQHXwmUKKPXFC1LPSU28lJG/fhi936vaAfTQ Date: Tue, 19 Oct 2021 08:29:22 +0000 Message-ID: References: <20210927083256.337450-1-xuemingl@nvidia.com> <20211016080732.1781622-1-xuemingl@nvidia.com> <20211016080732.1781622-8-xuemingl@nvidia.com> In-Reply-To: <20211016080732.1781622-8-xuemingl@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5489ea6b-ad59-474d-8eee-08d992da8d75 x-ms-traffictypediagnostic: DM6PR12MB4060: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vW6ZvfYw4++Ctr4U7j7ZFFpSZL42jXdFTeFkHZ+wFlpyftoNlEYB72ZVXC4pBiINoCvXX5d1aty5eohIr6K/a7DklQNKpgNnV2J226Xt6S0I8NdMqd2VBa0mRnQwzphMk4b9Vc6B/I923FpOeWtCMHX5HDzdUMqUUjWSg4tEZG2P1x+JkPG8MQRp+VnipVXu4WjmYC6V3Se5AZ7uioYpJfp3jyMx6TyEp0KX6cfPUDTZKNwHyb3koknhnJegvsq+LhEYZArkZWeZC3TsIw5HGESGOakT/DHiKmMF/sp1Yyy9le/DkZTIiuq9ghlbz8mxKyok3f1UlqVK+uKE7xT00LxCHxH0n5zzT968+ywIURfPE9ZG0svDG9V2e4Z9VOtD83DU41OHB1nWruyVf8FNrKUA8fRhkl6Di067diSA5ptKb98YIvfRLGCeyAo84fOQnDhIlnd/efLsuh0qAUt9zv/70R3oiQCJgv9bAL92aJTOMnTJNqdd3maXFVkhjwYMWJk4MwYIX4SXrBCl5qBI0xPP8ZirFaZFltsb1GP7lZauBUjoxL+bhX+fuY8oJpyrpvK/9LpKXardzBuc0aVPjdjEUj+znE/ijz/lfVh0GfVLBx4p6enBftNj8bX4K4zCROnzfNI8kH8c6SnLiXF18mFS+qL9y4P+2DVxSub6OlwrfyYjFac+vUpJzbSP9UrtrWd63YOF+9jP6+BC+PvN1A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8936002)(508600001)(71200400001)(5660300002)(110136005)(86362001)(52536014)(66556008)(66946007)(66476007)(53546011)(8676002)(64756008)(122000001)(38070700005)(83380400001)(55016002)(2906002)(76116006)(316002)(7696005)(66446008)(54906003)(6506007)(9686003)(38100700002)(4326008)(186003)(107886003)(33656002)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rQxhpls93wXawI2yAQwKCOhxjWJ+E7uok+7PoL/JVlozQ86kDVao9PBflyid?= =?us-ascii?Q?A8dt/uG8Zr9314nc9LgDZw9Vzk+ei2zsVSVAnx3YRRbWg5nxpFMYtJ95VWzR?= =?us-ascii?Q?U82RTy0W8g0S4mPI7W+BUvlbQbnM+XgqewaY0nJYHqFJDSUU/vOu5eZK2M60?= =?us-ascii?Q?PpOmUctE02Xo4Wi4vW1t66E7dqtv+VzG8qThIH3ahWxxGY0ObFx3BJ1oFbcT?= =?us-ascii?Q?llural9gqaTayL8JzNmhiL4kQCnBx9iBgoHlhvf1SBT71pMe8lhBrPAr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ewJc2gDRz73AzkH9el+B/NlG5MF0?= =?us-ascii?Q?RC0HcMDC1N9bqDeoT7ieHHGMEWHVokqO9uXW1C2D9gDTRSAkgm+/XOsFyxCB?= =?us-ascii?Q?4/klwnqyQh8M7XbKBC53xAehmr6PRwIGtxQbt6p06W2WuIBzE4eCQ6V78XP+?= =?us-ascii?Q?ApwoAmr+l1znJNj7HmsqoEJU?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5489ea6b-ad59-474d-8eee-08d992da8d75 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2021 08:29:22.2374 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OzqoCUI3Q2W/xMfGzHNcPueeGwbQrwkdxu8C8FfVkEFZqzA0yXTyub2dzCUPGr1Wi3zlK6SKH4UsGJZoamHDqA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4060 Subject: Re: [dpdk-dev] [PATCH v2 7/8] net/mlx5: enable DevX Tx queue creation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: Xueming(Steven) Li > Sent: Saturday, October 16, 2021 11:08 > To: dev@dpdk.org > Cc: Xueming(Steven) Li ; Slava Ovsiienko > ; Lior Margalit ; Matan > Azrad > Subject: [PATCH v2 7/8] net/mlx5: enable DevX Tx queue creation >=20 > Verbs API does not support Infiniband device port number larger 255 by > design. To support more representors on a single Infiniband device DevX A= PI > should be engaged. >=20 > While creating Send Queue (SQ) object with Verbs API, the PMD assigned IB > device port attribute and kernel created the default miss flows in FDB do= main, > to redirect egress traffic from the queue being created to representor > appropriate peer (wire, HPF, VF or SF). >=20 > With DevX API there is no IB-device port attribute (it is merely kernel o= ne, > DevX operates in PRM terms) and PMD must create default miss flows in FDB > explicitly. PMD did not provide this and using DevX API for E-Switch > configurations was disabled. >=20 > The default miss FDB flow matches E-Switch manager vport (to make sure th= e > source is some representor) and SQn (Send Queue number - device internal > queue index). The root flow table managed by kernel/firmware and it does > not support vport redirect action, we have to split the default miss flow= into > two ones: >=20 > - flow with lowest priority in the root table that matches E-Switch manag= er > vport ID and jump to group 1. > - flow in group 1 that matches E-Switch manager vport ID and SQn and > forwards packet to peer vport >=20 > Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko