Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4619236pja; Thu, 21 Nov 2019 22:58:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzzYs1FGmy1rP4gXQvzfnlURdKTOYuLZUyEYDdHj68P5EPtA02Rp0ZGL0LuLgCmPjkKxzwt X-Received: by 2002:a1c:6745:: with SMTP id b66mr1943335wmc.173.1574405922879; Thu, 21 Nov 2019 22:58:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574405922; cv=pass; d=google.com; s=arc-20160816; b=rmkEbbTIp4roI/q0hRz7nDAXMsdZZi98+QSyLxU/9F7mVFEJq2djPe7PE1lCivnwYz wUpK3FI3EjlP52qKuMOp+q40MEDio2Z9MTEGfC6uHdSs5AomAyaaEcZGAODD2B3v3Ixq BlCbbKwOsgYNzOty8Ii47NeHa9F/1Sebu74LKHY/BJPHanFtMzq8SL7MdTBOKtBNLtdH 401QALfJJEyVRlsD+zy9xuO4k0AJltQQ2FXWZtis3GtuEIgh/Etz7Ea7hA3NgXHXb3ub MeQ4rH+HEwx4QdZeSNGjaBwVAUzKFvtYjkBN7eXidjTJW0zJgdRZsgJe36AnS9O7HWC/ DH5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=JPz062nzyimp2ukwviHrG14bzmP83Q5TsnPYOjfEft8=; b=qXkCLADTpYE6yp6PC0EZerxYxkQKfCxSYehBwOH9XjjutvvB8Vvc66grWan8V4iJ97 1qhRrwJxhCAx2Kf96ZDKMScx5iWIU6j1LKW6wX+0D2C4FsMmRqp8SuKPOMKLLmjCgSxS +vNrjH2y4RRom2SObmgqypcEZTT4bDDPCS2DgtIwOIJTcwdK5qrhjXTR7J4XMaiF/+iA wmPy2QRquibNUNAURMjL63rq4SbajTkDQHXE7RFgg+lu6GEbki114BnWPrRPc8/YWelD /UNH8nJ4iLUFLaARLRX9elCOlEYnfLZtAil52BeiVny8PJvsguq1VwBq6rJ7pOpN0w7n NaXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=fnqN1sU2; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=DO7kwTBi; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o24si4153253edc.342.2019.11.21.22.57.49; Thu, 21 Nov 2019 22:58:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=fnqN1sU2; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=DO7kwTBi; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbfKVG4u (ORCPT + 99 others); Fri, 22 Nov 2019 01:56:50 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:41342 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726248AbfKVG4u (ORCPT ); Fri, 22 Nov 2019 01:56:50 -0500 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.42/8.16.0.42) with SMTP id xAM6qgMB010770; Thu, 21 Nov 2019 22:56:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=JPz062nzyimp2ukwviHrG14bzmP83Q5TsnPYOjfEft8=; b=fnqN1sU2H0FdVIlSsBpNPz1jZz7gZ88JyDsQkrk0qld2gzQz6SGdOW70CZN3TegG0sos hIOO/sZFuwUDg2NpD8nvEfM1t42kf/qtO6n7w2EqSNs7wCLXjqQmj3KJ6Qtj51Hrkg3C jKsp0UFsdQ3pd806N+eY7vYaKjeni9NXgJk= Received: from maileast.thefacebook.com ([163.114.130.16]) by m0001303.ppops.net with ESMTP id 2wdtbk4vp6-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 21 Nov 2019 22:56:31 -0800 Received: from ash-exhub202.TheFacebook.com (2620:10d:c0a8:83::6) by ash-exhub102.TheFacebook.com (2620:10d:c0a8:82::f) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 21 Nov 2019 22:56:29 -0800 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.36.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 21 Nov 2019 22:56:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q0m49OaYMeaW+y6CRRyTcRGMCtlCg2q6ynYq//kVbZxdf2rX2atl3/4s9zl/N09LHYOtUsFJ55uJfOv5NYhh3vAx8C49fOGtrE774gcwMieIjQ/7rgCQ8F3DUZyB9u+ECLx1Cygi5x9EHPsd/3SL6Qq0l+w1Bkz/KL/oqsTm1v+o/ffN1X+7TWW64Qm/E/+PK/IxGVY6+FqV9moimYHIsOvoHvFR3kiLiH5u6Y9wnRcKmAFFzywvuATkkQUs4LS1IGbcDVPpip+D/54qRUoOs9a96mz3HyslTRv4pWuWHBDiqKpB1Tcj8oNMp1s0lxA9KHhqvEyh+tXalbnMGE+NFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JPz062nzyimp2ukwviHrG14bzmP83Q5TsnPYOjfEft8=; b=XzZCE2vCrSRbqWnpokZGQJHcZAARZeubX+hSl5nyW3ofL1Gb7W5CzAFQnXcwKKAmbq4NwnQ9RMPCFTIfeMtiQTML3llDNb17RVc1GoqalNtphpY+TaKkBEl/ugpnzsBAbcLHT/D/zQL43YV1T5ODUGFPguUKQJKRK9ETkmPQmCkXegM+A62dsgzVTt/R4GqHEMakiglYtut9s0vDWkmH/lgrYpN0sgfphsDpOZCMyGlXAUNUUAkOoxk2qqXOoJA0C2Bl2NWFJPBgMPuQ0zJc1nNI7Zwjdq5ALThhiV4QCQyhVstTtnk8V9iDY4zuS490aPzOk+S6hHDFacupKA52tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JPz062nzyimp2ukwviHrG14bzmP83Q5TsnPYOjfEft8=; b=DO7kwTBiSRT6DZculmwdxjLULukQuVohg+vbQBM0wf3ypSF/KSxw5y+Rqid85tDgCxmAb8+IB6pef94Rjd3/2Wb9wyuqeg5bROVumzznRnzU1JFO9vjd1xz+3zsBhys6986+BSsk6NrzKiiG4MoRmttm+hNyc/OHcQcrsGStxmM= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.60.27) by BYAPR15MB3077.namprd15.prod.outlook.com (20.178.239.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Fri, 22 Nov 2019 06:56:28 +0000 Received: from BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::a9f8:a9c0:854c:d680]) by BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::a9f8:a9c0:854c:d680%4]) with mapi id 15.20.2474.019; Fri, 22 Nov 2019 06:56:28 +0000 From: Yonghong Song To: Brian Vazquez CC: Brian Vazquez , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Stanislav Fomichev , Petar Penkov , Willem de Bruijn , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" Subject: Re: [PATCH v2 bpf-next 3/9] bpf: add generic support for update and delete batch ops Thread-Topic: [PATCH v2 bpf-next 3/9] bpf: add generic support for update and delete batch ops Thread-Index: AQHVnw/6zUZCp1egDkKYUdXR4CKbu6eV7O4AgADGWACAABKBgA== Date: Fri, 22 Nov 2019 06:56:28 +0000 Message-ID: References: <20191119193036.92831-1-brianvv@google.com> <20191119193036.92831-4-brianvv@google.com> <47ebff4c-1cb6-c136-b4a8-19dfe47a721f@fb.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR04CA0185.namprd04.prod.outlook.com (2603:10b6:104:5::15) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::42ad] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6dccb108-2105-46f2-76a7-08d76f19193e x-ms-traffictypediagnostic: BYAPR15MB3077: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-forefront-prvs: 02296943FF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(346002)(376002)(39860400002)(366004)(136003)(189003)(199004)(76176011)(54906003)(14454004)(31686004)(86362001)(229853002)(71190400001)(81166006)(305945005)(36756003)(6486002)(71200400001)(478600001)(31696002)(316002)(25786009)(7736002)(6116002)(66446008)(64756008)(7416002)(66946007)(66476007)(66556008)(8936002)(52116002)(2906002)(256004)(446003)(386003)(8676002)(6512007)(14444005)(46003)(6246003)(6436002)(11346002)(5660300002)(6916009)(15650500001)(102836004)(99286004)(81156014)(53546011)(2616005)(186003)(6506007)(4326008)(41533002);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB3077;H:BYAPR15MB3384.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dgviLeQNhGLyMFt881xbPwrE1rOvV10JF8CD7Osb4ISYZ1Eswzxql2vyR3keNyx76sr+NiPK+hJI58jtjBK8k4z3QBoCFDx5lrjbYUA37raXCIVGz7lqdOxCbAdxNwdIUwJXY6I357dP1R0/MXROKu7XfyviOf/wEbNHH7pxHhCBD1xGEyw59b2CIgGpiiplaH+tO0r9GBv9lWgQxCD5a8MgRoSM3tzD7ztNYCRgIan16hwiCR+8Nllg6Q5Qva6ZxPnPx4HznpX1gypqd0ij2a08l95oq10mtsAiDOrssdKIwuiS+HsYcXkV67oJLJUFgZa0TIiPaaAHcG9jhmC73WMK1eGODuyLSDoKKha0ae3srvUc3zhiGzBgDQo9pziF9yfIt0v3MOo42VchzR9cMsQl2WsJ6a7cs3e5syD7haD8FLt84yboS8drvf5keZZh x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6dccb108-2105-46f2-76a7-08d76f19193e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2019 06:56:28.7222 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SMPDauhX8fd5lQHLFmXYEiiifc9wauU4eHfmK8IiWX49NIBGbBYfxQjz89QoifXI X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB3077 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-21_07:2019-11-21,2019-11-21 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 bulkscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 mlxlogscore=999 adultscore=0 spamscore=0 mlxscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911220058 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDExLzIxLzE5IDk6NTAgUE0sIEJyaWFuIFZhenF1ZXogd3JvdGU6DQo+IEFDSyB0byBh bGwgdGhlIG9ic2VydmF0aW9ucywgd2lsbCBmaXggaW4gdGhlIG5leHQgdmVyc2lvbi4gVGhlcmUg YXJlDQo+IGp1c3QgMiB0aGluZ3MgbWlnaHQgYmUgY29ycmVjdCwgUFRBTC4NCj4gDQo+IE9uIFRo dSwgTm92IDIxLCAyMDE5IGF0IDEwOjAwIEFNIFlvbmdob25nIFNvbmcgPHloc0BmYi5jb20+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