Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3603311ybc; Thu, 21 Nov 2019 10:45:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxb1KV1/IQAGNFGshyeqwHu694FSJGe/+qHW4aSEWAphtBroAuuB1npYOQIJHXt2gXFUP/S X-Received: by 2002:a17:906:fad4:: with SMTP id lu20mr15893496ejb.9.1574361910592; Thu, 21 Nov 2019 10:45:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574361910; cv=pass; d=google.com; s=arc-20160816; b=r1yaDqwj1a1GZ4wEL/7Ki//FuvlJzXX8p1YZyE9j2H+TlZT7y67inwceqqK5xIH0GU pIoKBSh4CsnZBcRQvxcvrjq2LmSELXgYyY6PIUNAXtkK+xFadzajuwz7hnlU36HH4cXB VqtlPon8jfPHna6TYxTgkxDa/dgURijLkuM+LQfUDfSVZz4R/ubOTJoxYIdkLajsjmnR 5EljCLlshoHykIhMm9MO3ir7X56j4pPw8prmoWSprXhnta39U7s3+ipx0stvjgY96fQt /2nwlqYpfRuNEiOQ4NVZ0nalg45TFRmsKPDD00riEyYfXyL3678USQ40KGVr13Px3U64 XEag== 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=QTUGhwPE3PG4dWl/gXawzoBH1gn7/lUFtpD9eyHaMWU=; b=ZIddyWt/R6vIO/QZZ4T1//RAQXGMH8nJeNyUOCRlOo5D4hLA+HF6+1g0LvQk+FrfH5 IrQPs3skxYMQO3yv2DGHCn9j03BgTAUnVQaEjAde1CrnBL08IQYY+PjtrIQbt1dXFdGL amIYQuLRNZ8kugfvWJYEb8XubW4TdXE4KOAY7kjshpCvFMQ2UCVpPRVvEmkm4EuYT4OB PDDEtyGPX3dJxS17B/HNgFnwfdxiSbNW+fM9zrNz5yFNbwrpdAWnjTRnw24GV7lRzk81 V95h+/cWBQAuwOFnAn4kg4o0YnuMuLVdsopysdRsHoMnx7rP3SORl+r/HESYOOsI6pem hO3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ZCH6Q1v0; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=FHjOn1wC; 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 v4si2407988ejb.244.2019.11.21.10.44.45; Thu, 21 Nov 2019 10:45:10 -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=ZCH6Q1v0; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=FHjOn1wC; 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 S1726992AbfKUSnk (ORCPT + 99 others); Thu, 21 Nov 2019 13:43:40 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:49976 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfKUSnj (ORCPT ); Thu, 21 Nov 2019 13:43:39 -0500 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xALIeVHd020436; Thu, 21 Nov 2019 10:43:21 -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=QTUGhwPE3PG4dWl/gXawzoBH1gn7/lUFtpD9eyHaMWU=; b=ZCH6Q1v0j29uQwXOd17WWfVc3thVNFFvyMDRUr1Ry9jvIu1b7D0A3Nn/5zF/jABkHEuD 9xZRfwTCK/gl7JHWzSSBVb5s3FlOqqNI4asXhLipuxtYpGtI9GpLH4/aHqqhoEIDJzyU /h0ZcgQa1xpbE2btCXgtlyKgjsOmravjCKs= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2wdxtm0esr-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 21 Nov 2019 10:43:21 -0800 Received: from ash-exhub101.TheFacebook.com (2620:10d:c0a8:82::e) by ash-exhub204.TheFacebook.com (2620:10d:c0a8:83::4) 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 10:43:20 -0800 Received: from NAM02-CY1-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; Thu, 21 Nov 2019 10:43:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f4vNvE6bMSrTcKkDdFO1YlIGjg5Sn3FkJQ8Dbf4O/nlYkydoo52pIzPeZZT12tM1UqfmMA2y4+cx0V1cHKPnc61r5BMVw7UshoLyPp+zQN/B6pz7E6sbbolASVFEYoaqqYusbuhCCoN0xYjp+6S7oymBF44/B5x8d9k+xplRlBm0i8OXNDVYwJnz0qmnTp7yZVTWWFNGuxcabgj1eZkn37NFw/lCTfC2WYqt7ToLKP2gfRA2JMCThh3hTjD65n1g8c4Ktvj/VtPF6dw0EpsvsEtad30YFdUN4X3cY8Grwzr1ZqVH6BJ/j8WaMNrgPwDjGlM/3vbS/7ohHd9N2VI39Q== 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=QTUGhwPE3PG4dWl/gXawzoBH1gn7/lUFtpD9eyHaMWU=; b=QRp7QvRThAJdswU+kU3AjU2UTJv9JGAatSHMldMl21IRzxQCqOyYtS2LDtgDaPgw/VRNk2KIlGQf3JP86OmjEHnK6iv9bICdDnWccjFDqUxdStprAuZxN0QZPCG2qtZ+/YUYXv9iuvzMfB9lcN4QeNdJZbOKbxXu9bXfoH+hCa1ncLjoJXi3k8b7+WcgpwUEFkj9z//4+iAdHJvOtaNAOnLet3jM5KbGtNJgwMknUGmFd85OeNrzOv1WaaV1ba4LvpLIL8i7iAe2Wk4i8PIYpWqzcEup2039WUuxBO5J/ZcXGqdLtVZyisOvAcCHSpomWZd7Um8S7GLZd2p6v8FywQ== 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=QTUGhwPE3PG4dWl/gXawzoBH1gn7/lUFtpD9eyHaMWU=; b=FHjOn1wCoSPGcxpmH7qB+lYo3d4rV7Ug0vy3Krd6q24e2x1s7V4KM4j2EaEuoUVv/UzRcAT2iVleviPWssOMHX7Zvp7STmY14+RtgLk0Bt4Qg2RPA9lYTE+46xoWY1GcmEfB7aQFAo5ydGy7EJbfP/AXMNdBB0XcdTK5ClzS7Nc= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.60.27) by BYAPR15MB2727.namprd15.prod.outlook.com (20.179.158.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Thu, 21 Nov 2019 18:43:19 +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; Thu, 21 Nov 2019 18:43:19 +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 v2 bpf-next 9/9] selftests/bpf: add batch ops testing to array bpf map Thread-Topic: [PATCH v2 bpf-next 9/9] selftests/bpf: add batch ops testing to array bpf map Thread-Index: AQHVnw/0rnKpbCfcfky9UVTXU5Cf8qeV+PIA Date: Thu, 21 Nov 2019 18:43:19 +0000 Message-ID: <4688ba20-0730-7689-9332-aa0dcef5258e@fb.com> References: <20191119193036.92831-1-brianvv@google.com> <20191119193036.92831-10-brianvv@google.com> In-Reply-To: <20191119193036.92831-10-brianvv@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR04CA0194.namprd04.prod.outlook.com (2603:10b6:104:5::24) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::1:b385] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f1be46b8-fff1-4f06-37de-08d76eb2ad7b x-ms-traffictypediagnostic: BYAPR15MB2727: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:241; x-forefront-prvs: 0228DDDDD7 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(346002)(396003)(39860400002)(136003)(199004)(189003)(81166006)(8936002)(6512007)(76176011)(7736002)(305945005)(66446008)(478600001)(66556008)(256004)(6436002)(52116002)(31686004)(7416002)(2906002)(14454004)(64756008)(46003)(8676002)(2616005)(229853002)(86362001)(66946007)(31696002)(446003)(81156014)(6486002)(102836004)(11346002)(53546011)(99286004)(186003)(6506007)(386003)(4326008)(66476007)(25786009)(6246003)(71190400001)(36756003)(5660300002)(316002)(6116002)(54906003)(110136005)(14444005)(71200400001);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB2727;H:BYAPR15MB3384.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: 0qvLGr1lPI48wgp5B6hn9omN9ZDc602+rP5mlDC445UJL3PFf42YCoUwdWrumR2+M4r2qZhc48gQNxbTtFpOea7DfaaEsVFeLS9UWWWyLLSWZJVSR4GYPe2bMv4BrsGq/iVroN71bhnwROy4b9BPl0Pd6fnlbwJTDhnSVTc8GnNMNZ4waU282W84V3L1GlW7lj/xtQQBZkcLhSGc1QAWvX0aNLHYrM+zz98nNaEBrP0MW8lMdVWvJTAUmZMf+IaIELJYlhaHtqyauWJt23wyghnblzpvHeNMEgTUEHbwvxVgWtWgN2pkmexNCye4O4ldfOs6hlfwAAUbHV2/o50iscPxMV4uv7z/VNN808XLgRzTJ0bk3ikFZL8pNdWHvZZJyUM4JKQNqwSD6SDqzwni7IqW52uRWpRsyyx/RU5bl/AYgL2HkKYjLv5ezHQT93Mi x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <4B7E9C96220BCE4F87ABB45694F935A9@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f1be46b8-fff1-4f06-37de-08d76eb2ad7b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2019 18:43:19.0871 (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: qm1vWQcAMO4819c5x6jc+v6tR1FQOl5L2G6+JuHoMZ8EUYNFi03i4QtM2N2LzHLZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2727 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-21_05:2019-11-21,2019-11-21 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 spamscore=0 mlxscore=0 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911210157 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDExLzE5LzE5IDExOjMwIEFNLCBCcmlhbiBWYXpxdWV6IHdyb3RlOg0KPiBUZXN0ZWQg YnBmX21hcF9sb29rdXBfYmF0Y2goKSBhbmQgYnBmX21hcF91cGRhdGVfYmF0Y2goKQ0KPiBmdW5j dGlvbmFsaXR5Lg0KPiANCj4gICAgJCAuL3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