From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0042.outbound.protection.outlook.com [104.47.2.42]) by dpdk.org (Postfix) with ESMTP id 49A81326C; Wed, 14 Feb 2018 12:23:56 +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; bh=IxQCz+bToY+zO+tuf1Z/n93ZNpLvmKUORk6UNldKQ0A=; b=coLlEeh0RLhcp0qFoN5XApPdJmMiOTMwbzDll/CTaXwrHeU2aQM6YKCIndiVpImgW8HlZacyrHFBARaafL30NXoKzr1IQLqIoANftYKqcvoyg9l4rnB+FG4WoHpWrQEXJgDaVjao15SR2iCJCXIpNToJMN1ttLguwtGfK5aPgu0= Received: from AM0PR0502MB3875.eurprd05.prod.outlook.com (52.133.48.17) by AM0PR0502MB4084.eurprd05.prod.outlook.com (52.133.41.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Wed, 14 Feb 2018 11:23:54 +0000 Received: from AM0PR0502MB3875.eurprd05.prod.outlook.com ([fe80::c146:f27f:8151:5631]) by AM0PR0502MB3875.eurprd05.prod.outlook.com ([fe80::c146:f27f:8151:5631%13]) with mapi id 15.20.0506.016; Wed, 14 Feb 2018 11:23:55 +0000 From: Ophir Munk To: Pascal Mazon , "dev@dpdk.org" CC: Thomas Monjalon , Olga Shern , "stable@dpdk.org" Thread-Topic: [PATCH v2] net/tap: fix promiscuous rules double insersions Thread-Index: AQHTpPl9Bnx4SLqoOk+qCyRSmZoNrqOjl88AgAAeB8A= Date: Wed, 14 Feb 2018 11:23:54 +0000 Message-ID: References: <1518542172-9334-1-git-send-email-ophirmu@mellanox.com> <1518546947-20932-1-git-send-email-ophirmu@mellanox.com> In-Reply-To: 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=ophirmu@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0502MB4084; 6:6otcrQG0YUX9zb0FUhWrkcI2WugvVFiLY4tVbJ9gFCYiw11UoOi34D1AGa/OdcBlGMU3aIASijp60bC00gWyhigVoo07xHUx9/zuiibYgAhMwjvwrB4f1RvPcI82SK3Ab3puHAFEbwZeZGq/wy/dnvhesfNf5y0Fczh1rGzdahGIj4fmolaU2oQP1IkfmXoEpahGsPArGtUaUxTqDoieoRcGxvftIyUkpVWQtpeGB3hD2IdkMkfvKehqPFj34u4cBxFK7klbxbDgBvsfV69TMD86vfBPdot6ckL+290U3vaGxDSwqG+ulk6WddwdJDKdpbxxbtTndGG6q6s/oRL9qLkwZWdSr+dxPlHpKsfG54hGXxNCZquOinEuHkOXDySO; 5:kBr35vkzud52WaPSvAb46/dciGKQT1qDz2lf1DQagJp406myFRzaiZ1UJmmclrwW/R9jf9eps3DAut9aVbJ1wBOMZfCEw3WR1+65UP6lvs5BI4zpDGok/6gMB5d7J/S2S73C6M9MUHtNLM0Zjxe9Xx2sG16kBu9zBiBwo7WwyYM=; 24:WU+vzP89kFXP7dk2CpEwv+Kc1Z8wmbedOA0ad9FHBp/8jDTgv0j9TIKOBSGK8Hy0EaOKz55XJq/LxYevbeEQzvGcPrX7pX8mq470/a8Pc9A=; 7:MmH7qU9jXspPnFCN+e9/FVznxu8J5SYJSlvKNRjYx5KU96ngXgIzLctZuAh9KkylOkeLMFvKUaNHy/tgaj/hD+tAgD0b7VR9pxVyS29XU+nMHSEtdtIEZKFXvbhz9nz97TwypcGsOa0bJyzBqK/q0JbqCH6fICUBU80a3mSO5iWdGTsUn6eBxS3N4OZHoFlj6Lfit0VJ3X2LI13iloosvsVXMKgZI2sgNNAhZOS3Vql466mogrsjUPfJmY/MQe/f x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d381dc34-c913-449a-1a92-08d5739d6eea x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:AM0PR0502MB4084; x-ms-traffictypediagnostic: AM0PR0502MB4084: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231101)(944501161)(6055026)(6041288)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM0PR0502MB4084; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0502MB4084; x-forefront-prvs: 0583A86C08 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(366004)(39860400002)(346002)(396003)(189003)(13464003)(199004)(99286004)(59450400001)(4326008)(8936002)(55016002)(6116002)(3846002)(6436002)(2950100002)(2501003)(81166006)(81156014)(7696005)(25786009)(229853002)(8676002)(3660700001)(66066001)(14454004)(68736007)(110136005)(86362001)(5250100002)(76176011)(186003)(9686003)(316002)(53936002)(102836004)(5660300001)(7736002)(74316002)(2900100001)(105586002)(106356001)(3280700002)(478600001)(54906003)(2906002)(305945005)(53546011)(6246003)(97736004)(6506007)(26005)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB4084; H:AM0PR0502MB3875.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: vg5YLm2kyZIxuME2zOzVQglOZAZKhYBrOM2E+YuuT0TIFwNheAJ5OENyeOZIzQTszcHG+ia+t5kVDFolrzTJxQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: d381dc34-c913-449a-1a92-08d5739d6eea X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2018 11:23:54.9751 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB4084 Subject: Re: [dpdk-stable] [PATCH v2] net/tap: fix promiscuous rules double insersions X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 11:23:56 -0000 UGxlYXNlIHNlZSBpbmxpbmUuDQpJIHdpbGwgc2VuZCB1cGRhdGVkIHYzDQoNCj4gLS0tLS1Pcmln aW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogUGFzY2FsIE1hem9uIFttYWlsdG86cGFzY2FsLm1h em9uQDZ3aW5kLmNvbV0NCj4gU2VudDogV2VkbmVzZGF5LCBGZWJydWFyeSAxNCwgMjAxOCAxMDo1 MSBBTQ0KPiBUbzogT3BoaXIgTXVuayA8b3BoaXJtdUBtZWxsYW5veC5jb20+OyBkZXZAZHBkay5v cmcNCj4gQ2M6IFRob21hcyBNb25qYWxvbiA8dGhvbWFzQG1vbmphbG9uLm5ldD47IE9sZ2EgU2hl cm4NCj4gPG9sZ2FzQG1lbGxhbm94LmNvbT47IHN0YWJsZUBkcGRrLm9yZw0KPiBTdWJqZWN0OiBS ZTogW1BBVENIIHYyXSBuZXQvdGFwOiBmaXggcHJvbWlzY3VvdXMgcnVs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