From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70078.outbound.protection.outlook.com [40.107.7.78]) by dpdk.org (Postfix) with ESMTP id 21C9898 for ; Tue, 24 Jul 2018 23:47:23 +0200 (CEST) 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=UwIK2UoW7El80d0XJOagEc/HwwRwFlJa01Scqt9rGsM=; b=fcnGvWiFdcyCD+qXl2V5QhwWIV9nI8UL70e5f35TmtBMbCqmIpzpWyWCkm/Yn7bS6sHfhJEprfmvc1aPWisou6GydY3P2V28KUaNRZJ8O/4Xiw9OxCcTM1xkVxese0/N3DcoL3d7QkTvMNzNCT+zArly03RCVgEQaOPvOT8KSAU= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2414.eurprd05.prod.outlook.com (10.168.135.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Tue, 24 Jul 2018 21:47:20 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::882c:f01c:dfb2:175]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::882c:f01c:dfb2:175%2]) with mapi id 15.20.0973.022; Tue, 24 Jul 2018 21:47:19 +0000 From: Yongseok Koh To: =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= CC: Shahaf Shuler , "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix possible endless loop when clearing flow flags Thread-Index: AQHUIrLh2+hjWevCVkqTuj8G1tvi+qSd8dUAgAD4jIA= Date: Tue, 24 Jul 2018 21:47:19 +0000 Message-ID: <6FFD0DAF-8C3A-471E-A7B0-47A8478D1702@mellanox.com> References: <20180723182744.1179-1-yskoh@mellanox.com> <20180724065742.xynuw5ddr5pnesju@laranjeiro-vm.dev.6wind.com> In-Reply-To: <20180724065742.xynuw5ddr5pnesju@laranjeiro-vm.dev.6wind.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=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2414; 6:QuSVNiwDZAn/1BHiSvBg+J68pcTN+Lo6AAGN3yU0rIamEfde+nu3ypw0cuqGMNoZeO55NJ9EK9zpCzYK3q1EpFda16fHYG2DLnuTCodBb8FTXlUHnKtk3ed7XwZJW72j7k1q6MN71BLaVpoTegPcojWs8X34pKAzopzJLKmwrmQJqwqP9x2GaSXSfvNN6zojwH2MDAAdagASOThfkhU6fUwW4OSO9scxuvYLKqlPFgAZXN3KHySwhQqP6xC+JJcI6D+n3l413VcbruGL2oOMYonfkTfYGTUv92ffP8OX3s+aPR9u0YJtcJf/b8fBvosxGUECe73oahTSTL9xsyQ81Rsg6W/uP12QJOicdLuhdaQAh2/nEdVUiTBATwYChwNwK/wktFdbjsAiCQC+aHstOq+8U4h6NqwPgKACNSHQnFA0sYHO4KL0cPwckJo5EEEBajek8J1jIVtm5DI0hEPbPg==; 5:Npmvuf6sKxjQvM1WGLZDm5DD+6qr+Ts7LItzFnvYoM0Yrbi1ytuNlAAlNfDfZ27At/hr1XioQno/+isU+V4mM6Kg+SuO7dA+5/y25ugGt+waWFsH8bKhqcjS6cIin8pi7jKxeCaZWKw+eXCWrRZ/+vQv4MeEt5oa2X1RTOqegys=; 7:TEbB5osgvoTdk6mN0Ivs4mnRRwGohZiu3obadand60G48NcdJW2ttugc9DwN4CJ853IGH1L8MpAb9FXRMfukqdk5OjqVSM35qT14wjM9/kC1RinGqoq2Yjn9A4nqxkJb1/XcaL2lQBhJY1t0u0lzM0W/X4q/rxh/k9IkUqsbFhwMfn5LBzu+jC0tilQFGIjfAOFmhKAHE3EfCuL8Jw91Iw1GdunkJbI47JJ5FyyXQJDV69OviKWpobOI6PAGZpxZ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 79c9f5ee-b4de-45f0-3887-08d5f1af079d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2414; x-ms-traffictypediagnostic: VI1PR0501MB2414: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2414; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2414; x-forefront-prvs: 0743E8D0A6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(39860400002)(346002)(376002)(396003)(189003)(199004)(229853002)(6436002)(2900100001)(316002)(6486002)(6506007)(66066001)(54906003)(97736004)(5250100002)(25786009)(11346002)(305945005)(33656002)(6246003)(478600001)(53546011)(486006)(4326008)(6916009)(26005)(106356001)(105586002)(76176011)(36756003)(68736007)(86362001)(81166006)(81156014)(476003)(2616005)(53936002)(102836004)(5660300001)(6512007)(256004)(3846002)(186003)(2906002)(6116002)(8676002)(7736002)(14454004)(99286004)(446003)(8936002)(82746002)(83716003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2414; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 7NneS7dvT12BZfiN+Je21HBrmAMzPU73EaGJSv94iCREdvhBXaaaOW8ImBpzUMp1prrxVLYIAlBzaRqTB6f+wBIYumMiwK/rXNjiZmDNewiDtlvk58H1k27D+wDASv9+5T5ufw6N7VoRr/Erp3b8XpYOov3MJQBQcwFmmBY1kM12Hw5N9JECPvHWoQLFihflG7CR0aDMDoFwFeCjGCdp8wxw7oOkK8IzyhzYj+C8qwHcVqzbN/pENdj1nUKCpK+uipdBW9M85qY+d71mJS3jCTPRsiQqtvaoFQWvmbI2fdXje+ydxg7HwILRxIJZ3OLWkdbOClcxhNbdFanwKjNeC+avEJHK6opKHx+Y8WjV3vk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79c9f5ee-b4de-45f0-3887-08d5f1af079d X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2018 21:47:19.0536 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2414 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix possible endless loop when clearing flow flags 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: Tue, 24 Jul 2018 21:47:23 -0000 DQo+IE9uIEp1bCAyMywgMjAxOCwgYXQgMTE6NTcgUE0sIE7DqWxpbyBMYXJhbmplaXJvIDxuZWxp by5sYXJhbmplaXJvQDZ3a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