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 AF3D2A0524; Sun, 2 Aug 2020 01:13:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 861EC1AFF; Sun, 2 Aug 2020 01:13:08 +0200 (CEST) Received: from m1380.mail.163.com (m1380.mail.163.com [220.181.13.80]) by dpdk.org (Postfix) with ESMTP id 2EA2A23D for ; Sun, 2 Aug 2020 01:13:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=Wpwty dSuyz2xBKHaGUvZBsuSndmbqXT2gxRDxVDfZ4Y=; b=FIyaQk/2aZ3a8e1LML9gJ rV+K/pRAQd1CkuYKUDT7x2f1Ip7n5LWHYk4Eb8G/iZ+h8NGKg0bbvb5IqOgfHm10 uZWZHEZuQu9nubwxySEkZzKTmIdrAzd1PUIxiDAvS2y0Ku89z4ZCGx2hI2fIhktp aIyBJCb/ocVKaXhI1PMkJA= Received: from yang_y_yi$163.com ( [61.48.214.60] ) by ajax-webmail-wmsvr80 (Coremail) ; Sun, 2 Aug 2020 07:12:36 +0800 (CST) X-Originating-IP: [61.48.214.60] Date: Sun, 2 Aug 2020 07:12:36 +0800 (CST) From: yang_y_yi To: "Olivier Matz" Cc: dev@dpdk.org, jiayu.hu@intel.com, thomas@monjalon.net, yangyi01@inspur.com X-Priority: 1 X-Mailer: Coremail Webmail Server Version XT5.0.10 build 20190724(ac680a23) Copyright (c) 2002-2020 www.mailtech.cn 163com In-Reply-To: <20200731151543.GH5869@platinum> References: <20200730120900.108232-1-yang_y_yi@163.com> <20200730120900.108232-3-yang_y_yi@163.com> <20200731151543.GH5869@platinum> X-CM-CTRLDATA: /b/9/WZvb3Rlcl9odG09NDcxNjA6NTY= MIME-Version: 1.0 Message-ID: <2a50e80c.44f.173ac4c6d20.Coremail.yang_y_yi@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: UMGowAAHdTLk9iVfQAhgAA--.23172W X-CM-SenderInfo: 51dqwsp1b1xqqrwthudrp/1tbiMx5zi1Xl5gviQwABso X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case 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" CgpBdCAyMDIwLTA3LTMxIDIzOjE1OjQzLCAiT2xpdmllciBNYXR6IiA8b2xpdmllci5tYXR6QDZ3 aW5kLmNvbT4gd3JvdGU6Cj5IaSwKPgo+T24gVGh1LCBKdWwgMzAsIDIwMjAgYXQgMDg6MDg6NTlQ TSArMDgwMCwgeWFuZ195X3lpQDE2My5jb20gd3JvdGU6Cj4+IEZyb206IFlpIFlhbmcgPHlhbmd5 aTAxQGluc3B1ci5jb20+Cj4+IAo+PiBJbiBHU08gY2FzZSwgc2VnbWVudGVkIG1idWZzIGFyZSBh dHRhY2hlZCB0byBvcmlnaW5hbAo+PiBtYnVmIHdoaWNoIGNhbid0IGJlIGZyZWVkIHdoZW4gaXQg aXMgZXh0ZXJuYWwuIFRoZSBpc3N1ZQo+PiBpcyBmcmVlX2NiIGRvZXNuJ3Qga25vdyBvcmlnaW5h bCBtYnVmIGFuZCBkb2Vzbid0IGZyZWUKPj4gaXQgd2hlbiByZWZjbnQgb2Ygc2hpbmZvIGlzIDAu Cj4+IAo+PiBPcmlnaW5hbCBtYnVmIGNhbiBiZSBmcmVlZCBieSBydGVfcGt0bWJ1Zl9mcmVlIHNl Z21lbnRl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3BrdG1idWZfZnJlZShhcmctPm1idWYpOwoK KyAgICAgICAgICAgICBydGVfZnJlZShhcmcpOwoKIH0KCiAKCiBzdGF0aWMgaW50CgpAQCAtMjE3 Miw4ICsyMTgyLDE0IEBAIHVpbnQxNl90IHJ0ZV92aG9zdF9wb2xsX2VucXVldWVfY29tcGxldGVk KGludCB2aWQsIHVpbnQxNl90IHF1ZXVlX2lkLAoKIAoKICAgICAgICAgICAgICAgIC8qIEluaXRp YWxpemUgc2hpbmZvICovCgogICAgICAgICAgICAgICAgaWYgKHNoaW5mbykgewoKKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgc3RydWN0IHNoaW5mb19hcmcgKmFyZyA9IChzdHJ1Y3Qgc2hp bmZvX2FyZyAqKQoKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IHJ0ZV9tYWxsb2MoTlVMTCwgc2l6ZW9mKHN0cnVjdCBzaGluZm9fYXJnKSwKCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUlRF X0NBQ0hFX0xJTkVfU0laRSk7CgorCgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhcmct PmJ1ZiA9IGJ1ZjsKCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFyZy0+bWJ1ZiA9IHBr dDsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hpbmZvLT5mcmVlX2NiID0gdmly dGlvX2Rldl9leHRidWZfZnJlZTsKCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGlu Zm8tPmZjYl9vcGFxdWUgPSBidWY7CgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGlu Zm8tPmZjYl9vcGFxdWUgPSBhcmc7CgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJ0 ZV9tYnVmX2V4dF9yZWZjbnRfc2V0KHNoaW5mbywgMSk7CgogICAgICAgICAgICAgICAgfSBlbHNl IHsKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hpbmZvID0gcnRlX3BrdG1idWZf ZXh0X3NoaW5mb19pbml0X2hlbHBlcihidWYsICZidWZfbGVuLAoKLS0KCjEuOC4zLjEKCgoKLyoK ICogQWxsb2NhdGUgYSBob3N0IHN1cHBvcnRlZCBwa3RtYnVmLgogKi8Kc3RhdGljIF9fcnRlX2Fs d2F5c19pbmxpbmUgc3RydWN0IHJ0ZV9tYnVmICoKdmlydGlvX2Rldl9wa3RtYnVmX2FsbG9jKHN0 cnVjdCB2aXJ0aW9fbmV0ICpkZXYsIHN0cnVjdCBydGVfbWVtcG9vbCAqbXAsCiAgICAgICAgICAg ICAgICAgICAgICAgICB1aW50MzJfdCBkYXRhX2xlbikKewogICAgICAgIHN0cnVjdCBydGVfbWJ1 ZiAqcGt0ID0gcnRlX3BrdG1idWZfYWxsb2MobXApOwoKICAgICAgICBpZiAodW5saWtlbHkocGt0 ID09IE5VTEwpKSB7CiAgICAgICAgICAgICAgICBWSE9TVF9MT0dfREFUQShFUlIsCiAgICAgICAg ICAgICAgICAgICAgICAgICJGYWlsZWQgdG8gYWxsb2NhdGUgbWVtb3J5IGZvciBtYnVmLlxuIik7 CiAgICAgICAgICAgICAgICByZXR1cm4gTlVMTDsKICAgICAgICB9CgogICAgICAgIGlmIChydGVf cGt0bWJ1Zl90YWlscm9vbShwa3QpID49IGRhdGFfbGVuKQogICAgICAgICAgICAgICAgcmV0dXJu IHBrdDsKCiAgICAgICAgLyogYXR0YWNoIGFuIGV4dGVybmFsIGJ1ZmZlciBpZiBzdXBwb3J0ZWQg Ki8KICAgICAgICBpZiAoZGV2LT5leHRidWYgJiYgIXZpcnRpb19kZXZfZXh0YnVmX2FsbG9jKHBr dCwgZGF0YV9sZW4pKQogICAgICAgICAgICAgICAgcmV0dXJuIHBrdDsKCiAgICAgICAgLyogY2hl Y2sgaWYgY2hhaW5lZCBidWZmZXJzIGFyZSBhbGxvd2VkICovCiAgICAgICAgaWYgKCFkZXYtPmxp bmVhcmJ1ZikKICAgICAgICAgICAgICAgIHJldHVybiBwa3Q7CgogICAgICAgIC8qIERhdGEgZG9l c24ndCBmaXQgaW50byB0aGUgYnVmZmVyIGFuZCB0aGUgaG9zdCBzdXBwb3J0cwogICAgICAgICAq IG9ubHkgbGluZWFyIGJ1ZmZlcnMKICAgICAgICAgKi8KICAgICAgICBydGVfcGt0bWJ1Zl9mcmVl KHBrdCk7CgogICAgICAgIHJldHVybiBOVUxMOwp9CiA=