From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 695C2A034F; Fri, 15 May 2020 03:04:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F1A731D9B9; Fri, 15 May 2020 03:04:36 +0200 (CEST) Received: from huawei.com (szxga02-in.huawei.com [45.249.212.188]) by dpdk.org (Postfix) with ESMTP id 72C1A1D9B6 for ; Fri, 15 May 2020 03:04:35 +0200 (CEST) Received: from DGGEMM401-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 48485F8D384FAE9E511C; Fri, 15 May 2020 09:04:33 +0800 (CST) Received: from dggeme702-chm.china.huawei.com (10.1.199.98) by DGGEMM401-HUB.china.huawei.com (10.3.20.209) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 15 May 2020 09:04:32 +0800 Received: from dggeme752-chm.china.huawei.com (10.3.19.98) by dggeme702-chm.china.huawei.com (10.1.199.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Fri, 15 May 2020 09:04:32 +0800 Received: from dggeme752-chm.china.huawei.com ([10.6.80.76]) by dggeme752-chm.china.huawei.com ([10.6.80.76]) with mapi id 15.01.1913.007; Fri, 15 May 2020 09:04:32 +0800 From: "guohongzhi (A)" To: "dev@dpdk.org" CC: "olivier.matz@6wind.com" , =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , "konstantin.ananyev@intel.com" , "jiayu.hu@intel.com" , "ferruh.yigit@intel.com" , "nicolas.chautru@intel.com" , "cristian.dumitrescu@intel.com" , "Zhoujingbin (Robin, Russell Lab)" , chenchanghu , "Lilijun (Jerry)" , Linhaifeng Thread-Topic: [dpdk-dev] [PATCH] lib/librte_net: fix bug for ipv4 checksumcalculating Thread-Index: AQHWKe8nPzyEZBubSUGpaohfwwtTT6ioVOUQ Date: Fri, 15 May 2020 01:04:32 +0000 Message-ID: References: <20200514012729.23920-1-guohongzhi1@huawei.com> <98CBD80474FA8B44BF855DF32C47DC35C60FC4@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35C60FC4@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.173.251.143] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] lib/librte_net: fix bug for ipv4 checksumcalculating 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" T2ssIGxhdGVyIEkgd2lsbCB3cml0ZSBhIHBhdGNoIHRvIHNvbHZlIHRoZSBwcm9ibGVtIG9mIHRj cGR1bXAgY2hlY2tzdW0NCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IE1vcnRl biBCcsO4cnVwIFttYWlsdG86bWJAc21hcnRzaGFyZXN5c3RlbXMuY29tXSANClNlbnQ6IFRodXJz ZGF5LE1heSAxNCwyMDIwIDIwOjU3DQpUbzogZ3VvaG9uZ3poaSAoQSkgPGd1b2hvbmd6aGkxQGh1 YXdlaS5jb20+OyBkZXZAZHBkay5vcmcNCkNjOiBvbGl2aWVyLm1hdHpANndpbmQuY29tOyBrb25z dGFudGluLmFuYW55ZXZAaW50ZWwuY29tOyBqaWF5dS5odUBpbnRlbC5jb207IGZlcnJ1aC55aWdp dEBpbnRlbC5jb207IG5pY29sYXMuY2hhdXRydUBpbnRlbC5jb207IGNyaXN0aWFuLmR1bWl0cmVz Y3VAaW50ZWwuY29tOyBaaG91amluZ2JpbiAoUm9iaW4sIFJ1c3NlbGwgTGFiKSA8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