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 ED2BC43E89; Wed, 17 Apr 2024 00:21:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 701BA402D6; Wed, 17 Apr 2024 00:21:31 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 23F36402BA for ; Wed, 17 Apr 2024 00:21:29 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id F02AF2067B; Wed, 17 Apr 2024 00:21:28 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [DPDK/ethdev Bug 1416] net/af_packet: tx_burst() can modify packets Date: Wed, 17 Apr 2024 00:21:24 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F3AD@smartserver.smartshare.dk> In-Reply-To: <20240416130910.22d1013f@hermes.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [DPDK/ethdev Bug 1416] net/af_packet: tx_burst() can modify packets Thread-Index: AdqQOfVt/pRGmutxS0ebz1zpj3Ay6wADEniQ References: <20240416083846.08e8dcad@hermes.local><2b4a3bac389141bbae7a2d0ec31df5c6@huawei.com><98CBD80474FA8B44BF855DF32C47DC35E9F3A9@smartserver.smartshare.dk><98CBD80474FA8B44BF855DF32C47DC35E9F3AA@smartserver.smartshare.dk> <20240416130910.22d1013f@hermes.local> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Stephen Hemminger" , "Konstantin Ananyev" , "John W. Linville" Cc: 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 K1RPOiBKb2huIFcuIExpbnZpbGxlLCBBRl9QQUNLRVQgbWFpbnRhaW5lcg0KDQo+ID4gPiA+ID4g PiA+IHN0YXRpYyB1aW50MTZfdA0KPiA+ID4gPiA+ID4gPiBldGhfYWZfcGFja2V0X3R4KHZvaWQg KnF1ZXVlLCBzdHJ1Y3QgcnRlX21idWYgKipidWZzLA0KPiB1aW50MTZfdA0KPiA+ID4gPiA+IG5i X3BrdHMpDQo+ID4gPiA+ID4gPiA+IHsNCj4gPiA+ID4gPiA+ID4gICAgICAgICAuLi4NCj4gPiA+ ID4gPiA+ID4gICAgICAgICBmb3IgKGkgPSAwOyBpIDwgbmJfcGt0czsgaSsrKSB7DQo+ID4gPiA+ ID4gPiA+ICAgICAgICAgICAgICAgICBtYnVmID0gKmJ1ZnMrKzsNCj4gPiA+ID4gPiA+ID4NCj4g PiA+ID4gPiA+ID4gICAgICAgICAgICAgICAgIC4uLg0KPiA+ID4gPiA+ID4gPg0KPiA+ID4gPiA+ ID4gPiAgICAgICAgICAgICAgICAgLyogaW5zZXJ0IHZsYW4gaW5mbyBpZiBuZWNlc3NhcnkgKi8N Cj4gPiA+ID4gPiA+ID4gICAgICAgICAgICAgICAgIGlmIChtYnVmLT5vbF9mbGFncyAmIFJURV9N QlVGX0ZfVFhfVkxBTikgew0KPiA+ID4gPiA+ID4gPiAgICAgICAgICAgICAgICAgICAgICAgICBp ZiAocnRlX3ZsYW5faW5zZXJ0KCZtYnVmKSkgew0KPiA+ID4gPiA+ID4gPiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIHJ0ZV9wa3RtYnVmX2ZyZWUobWJ1Zik7DQo+ID4gPiA+ID4gPiA+ ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7DQo+ID4gPiA+ID4gPiA+ D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