Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1109469ybl; Fri, 13 Dec 2019 09:42:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwycv8EdHTLa73jl2Xoy63xurI8+h+K5wKWrM1nCtA/NVgQlJwnuoa7OCPllSSKTn+xL+4n X-Received: by 2002:a05:6830:1d59:: with SMTP id p25mr16400922oth.308.1576258921715; Fri, 13 Dec 2019 09:42:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576258921; cv=pass; d=google.com; s=arc-20160816; b=MXfQfQdRw2ia100qZ4KA5StR+pCh3uuwyamZslLv+qbs8yBrBXqgIF2pmRSsDpBRrd 0D47PjLJa7Zpq4rAEmBpoiYsmnJAhSQyCd1K2FO/n1ntjcfPJLEowPIeOXOzu/mml8nl z/rHEvlQiFv43R5GuvVSGaPHHrLwfkr3PAgXMoK8PDw+CSdM+LPVXesVq5727eG9Rpbu aoKN9E/uWpS6ixs+kChoWjuNWmrJfTVAejPOM/+2/QT5ocHlT5iwdQdZDSTm77B0jjeX 0WFH4xMlBOe9JS5E8XbnHtRCyFz0O3IxJuQLQ4Gf8e4Q8qCJ1e575JHcHPHzS4sAIgvU GjLA== 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=foHw/jZ17Thk/5Nb/bHJxs6it5AUgCx0N2wWxNBYrwA=; b=An8KacwZxpHCZFaEkeDrLCavV60XxFnis1peNlByjT88hjbt+eTLWMUK4vGbuGqNQR oCt3G7mm2T2DvZoKqdN4eFtiWVO04fS5ITC70NnXglXOjBiDelwJXvFtIuV75z/Ah+Vu bWIaatN2cCNo4wH72i/I3cDaKpJr6bdR7Ixlh0RwYbNqRFDk2P7pIf6Mkw2Rt4qITYdl NFEqz422EOd1iP6asfg07TgIG/CD/4U741mcCNtwMGxSiPPbqBQwnpIevhqSFIQJkutB MyRwIGkl0QOO8rzstxah79n96PTcmOiKTZPSgYD6G3UgwTSwA4A9rxzE9H+XXEwYDJLt WWJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=CUz8b4os; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b="k6g/DF1g"; 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 l21si5380805otk.142.2019.12.13.09.41.48; Fri, 13 Dec 2019 09:42:01 -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=CUz8b4os; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b="k6g/DF1g"; 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 S1728549AbfLMRlF (ORCPT + 99 others); Fri, 13 Dec 2019 12:41:05 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:39938 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbfLMRlF (ORCPT ); Fri, 13 Dec 2019 12:41:05 -0500 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xBDHXm61015493; Fri, 13 Dec 2019 09:38:47 -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=foHw/jZ17Thk/5Nb/bHJxs6it5AUgCx0N2wWxNBYrwA=; b=CUz8b4osbmn92AkGvxRCVnsLwnagOL/4YdvatLL8Mz7yhpF1NiSQbX65LGq6Fb2pC0OV h9w9Bmuw7ZC9B0NwZe2sPsXViyKJm3xa9Y8wpfVZi7orgoHwgWX1Fm6LG+KqrhnOPUTa 9Hh5izXDmZdUC8FPKNhbuS0Gw2/j0LRM7Qk= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2wuuxkct3p-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 13 Dec 2019 09:38:47 -0800 Received: from ash-exhub204.TheFacebook.com (2620:10d:c0a8:83::4) 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; Fri, 13 Dec 2019 09:38:42 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.36.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 13 Dec 2019 09:38:42 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IyrNqWOsau1sYjyNQ7d8dZHfv9SOzHo4FpQtGOafPBKh9f/dy5yGNCrYJjXcOg8PcEkMXAiNQe+u72eQE4/Jz9nZOmSmcZieB67V3XoxyfH50W0zEd5ROt7ip59nwfttDPG3CVbA4sY+j5mpq+h1YI2HUJS1eN6xe6RnSiNZw6nj9iuXyk0xsLE18LHySrdMr4iBmjXLOyLGJnoa4A+GbYOX6uESZwE44OvfUx55gBGerEzkX7XSUpcRIi2HGFdZepv18nLiVaV5EZGlrqbwT7WqnESFyxCxaOgNLnIcEftXlrWyx4Ko/J7TxelwyVEhf2ftM9/mQDpDIcb9gMkPjA== 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=foHw/jZ17Thk/5Nb/bHJxs6it5AUgCx0N2wWxNBYrwA=; b=dxcgdmFClHM7b4bVrF+CkAUC7tuHM32nWMT5KNbKVvmdjZjtL7V/qyu3onzRktMiQx02MW10b4erlQCaivAKUEWUfBahAiP6b0jN5xF/OUR1LnUMgnK5JB63MzPBBIn6udX7GfRFYAwWG8GWV940tA+oeUS7k0XvQGs8FVsvRKKXj2X7EFxEJEiiMMn2KciQ3o8e2X0x6/LazOmRIU5vZmKS7hWqIiFW1jEI5Y08xYh4uVRUE4GHCriXvkHVMa5bequ6DVDu3K94/nOg0Pb0r24pLe5NCbaVJrma4dskPmaoyXD2C3thTDuyuwI5tMVw75ifseYbIsmC7SLC7qBm/g== 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=foHw/jZ17Thk/5Nb/bHJxs6it5AUgCx0N2wWxNBYrwA=; b=k6g/DF1gpHdSsbCZIHLNSLUUTl+gu/cqLgYoP7uCqok4UhwxfC25SM63ogo7JZgKrM6IHOp14dQ0hyAihQOfc7vvbsTPCWbchwxc0hFg0OCKVlADWJGfO60udI1Bgs1bu/cZ5UXhXqPi8Xa0mOqpmvYV8tLuo2Igr0Edco72LxA= Received: from DM5PR15MB1675.namprd15.prod.outlook.com (10.175.107.145) by DM5PR15MB1450.namprd15.prod.outlook.com (10.173.224.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.16; Fri, 13 Dec 2019 17:38:42 +0000 Received: from DM5PR15MB1675.namprd15.prod.outlook.com ([fe80::2844:b18d:c296:c23]) by DM5PR15MB1675.namprd15.prod.outlook.com ([fe80::2844:b18d:c296:c23%8]) with mapi id 15.20.2516.018; Fri, 13 Dec 2019 17:38:42 +0000 From: Yonghong Song To: Brian Vazquez , Brian Vazquez , Alexei Starovoitov , "Daniel Borkmann" , "David S . Miller" CC: Stanislav Fomichev , Petar Penkov , Willem de Bruijn , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" Subject: Re: [PATCH v3 bpf-next 03/11] bpf: add generic support for update and delete batch ops Thread-Topic: [PATCH v3 bpf-next 03/11] bpf: add generic support for update and delete batch ops Thread-Index: AQHVsHMo24evxY0kgUqiNs7A+t48tKe4V2iA Date: Fri, 13 Dec 2019 17:38:41 +0000 Message-ID: <12eea246-4ffb-3d54-5df3-2d23b88f5414@fb.com> References: <20191211223344.165549-1-brianvv@google.com> <20191211223344.165549-4-brianvv@google.com> In-Reply-To: <20191211223344.165549-4-brianvv@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR02CA0021.namprd02.prod.outlook.com (2603:10b6:300:4b::31) To DM5PR15MB1675.namprd15.prod.outlook.com (2603:10b6:3:11f::17) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::2:e8f1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9972fcbb-5c3d-453b-9a38-08d77ff34b94 x-ms-traffictypediagnostic: DM5PR15MB1450: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:439; x-forefront-prvs: 0250B840C1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(39860400002)(346002)(136003)(366004)(396003)(189003)(199004)(6486002)(478600001)(15650500001)(86362001)(31696002)(7416002)(71200400001)(54906003)(316002)(2906002)(31686004)(4326008)(6512007)(5660300002)(2616005)(53546011)(66556008)(64756008)(6506007)(8936002)(8676002)(52116002)(66446008)(81156014)(66946007)(36756003)(186003)(110136005)(66476007)(81166006)(41533002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1450;H:DM5PR15MB1675.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: slc79BXa4ajZEivwV54fglT+1Ad3isLtUxfXUCfvbIIMyq3Y+hJGwwzzmGbnWmYABDzvMJx6AwHrU5sTxtst1lW7085aIAaS4BGGfB93CJa/Tj+NV4kjNMBDQlQuvNtV5ZXbb4l35WFL8hE9afUYHYJ5Pce4F36norktCTiReTJGeHlNsOJ12EY7RoMaUo+GQ6eCcT5OZZBfBaArum3bLEhuCbEFnYBDlHqfzz59NLNPuCfQPztlMZKVIVpAHsQ01WmMtPnZt0DH6oartBTd15vUq8aNB8V26jQFVgTCDL7tAgTPLBgYK2GFlESU6q/LUnhL1DmCsl5a30i94D0yiAFBdB8LJxJBvslD6Enu/hyRLj9TzHDyLzOm1WTo703rIKwKGXrOpE8FmXgKmHPLrBEw6dryBX/IJNwh04+3Ubo3piBMr3qXX+bZeFXJCpslWS2UndeJNc9LY7m7iuXz3yTqjps2pnSuhx2RsSmYJ6Y= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <1FDB94FD4881F745BD15F57504330324@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 9972fcbb-5c3d-453b-9a38-08d77ff34b94 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2019 17:38:41.8914 (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: Zu++jGyucSqtK8fVLijXnRYcetwMQv9IQ+UGRL+V5GkrQfmFIIN7pDSSuCkSrBKS X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1450 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-13_05:2019-12-13,2019-12-13 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 adultscore=0 spamscore=0 mlxlogscore=999 phishscore=0 clxscore=1015 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912130139 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDEyLzExLzE5IDI6MzMgUE0sIEJyaWFuIFZhenF1ZXogd3JvdGU6DQo+IFRoaXMgY29t bWl0IGFkZHMgZ2VuZXJpYyBzdXBwb3J0IGZvciB1cGRhdGUgYW5kIGRlbGV0ZSBiYXRjaCBvcHMg dGhhdA0KPiBjYW4gYmUgdXNlZCBmb3IgYWxtb3N0IGFsbCB0aGUgYnBmIG1hcHMuIFRoZXNlIGNv bW1hbmRzIHNoYX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