From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40059.outbound.protection.outlook.com [40.107.4.59]) by dpdk.org (Postfix) with ESMTP id 24C0D29AC; Thu, 24 Jan 2019 12:16:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fd+zqRODtTk/66tBwktwcieyZGqVQ/l9hMSDIUBdz3g=; b=nT234PSsWhgVP8GirvUP1G/331Y9/YX3/VXPFfVHxt0R9ltvDqpO/dbZpdI1EeEEDNHPAKs4/MolXBF6AaC5b36ZjBevUstPvHhXNFWX0s/UsnZTRHCO9i76qFe3tnVlTTviRDZnIoQ9OKE6yH25rGsBrPBegHBzleTUt8CuYu4= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.47.29) by AM0PR0502MB3971.eurprd05.prod.outlook.com (52.133.40.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.26; Thu, 24 Jan 2019 11:16:01 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::3c5d:79ff:4933:c7ea]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::3c5d:79ff:4933:c7ea%6]) with mapi id 15.20.1558.016; Thu, 24 Jan 2019 11:16:00 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix tc rule handle assignment Thread-Index: AQHUskrZQEQnXCg2rU+IjnyJBXWUUKW+R6sQ Date: Thu, 24 Jan 2019 11:16:00 +0000 Message-ID: References: <1548158746-9885-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1548158746-9885-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0502MB3971; 6:CpWvr/hB9AlkvA/nfgr1OUtEoKlftycuqxKC/d8K38baODyBGSkhwTFN8GIjB6kVvdALW80Phjs3V6JOEzABJfWu249U5wS4QnhCANqhMU8xrZ5OZCnEaWsp5jz+pDsUpGdKF3KwMgYxYa/ueg3f9pqnd3BNkgGq8LoBuhuN2wyq8NmYyCi7yv9AnwOESv7WWm6FNyVlqkWeppITs4dEY59dZwO+8+66RHN+nuemzT6X78QwyX2jh9XfoXNkO75f5SuZ1gWjdfvvd79epdweah5uHYOhVpSdAvpIi2uYBag56UVub0/SKAeEgbJpJvtuFWCZN3g9lQE35DGU6ftkx1dxvJRtXUuj3BjQX1010NKQOXyl6HOVHIVlKGvAKu4+PBFGExG2fboVAG8OMSQ7ULByyhgLQDCUo4hKZirpbR5Ut6IEwjczllaYv9TNJeumMrQTOqE4fH1gkspZfdR8bg==; 5:dh7Dr9KURnN/uUNtUjiso7lwUWI6m4fPbeOLfcg7NHZFt8dfnagB7pgAOkwdvcrXShiGG+NtC997phTNr11oWs2q3A4RQAEaQw+xM6g2qwqfESZgvO1rBLNQD/xsDGqXqksPfhK231ODEZ727h8WLE2LoiQTp9xBVadvEAkKzHoIF4guGw/XVtQ1BzRf3naaJvTpC5ODJUeHm6sSKM2M1g==; 7:hhxethqNHixUkKlu/PX9FD1fkAvdBr8F+HYyoftUqDOLOazzABcmg6AJbPIbAOOpTMWMZlDKOmOCdmaAeCEpu2ng2CRi3WPYV1cZnAbV17P9J5NqDppNR13Nf31arkW/j1vkQWJ1pQIK77YTfS98Mw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 62ecd684-0837-435b-088e-08d681ed5273 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB3971; x-ms-traffictypediagnostic: AM0PR0502MB3971: x-microsoft-antispam-prvs: x-forefront-prvs: 0927AA37C7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(396003)(136003)(366004)(376002)(199004)(189003)(102836004)(71190400001)(86362001)(71200400001)(6506007)(110136005)(106356001)(4326008)(6116002)(450100002)(25786009)(3846002)(14454004)(478600001)(53936002)(316002)(105586002)(33656002)(446003)(476003)(11346002)(2501003)(66066001)(26005)(9686003)(186003)(6246003)(81156014)(81166006)(256004)(55016002)(7736002)(305945005)(74316002)(8936002)(229853002)(99286004)(2906002)(76176011)(68736007)(6436002)(486006)(7696005)(97736004)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3971; H:AM0PR0502MB3795.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 27azixhWf2U8znmbZy7Ycc+TIFJmL10Zuxw6fT3FQdYg5hvXxy+se0KEL+w/Jf7XJRHNCX6T9wH/vEbi8uIcisOIf9jR8GKW+SviyjLWchckYN9/NB0tAbPrwRXZrjcseNO1qmqgO5n7cCnlCgkeUnB+ukrWmVj1N+DqFbYdChNi8fN6PeGsKc1dT62Gjp2TMKqwa7CDOphg/i3ojA8bcJfVCkHLMD3dsYKq2gZE3emQy9kA36PAzNxNZRjDwiZIaNpLIRKozp9vKhBI5VvjGrcCzIDNck7P8BeFjIb6W9PFM1GaqgGnetBEUjoKdhl1gDoWo0G5WEhvfrh6pqOSMORNs7jLQo8eoacyrE3i9vXRtRP2g/iVC4zt6Wn/WjsioRPPJ60ygaZrLHbc807KAqoC0ulf3XslE7e7LdNR0Y4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62ecd684-0837-435b-088e-08d681ed5273 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2019 11:16:00.8575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3971 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix tc rule handle assignment 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: Thu, 24 Jan 2019 11:16:02 -0000 Tuesday, January 22, 2019 2:06 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH] net/mlx5: fix tc rule handle assignment >=20 > When tc rule is created via Netlink message application can provide the > unique rule value which can be accepted by the kernel. Than rule is manag= ed > with this assigned handle. It was found that kernel can reject the propos= ed > handle and assign its own handle value, the rule control is lost, because > application uses its initially prorosed rule handle and knows nothing abo= ut > handle been repleced. >=20 > The kernel can assign handle automatically, the application can get the > assigned handle value by specifying NLM_F_ECHO flag in Netlink message > when rule is being created. The kernel sends back the full descriptor of = rule > and handle can be retrieved from and stored by application for further ru= le > management. >=20 > Fixes: 57123c00c1b8 ("net/mlx5: add Linux TC flower driver for E-Switch > flow") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.