Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1162911ybl; Fri, 13 Dec 2019 10:37:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxljE4zgh/a+DjIhKkWnzCu15xDDScm8rVv2MDrYyibj2qbeibnYe8RFxWPGWmIV1YoeeBR X-Received: by 2002:a9d:2904:: with SMTP id d4mr15433419otb.214.1576262267389; Fri, 13 Dec 2019 10:37:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576262267; cv=pass; d=google.com; s=arc-20160816; b=xgRfCnwDfWpIjVfJY27L43hCeNMt84gQ4i5V3C83gJswpaRWyvA8sEKy6HjpLOUbNV RulVBaItNzc/mEZFN8VbCK040s8/ozEZdLnNVPzarxfq/dcFjAmvl7NFDeO7NGlIDXco FD2h0sO4aDbjpXdJfKG4JuSkRnb2Mmor9UncPLMna2XBVONGTK6S9aTtWr9ywLP4EP88 xmtkfjrQOjNdZVzpgwvjmouk+WBqiSIi4BMYYCDw2bT+dIzOfcUbxl5BSBawbNNskoBF wE5OSdm6jkAKtO3mtlyh9MOAqn0Sa9FJSZwKW6Zdwd+w7Wzqpgpf9/JRlsbYOiAOQUZm 0fWQ== 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=yv04d3FgGZl4tSNemlPl4/bKg/HnEUPqW5Fac6/oiXE=; b=vz27PM6t7fCPkrey/Q3h0eSAU58rqPnwNRYMDPSqKZxsAl75sENVT1+du3y9Us0bn3 F/WR8iUU83tQ609QOvaKmYzIfrCN6mCAfj3ANzT/3g8fadnwDhuTIgfUMT+A7wkKMC+o lziJIER9Ac69j774OFlYyjcvvkVb4YGr3a8L0lMfhAzgxE4Z9aV55J9wVc1w+UUjD76r Zze6lqMdeM3znfcBPs6O07XBBtIQOQeuRer7CpEw1d9twXRk8RRdmhyAofFG07SWujnp VVw1poDJXZvOfaJTug9/D7lWbLoRdqsMSeKUprr73XGu8VecxNXIQ/kspgFKP7fY6We3 2Nxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=GKY4whD9; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=eg4fXVbU; 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 k1si5316251oic.245.2019.12.13.10.37.34; Fri, 13 Dec 2019 10:37:47 -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=GKY4whD9; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=eg4fXVbU; 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 S1728866AbfLMSgq (ORCPT + 99 others); Fri, 13 Dec 2019 13:36:46 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:31398 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728845AbfLMSgo (ORCPT ); Fri, 13 Dec 2019 13:36:44 -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 xBDILSxI017801; Fri, 13 Dec 2019 10:34:26 -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=yv04d3FgGZl4tSNemlPl4/bKg/HnEUPqW5Fac6/oiXE=; b=GKY4whD9jT0lj7MmjW6Xsv7utxIBnYIevqKhJIF6K4gcmJ/oNNxoEfOuIe9AU09SUYoJ LLLc4x6Bsl4TNWmnZdTWP3afo3HzS3R/x/udbElJDS+3eF3utC5hdJFx1gPqVLR9YMr5 NxGYd64q/7utMSAogN0LUevwl/bTVH9JSBY= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2wusrmwvee-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 13 Dec 2019 10:34:26 -0800 Received: from ash-exopmbx201.TheFacebook.com (2620:10d:c0a8:83::8) by ash-exhub104.TheFacebook.com (2620:10d:c0a8:82::d) 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:34:23 -0800 Received: from ash-exhub201.TheFacebook.com (2620:10d:c0a8:83::7) by ash-exopmbx201.TheFacebook.com (2620:10d:c0a8:83::8) 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:34:23 -0800 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.36.101) 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:34:23 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RKxIVSwzS909n0IfUG/J01BB3joJQi/ceRCNQrQSXaZXpHc6pQhs6DvJxENoHjQYsdOwPN+2BpgAS8c5UajGG8HjfFR7/oVVwsNEE2tGMMpakdMgW+dmMsoA5yGOQYERzoWfN3qa/MAltzz+FxmoEwIuahxyZZJoecn6UlPJYP3reFwDifv45Bb52gHSMdGhEbnd1xjD7HYdMucbhKNPARxPWr5Nrhl0wT0BBMXiUG1vSfutafiO/zLqRH/44EzGC5Eu7iVRNt+83jHtW5rFYTeJeWeBcLrLwbvd9Q0hhQUKlgJJ08TaE+xegKtDmdHkWvCud/roo68KmFZVaLN0Ag== 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=yv04d3FgGZl4tSNemlPl4/bKg/HnEUPqW5Fac6/oiXE=; b=hvruh2vRUgCQE+6QJJTMbVZA+IvvSY2T0hUuT4oE8xrdmvW05zazRXfNMmXR+j88i+SFzvt835Ib32ZYG0xeXLrOAHCh9qlIF7JNkHV9MMHsqZ7qMpoOUoyKV7JAxF7+pRgzFtuJBXxZlswNsyCcXO2u5Oy94o6mJu/UpkigvXGyC6R8mYZfPnsA6a5cfZaztBz4bwRozPTMPuME7MLxVMFIcpnCSAH4ZF7mqmBK+0dvGvPOMFI104cBcPBbXML/JfTvsn/6ipF1UT9T760+OOhT8pR3Jcei8OAozlzJYALc5VN8YsotL64g3McHX32NCTVCDf6vhqvXlbxxl79fYA== 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=yv04d3FgGZl4tSNemlPl4/bKg/HnEUPqW5Fac6/oiXE=; b=eg4fXVbUzMM+0J5jkaXLJ7zPOMXOb6ajDuH4ybJ0QOgHeei2UtnomhE/loPYeO4xc/dMrXB9MvJthbIpaQJecjn91rsfGMaaBQcyhoXtNJf4IV1H1cb8Fj31Pi86DzBgX7PFR7vci0VQx7h5UJEANdhZDZMnUm0Gc6k1pQoioPQ= Received: from DM5PR15MB1675.namprd15.prod.outlook.com (10.175.107.145) by DM5PR15MB1564.namprd15.prod.outlook.com (10.173.224.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.13; Fri, 13 Dec 2019 18:34:22 +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:34:22 +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 09/11] selftests/bpf: add batch ops testing for htab and htab_percpu map Thread-Topic: [PATCH v3 bpf-next 09/11] selftests/bpf: add batch ops testing for htab and htab_percpu map Thread-Index: AQHVsHM7yfbqfNzkC0GsbvFzTjuF76e4ZvaA Date: Fri, 13 Dec 2019 18:34:22 +0000 Message-ID: <051f7239-a53e-0683-a2df-5fa66912128c@fb.com> References: <20191211223344.165549-1-brianvv@google.com> <20191211223344.165549-10-brianvv@google.com> In-Reply-To: <20191211223344.165549-10-brianvv@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR21CA0042.namprd21.prod.outlook.com (2603:10b6:300:129::28) 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: a5fda425-7fa4-4b27-6495-08d77ffb1287 x-ms-traffictypediagnostic: DM5PR15MB1564: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:361; x-forefront-prvs: 0250B840C1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(136003)(366004)(376002)(396003)(199004)(189003)(186003)(8676002)(53546011)(4326008)(71200400001)(5660300002)(36756003)(6506007)(31686004)(2616005)(110136005)(316002)(54906003)(52116002)(31696002)(66446008)(6486002)(66476007)(86362001)(2906002)(66556008)(81156014)(66946007)(81166006)(8936002)(6512007)(7416002)(64756008)(478600001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1564;H:DM5PR15MB1675.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: wc9xkXwJVSqZnsod1AaSSSb7BB7tpmLU+gUFGIzd41jPuFeLR5EN3akmU5yth6Dq/KbD04xqR65JPlNWNVOnrVHs6ngr/6sl3aLPIeAKZawbbXrHV4HDPCmK0if6FvmvAx5KVNxbdaTf/yz6SLKleRUGttMNBjGc1GIddQnSW9c5bnC39MH5glWNIirl6oJ7aYcKlDRu+JS8rO8kV7umE8w4HKDwMnZMmT6qNS9KrzKx+ph+qA3pWZPqn9/jznZiGBjEXdz9sTZMuXxkoMwFUfOwVKE7lZ3MqQ5vJVyp8bzlXsfQxdS/7CRLXr5J2+pt3ukm33vyVA4DMqDi8cFhoTXKuvSX2e0T16s3UQwpS+YHt9Lv69rtA1mtP3QdSiEXMQ433VIxlFtmH6xsPVLHmYrVd/uLzWL8SyzY8YR0aVSbtisY353O26fvfoWCUAu0 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: a5fda425-7fa4-4b27-6495-08d77ffb1287 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2019 18:34:22.1925 (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: xLjLXZ5H92DfTJRX+fzlTJqHQV1iJOu3bQam5Zip1jj/UcKqmKJUlppbpEQWIZko X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1564 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 malwarescore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912130143 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+IA0KPiBUZXN0ZWQgYnBmX21hcF9sb29rdXBfYmF0 Y2goKSwgYnBmX21hcF9sb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