Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1181251ybl; Fri, 13 Dec 2019 10:59:55 -0800 (PST) X-Google-Smtp-Source: APXvYqw+MPfrKIn838AQWPr1yHVYZgNILkJXxaz1D9h6rYpbBR5jbHjkHFAT+f4HZxAwg6E5yvBa X-Received: by 2002:a05:6830:4d9:: with SMTP id s25mr16306883otd.171.1576263595864; Fri, 13 Dec 2019 10:59:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576263595; cv=pass; d=google.com; s=arc-20160816; b=Kox8qfYJj62Owk8ODmcG5XViu+8PyFy9Nq4Keh69BbcnM6fWjBFLvK0AgU6oLj8wJI 9UTDhzlONcwjJ19FpedspLp66qYxVXDHbnuHFi4zWkTZn1fAIdrYrdrkXBrJNRWhBpLa Zkf80GaCwcYHMCcnpBHs89fv8rw4ajgIQeGU3RCWKKWogng7prKUcfv4VqKRwoVMEtAY Rx3gyjoD+Pyl8dzSkeyfQbeH8OolUGA78KbThGCZl9T/KiYgNNN01v/dyzLgh/Z3sdSM 08A/hFc6FFxQgH222sTeB61ZFEGVQd6PNkpBUcS82v7HqSeAQAy1UBZKeXyNNkPPH3nN kSSw== 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=Kx6MqbG6kl+atUNNQbwoiDYmpXrpG8746xcS8N3lV5I=; b=LKV2fJ+3Vt5EHugLVZXFc1EwcfN/5bQ9V/Zw+/EHWgT/3v1qUwYJCaC+LxYSbZJoZA 9QHj8QDnHTq3rAXHrMS4hvPy/kT05OvxNP8qiu6EfbbSjh4kA6H4RBKykDtN+KTwL9mv FLfblbJZ0HFcegH20hxXC55CQA+uk3S/aS8kwOnJoZrrVuDWYQZsb47LyWxByOk9CtSc qS8UWQZxtHbb612YLD7yovu1bUHEa1jHFppSbYw36W4uEfPFnNChi0tG4dPs9K3Wx1N5 +maBNz/OBnZXyEpn9mLecxtS5qi0nrpMGQLh5pTFQecgwkhd+FywcsYoU0dVq96juoat 9uGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=aaQkWNMY; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=CXEZySRl; 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 x21si5272553oif.250.2019.12.13.10.59.43; Fri, 13 Dec 2019 10:59:55 -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=aaQkWNMY; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=CXEZySRl; 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 S1728702AbfLMS67 (ORCPT + 99 others); Fri, 13 Dec 2019 13:58:59 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:38948 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728473AbfLMS67 (ORCPT ); Fri, 13 Dec 2019 13:58:59 -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 xBDIq1ap025606; Fri, 13 Dec 2019 10:58:39 -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=Kx6MqbG6kl+atUNNQbwoiDYmpXrpG8746xcS8N3lV5I=; b=aaQkWNMY8iVcOLR9SPFAKtRZIOwE7ka2jkE+kG6NPrSZEHfiXf9fqXvnEHb67WFlrRP7 fl+B+266bqVnZ1cWm+C2ZsbmFTdOLPlUQhNU4Nd1FkGvfLBFyk8tr+jeeppEMTJ4tiC/ Sg7daR5e9q9sG4XTLs7wrj9YkRXJIMTNSUc= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2wuuxkd4vm-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 13 Dec 2019 10:58:39 -0800 Received: from ash-exhub101.TheFacebook.com (2620:10d:c0a8:82::e) by ash-exhub201.TheFacebook.com (2620:10d:c0a8:83::7) 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 10:58:38 -0800 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.173) 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 10:58:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dz40aJPX9gCdReFRku80GE+sdBJrSSzdHGpDnpvlbDNWufIlWo3btfMDrihpLBlRA9OuLLK4Dly2YWzDdHb1XncYCahvhGKTI3pK/914Mk3fOJXgt6YtC9+ksVo3vKUSUlZj5NJ5yYknmiAgesY6BP2d+YXH5eqmyhUBHe7JHiZOcx2m5b2lS65j4fXwP6rvA7mQ1Jx1KBtBxTRAp+S3NMiU79xFLA68noMOUEH81tkGZ88LeIoxgOJU3JArx4XuPxsD2dR/1L0LGK5JMusQXA8zQ/p6Hup/DnUJPX2DJgyBZQ9k1o60Z/CaPWor8U6FzlecEz83QqSepbLR7CBJIQ== 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=Kx6MqbG6kl+atUNNQbwoiDYmpXrpG8746xcS8N3lV5I=; b=ZbW6c6ir+C/STHdf9SkxClNkKMFLBnp9NOCZtG4qpERUf/IRgY0JICiwhH9jR+Nibbn658Om7IYc7xwqTCK4RXyMF7XI9+4AqDDYHVAkMdJcmAHtPcop2b5WhIQX8YF4qQdgYArnx18aD84ryKB1+A91bEGcqzg1HJixhT6gR0Yz6jdr7DEijxOYOUeIWjOD5ZODao1e8f+PlWJTRjET6C39JAzPUrXzUek1iW76xNwwJiq1hmwvEt64wLHkrPLROP1KLts96cOAwR67NskrK/piQcIOHUpBRhJ7pqx/3SlKUUDsCHeMFG6Aa5hY1+rYWiZ6eIWMqR8apPiDOnlncg== 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=Kx6MqbG6kl+atUNNQbwoiDYmpXrpG8746xcS8N3lV5I=; b=CXEZySRlxhF6iWe8ebcDiU7MCiIuC22VRCGJUh0WGkbV2iRigkARn4VLn819O/jUKnyai0UefrLyQwhf+kVuLZAN1B28al8c4UhEljNwuas6kEmlt52aG8pADKQdWKxPaip3d6IqsRQA0ImoZ36rkezAizmY8eZuA2xO4HK+/30= Received: from DM5PR15MB1675.namprd15.prod.outlook.com (10.175.107.145) by DM5PR15MB1546.namprd15.prod.outlook.com (10.173.223.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.18; Fri, 13 Dec 2019 18:58:36 +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 18:58:36 +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 06/11] bpf: add batch ops to all htab bpf map Thread-Topic: [PATCH v3 bpf-next 06/11] bpf: add batch ops to all htab bpf map Thread-Index: AQHVsHMuYMDKZmq21kWyUxx3YJSoMae4bbuA Date: Fri, 13 Dec 2019 18:58:36 +0000 Message-ID: References: <20191211223344.165549-1-brianvv@google.com> <20191211223344.165549-7-brianvv@google.com> In-Reply-To: <20191211223344.165549-7-brianvv@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR14CA0053.namprd14.prod.outlook.com (2603:10b6:300:81::15) 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: e31cf9bd-53c6-461f-daf0-08d77ffe7576 x-ms-traffictypediagnostic: DM5PR15MB1546: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2043; x-forefront-prvs: 0250B840C1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(366004)(136003)(376002)(346002)(189003)(199004)(52116002)(478600001)(966005)(4326008)(6506007)(53546011)(186003)(5660300002)(316002)(8936002)(36756003)(54906003)(86362001)(31696002)(110136005)(8676002)(81156014)(66946007)(64756008)(2616005)(71200400001)(66556008)(66476007)(66446008)(7416002)(81166006)(6486002)(31686004)(6512007)(2906002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1546;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: ddtfvaFMULg+iEWRaKBi60gmM+UNvsX2ZJGs/+Usq1dgTFxKJJmF2M8rjcpZPE5gbarJRZpOnGXNlT/H+BTjvnlnY80pNW2mdFdvAEekiex06/uiSG78BI/4fl99lUBrIxPutrE3QEk6yb+sfHlBeSBmav5/c6okApGhS/gbynbSowwM+JROiOWgmDl/fD73lq6GGdgjk0PSvHqRRzs0m0ccfj5yGB3UUbEcyx1854pXZTwwvd82p4bGuTteibJxnpciR2TAEnPDLVkJFfpecRbp3mtsq/P0F81Nq11AlQV0oMS5g/oL6u3Xr0QNyAW9L6rjt0ZJP+nFsNiH3GbaxxklZBWfz0cCwalJxW7RgOpqbGLWFw0MXK12Zu1tsF8PGaInfF0pcNkhTk/E/hTJLPAlfzzc75xuxAxp/8slQYvdWNMSziQsHtReoHKsFIOkAJpIzyOxQueC3bLxv2Fev9iVaREwsgOdU+2sZ5KqvDM= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <33DAEE067798FD42979FA2D430DA6EE6@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: e31cf9bd-53c6-461f-daf0-08d77ffe7576 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2019 18:58:36.6398 (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: cABoCw8CuGVzTtkCrNYph6kmzc7rR4WTxqba3gS7YI55fIXoElBwSxnL2k1drdDk X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1546 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-1912130145 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDEyLzExLzE5IDI6MzMgUE0sIEJyaWFuIFZhenF1ZXogd3JvdGU6DQo+IEZyb206IFlv bmdob25nIFNvbmcgPHloc0BmYi5jb20+DQo+IA0KPiBodGFiIGNhbid0IHVzZSBnZW5lcmljIGJh dGNoIHN1cHBvcnQgZHVlIHNvbWUgcHJvYmxlbWF0aWMgYmVoYXZpb3Vycw0KPiBpbmhlcmVudCB0 byB0aGUgZGF0YSBzdHJ1Y3RyZSwgaS5lLiB3aGlsZSBpdGVyYXRpbmcgdGhlIGJwZiBtYXAgIG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