Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5885101ybl; Tue, 14 Jan 2020 17:04:55 -0800 (PST) X-Google-Smtp-Source: APXvYqz4xbj4wlpqDTQnaPEhbDH60AsxO3i+vnb4W9syS2GzQOZapKAblGXfjwwJUqUiDJJb7BAa X-Received: by 2002:a05:6830:1db5:: with SMTP id z21mr701575oti.325.1579050295430; Tue, 14 Jan 2020 17:04:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579050295; cv=pass; d=google.com; s=arc-20160816; b=bN5/3LPouIOLQwYi5ONQnjzYr6NrZmUR7m+rrCqVRiM5HofeF5Mq6Fl8HPq3Hs9zEG zeM87mW5SyIqimspNKQgR7B8JuTVMDqVS+yc+fOSJ3tP3LD+ddNkF2LGd3Q2FiI2Fnxp lJd3ApKmcRs/2cw3oeZJg0rkybBWmVla1xWdrLeAblHSxWLZrkZAxK9jmiP2wk8oxBhq QSYrFBCElPGszSKdeCRURJjFq3mgOe0gXgOLI7NJSLJZD4bUOD5DnlibFIV0JsPo/lNZ vM9Ab9BLuszOM48PgJpDtzsLq1aLv91j2ysLngkZ3CJaUa5dVS49fbSsoxgLaC2WsV13 dJpA== 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=5KFrR1/4DbbNwf1waN6bHViUWm48Wj5zWpynPn9/e2Q=; b=zsoWPlvCO8FW3v5oBoGFMqQ8bqTGTLmgZyHqTsUJXH2PwbGP9vCDnLt8X8oFRuUM+c Aqz5rmeZDeE+8xqVr8Ohb2mMkMgYwlriuMOY51T5/NKZGgjXndGL/OYo9Zij8sFZPZcQ 2GFkXYHE1ldZmSTKa4jcAWPFqDLu2jVHkz0wNVpMxRARREWadVxJu7I24IyruCpPUnGE 2WCZ5fTwBhisCVpmPP4ZAyf+PPEOlZMjEbDUoxIT4sj+gCD3EZKzABXjBnJdVOhgtuaP HqZwds0P8qPFq83X7wLDqxhJWEnjAjSEjUxsGXNQcBCvFfyeG9EjvQDVYBfkf+aIIAoN BYdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b="J5F/xOAo"; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=d9xiVBZp; 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 z15si12228342otj.235.2020.01.14.17.04.44; Tue, 14 Jan 2020 17:04: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="J5F/xOAo"; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=d9xiVBZp; 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 S1728925AbgAOBD4 (ORCPT + 99 others); Tue, 14 Jan 2020 20:03:56 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:50500 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728774AbgAOBDz (ORCPT ); Tue, 14 Jan 2020 20:03:55 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.42/8.16.0.42) with SMTP id 00F119xb031762; Tue, 14 Jan 2020 17:03:37 -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=5KFrR1/4DbbNwf1waN6bHViUWm48Wj5zWpynPn9/e2Q=; b=J5F/xOAofHKlFODwM1iMnoC4MWxXp2TnPniKOhMZXMZrdaH/fsS2lXbZMX+DT1U0ljXN fm5Vw6r1xtMIIT57K60LxYf1PEDkHDakfG1JBNBLALYj96dtGEYB6ghYjEEm++3/rtZu nJ+LPwzV2gm9taH+Rcl5Mbd8B/iiTPCq2Wo= Received: from mail.thefacebook.com ([163.114.132.120]) by m0089730.ppops.net with ESMTP id 2xhcrruu0w-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 14 Jan 2020 17:03:37 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (100.104.98.9) by o365-in.thefacebook.com (100.104.94.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Tue, 14 Jan 2020 17:03:36 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ndqq05rBa12mZyQAW4a0pk3JM6VNlXa8g3YdId4Bjf3ig0kA260Cvt5aKhSLK2+FORFACrNCW430TcxJqon+DZRgRV6409mNkkfdnfW1NRnEuPf5aqg396k/9WIGRKf4TvW/WwNbqUP22vc9Q5Z2+G3lIZWfcP8a5xFLsKaFnPjxCm4XnxrzntOtArwcdAFKVWbNWcpPa2shizWjXc25m7zAc+YsjwiY2A+y9folvo9vHR41knliBHisTSvtWQ098JRFkqVtKA4tJv5cHSoaXAsvBX8utLF2Zjt2IVZHXsuIy6pnt6bkykIKkP+OtR+Bomkqw4eN+kku4Q8X2ApbLw== 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=5KFrR1/4DbbNwf1waN6bHViUWm48Wj5zWpynPn9/e2Q=; b=XwREnHDN5ct96nVK5K/xj03BQxswHvmS3HvMpizF54KM9t3o/FvXvwICAy7rs/rJSvG3K4YAuzIV9jNE/ODjc5ud45M15Lho9LK1sDkIUF7YQO8H6n2N8ieNVETuoclnB9heyfTsApeNn+FP6YFkiUriK++fGtCtEKsO4KBJ2u4menxL35vUI1qbi/rW2SwKoo668tV1t/HaiU0SZ3fFqe+/ztnoYgUByUQvCxsXYfNhV1bVcxcmpEShAVvANSvBWIGD+WljoyCWUKGJ/jBtf5wEI0YKeKyVg1vOVyWXs/l9flbQydRkj1MrWA9ucjgS93qMwvFfpd2AckIXNzWt1w== 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=5KFrR1/4DbbNwf1waN6bHViUWm48Wj5zWpynPn9/e2Q=; b=d9xiVBZp2q9yv8wi8O8p+UNDH2khh3AE/5SuLkCZsO4a6R5k+N3IZIXqGfCWRznsY1MI3xrz/BeDrxUzwYg1Qt58/G/BEC1AqkD7sknWBlSiO+hp8tw/nGUpckU8zWeRTsAhrVjXTYSt0Bmz6YDjfYCXqyrwYPqjOjjudvMcwJQ= Received: from DM5PR15MB1675.namprd15.prod.outlook.com (10.175.107.145) by DM5PR15MB1772.namprd15.prod.outlook.com (10.174.107.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.10; Wed, 15 Jan 2020 01:03:34 +0000 Received: from DM5PR15MB1675.namprd15.prod.outlook.com ([fe80::1cbf:c518:3a4d:291b]) by DM5PR15MB1675.namprd15.prod.outlook.com ([fe80::1cbf:c518:3a4d:291b%11]) with mapi id 15.20.2623.017; Wed, 15 Jan 2020 01:03:34 +0000 Received: from macbook-pro-52.dhcp.thefacebook.com (2620:10d:c090:200::1:58c9) by MWHPR1201CA0016.namprd12.prod.outlook.com (2603:10b6:301:4a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9 via Frontend Transport; Wed, 15 Jan 2020 01:03:32 +0000 From: Yonghong Song To: Brian Vazquez CC: Brian Vazquez , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Andrii Nakryiko , "Stanislav Fomichev" , Petar Penkov , "Willem de Bruijn" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" Subject: Re: [PATCH v4 bpf-next 5/9] bpf: add batch ops to all htab bpf map Thread-Topic: [PATCH v4 bpf-next 5/9] bpf: add batch ops to all htab bpf map Thread-Index: AQHVyvpBUCDZRrB+YkmYzzMZ4a9v9KfqxbaAgAAOyQCAABS/AA== Date: Wed, 15 Jan 2020 01:03:34 +0000 Message-ID: <98e5e51d-25da-ee4b-8a21-d4cfb5909c08@fb.com> References: <20200114164614.47029-1-brianvv@google.com> <20200114164614.47029-7-brianvv@google.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR1201CA0016.namprd12.prod.outlook.com (2603:10b6:301:4a::26) To DM5PR15MB1675.namprd15.prod.outlook.com (2603:10b6:3:11f::17) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::1:58c9] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 45743302-86fd-428e-1685-08d79956bea5 x-ms-traffictypediagnostic: DM5PR15MB1772: x-microsoft-antispam-prvs: x-fb-source: Internal x-ms-oob-tlc-oobclassifiers: OLM:663; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(376002)(136003)(39860400002)(346002)(199004)(189003)(66946007)(316002)(186003)(7416002)(6916009)(8936002)(6506007)(81166006)(2616005)(8676002)(81156014)(53546011)(16526019)(54906003)(66446008)(52116002)(66556008)(64756008)(66476007)(86362001)(6486002)(6512007)(31696002)(71200400001)(966005)(5660300002)(478600001)(36756003)(31686004)(2906002)(4326008);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1772;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: RvHM+O74xe5+mXwipzjeWvYSp8DYWZ/Q6P7DYeFGBWUGUBmBqmDn9EsLOgmxqrcpf/oc7gQgnw/BiHhExqjg9+A+6k3Pe9tkTKznZFTxTwXK97M3ADMOaZeT4ie71wKdph1ikFWJ5Gw7ryQnSdySkEvJidePrBeKbEyXkESNfhaGCgDENlYzF1oIpxAbDSNWdYv31+9ndjDZOkLaAjxffAcH9zCPYyPfK570QctIdxGzQ1kqiKz4AY+AHZfoQQcuatPvP0uNJbhu6UVynE4tFwRJ9dOOPCAuQzb6veWCuAQPMGzdKSrcZGSmchrL60iqLsTA6RlDEthP0SJnBnt7hub3uQ5VY57z0+GMvxBuwOfD9R+W3qLZkCh5XmqF3ChpE7wEHwYuq8kplMns55vDuhxnXNHpFHCwyttkwCez0eQJw4D0xch+/YZkly3RE6N+AGgeyD9DjH+Xzkbaf8csuTKbDw4QCu19GGykZpm5+7f+gRjy/x2JfrXPH10RFaDbm1Fuafdi7YAuq8jsZHTkmA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <672142188B12634188E6751A65857AE6@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 45743302-86fd-428e-1685-08d79956bea5 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 01:03:34.3480 (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: /tfHYFnkdPbAQxZwWqDPVgKocpfRUvefLxTaxPpQ0CNd/0EiUOJxDSLUsrl8B0HM X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1772 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-14_06:2020-01-14,2020-01-14 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 suspectscore=0 bulkscore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 impostorscore=0 adultscore=0 spamscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001150007 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDEvMTQvMjAgMzo0OSBQTSwgQnJpYW4gVmF6cXVleiB3cm90ZToNCj4gSGkgWW9uZ2hv bmcsIHRoYW5rcyBmb3IgcmV2aWV3aW5nIGl0IQ0KPiANCj4gT24gVHVlLCBKYW4gMTQsIDIwMjAg YXQgMjo1NiBQTSBZb25naG9uZy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AgICAgICAgICAgICAgICAgIGZvcl9lYWNoX3Bvc3NpYmxlX2NwdShj cHUpIHsNCj4+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicGZfbG9uZ19tZW1jcHko ZHN0X3ZhbCArIG9mZiwNCj4+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgcGVyX2NwdV9wdHIocHB0ciwgY3B1KSwgc2l6ZSk7DQo+Pj4gKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgb2ZmICs9IHNpemU7DQo+Pj4gKyAgICAgICAgICAgICAgICAgICAg IH0NCj4+PiArICAgICAgICAgICAgIH0gZWxzZSB7DQo+Pj4gKyAgICAgICAgICAgICAgICAgICAg IHZhbHVlID0gbC0+a2V5ICsgcm91bmR1cF9rZXlfc2l6ZTsNCj4+PiArICAgICAgICAgICAgICAg ICAgICAgaWYgKGVsZW1fbWFwX2ZsYWdzICYgQlBGX0ZfTE9DSykNCj4+PiArICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBjb3B5X21hcF92YWx1ZV9sb2NrZWQobWFwLCBkc3RfdmFsLCB2YWx1 ZSwNCj4+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgdHJ1ZSk7DQo+Pj4gKyAgICAgICAgICAgICAgICAgICAgIGVsc2UNCj4+PiArICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBjb3B5X21hcF92YWx1ZShtYXAsIGRzdF92YWwsIHZhbHVlKTsN Cj4+PiArICAgICAgICAgICAgICAgICAgICAgY2hlY2tfYW5kX2luaXRfbWFwX2xvY2sobWFwLCBk c3RfdmFsKTsNCj4+PiArICAgICAgICAgICAgIH0NCj4+PiArICAgICAgICAgICAgIGlmIChkb19k ZWxldGUpIHsNCj4+PiArICAgICAgICAgICAgICAgICAgICAgaGxpc3RfbnVsbHNfZGVsX3JjdSgm bC0+aGFzaF9ub2RlKTsNCj4+PiArICAgICAgICAgICAgICA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