Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp344326imm; Fri, 21 Sep 2018 15:48:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYxJldb5Z6f87qW7becvVYsHoALOYWO2J6BzIAvU7BrFFcrHg06OIJ1OU433EpuEU4M3Pyj X-Received: by 2002:a63:4281:: with SMTP id p123-v6mr11373308pga.91.1537570109677; Fri, 21 Sep 2018 15:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537570109; cv=none; d=google.com; s=arc-20160816; b=Dk5tA/mIrXvXghteUcpkPLhtemkoNDzN4fK1p3oMGEhbQPWa8AaSpp4Uytuc2ab0yh aWr0a5U9qiGMtT0kLqVZY4t/mQm7tm6bZ0XO+XAv0SpiLrBfGrsKad7KRmXv5KWogq5K x9H/1h4l1yqckpdMKMY0AdGC9TwWSeTYo5egrvJV1qy09yRHmbjg4UVuWMSt0PAs66Xa jgwaLlBB4LfvQMnUg9A5f+AfHRltPe/cUY+uvurXE0SO6qqBRjt690kLpe8ej9sP143R H0OABSlsIUvrqwRZibSaZa4UhgNbUDChXOytHm/3NNNUXOYrjzAYQPHoVjuYNp8U85TL qOVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature:dkim-signature; bh=/Xk+yWNFl/b0eduIDOY6YrVyJO3H6Emmm9BDzLA3CQY=; b=iLtDmvMXoiYc/qIygu81rpNUEWO+0GDoJ6OLydYx5oZc47lsNIcIQSgNo5yQMY5aP1 /K3p+hYdo0heVv19sQk/uz7QgKGrAhP0CGTTgrwvelqNXzCN/30NEEuVBIKWLmONSI8I MCRMRFZ4iH8nOy6z4tqkK4ZC3wwnlqo2DogBk9SwOAZXWna7fsuERgUNfJlrY/wDCuQh Kt8zxHYc1NfYUCpbwkkwqpaArZQtRZHjvrSN6CThaOJUGOVQqLn/R5pOpp1Oknd51N8z 8gY2cAW8rYF16yoC6ltFElSWVIlyw19kVU+nIyCHSPAHTgrv5Xy0hAWNzh4RTSm3T8Kd IO5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=IYEbp9ma; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=GchmCAxU; 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 s7-v6si27668293pfm.217.2018.09.21.15.48.13; Fri, 21 Sep 2018 15:48:29 -0700 (PDT) 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=IYEbp9ma; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=GchmCAxU; 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 S1726711AbeIVEis (ORCPT + 99 others); Sat, 22 Sep 2018 00:38:48 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:52512 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725748AbeIVEis (ORCPT ); Sat, 22 Sep 2018 00:38:48 -0400 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.22/8.16.0.22) with SMTP id w8LMlB9F020473; Fri, 21 Sep 2018 15:47:27 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=facebook; bh=/Xk+yWNFl/b0eduIDOY6YrVyJO3H6Emmm9BDzLA3CQY=; b=IYEbp9maMGhf0nzIscDFzwZwKFYgJvVVZVVM3OY8+aXJ0GKDmMFujmCQ8kNugiWrEnFf NjbaBE3I+FA4JuXDTOsEG5Y7xNqkcwQfQUYjk9W7L0/BKQNmuEhIDCCh1OdFEoyX2tnW ZfpDd1LbSD/1EQxxQOKU8rTJ3zjzsLRxR4Y= Received: from mail.thefacebook.com ([199.201.64.23]) by m0001303.ppops.net with ESMTP id 2mn7va8a53-3 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 Sep 2018 15:47:27 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.23) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 21 Sep 2018 15:47:25 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/Xk+yWNFl/b0eduIDOY6YrVyJO3H6Emmm9BDzLA3CQY=; b=GchmCAxU9EpAdRr1agnmcozc8H8QC3MwkvN/G2lXmqvIhkaK4B7a7G1AX+2q6I3j1LhQuNYa3uXjPieGt/ulcJzXlaZ76mHLPMsYRB78JKcOcttQbi7DNGznagGoRqjRTZhrvNF0PE3nCJLQSgWrOVYsfwhcOmZsqkzk9X+/h5k= Received: from BY2PR15MB0167.namprd15.prod.outlook.com (10.163.64.141) by BY2PR15MB0167.namprd15.prod.outlook.com (10.163.64.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Fri, 21 Sep 2018 22:47:20 +0000 Received: from BY2PR15MB0167.namprd15.prod.outlook.com ([fe80::5c5b:75ea:cae:1e68]) by BY2PR15MB0167.namprd15.prod.outlook.com ([fe80::5c5b:75ea:cae:1e68%2]) with mapi id 15.20.1143.017; Fri, 21 Sep 2018 22:47:20 +0000 From: Roman Gushchin To: "netdev@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , Kernel Team , Roman Gushchin , Alexei Starovoitov , Daniel Borkmann , Jakub Kicinski , Yonghong Song Subject: [PATCH bpf-next] bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps Thread-Topic: [PATCH bpf-next] bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps Thread-Index: AQHUUf0Nexas855OLUy087sc5sDTZQ== Date: Fri, 21 Sep 2018 22:47:20 +0000 Message-ID: <20180921224700.10524-1-guro@fb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR17CA0095.namprd17.prod.outlook.com (2603:10b6:300:c2::33) To BY2PR15MB0167.namprd15.prod.outlook.com (2a01:111:e400:58e0::13) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:200::5:19f4] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY2PR15MB0167;20:hIEhICVpJATPsV4C9AIaab8TDmxwBpqEbtJDydSCjCUd5J2+RTbZyd4qz5hfB/Aoo7stfHWET8TgLtDmcnKN/SQdpBl1ElgUdB+acNtvX4/mh5HqVvldd7c83d7Op9WiXEwOrJUnm//hv26cCZBK0KO8Qm9AyrGnmYU/ZTvJo9M= x-ms-office365-filtering-correlation-id: 8753ef76-18a9-4411-95ec-08d620142ffd x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BY2PR15MB0167; x-ms-traffictypediagnostic: BY2PR15MB0167: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(67672495146484); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3231355)(11241501184)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051);SRVR:BY2PR15MB0167;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0167; x-forefront-prvs: 0802ADD973 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(136003)(346002)(366004)(376002)(396003)(199004)(189003)(81166006)(6506007)(6436002)(6916009)(5640700003)(386003)(86362001)(6486002)(14454004)(5660300001)(2906002)(7736002)(305945005)(8936002)(105586002)(68736007)(99286004)(52116002)(81156014)(8676002)(476003)(6512007)(186003)(1076002)(25786009)(256004)(2900100001)(2616005)(97736004)(54906003)(486006)(478600001)(1730700003)(46003)(2351001)(53936002)(4326008)(6116002)(36756003)(316002)(106356001)(5250100002)(39060400002)(102836004)(2501003)(71190400001)(71200400001)(14444005)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0167;H:BY2PR15MB0167.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-microsoft-antispam-message-info: GB7X4D6GnbvQPbQZxZJnaZtuf6P0zTbZt3jTNksx/Ou9oGzwRFLqilw6oJNnJrwJYEVw5/nvVrcfhSPWz1RQwNvB3+UD3zk/Oc1iYr7xTaEq5ZvUR9l4zy4G7pjz7Bn0zj6vZk7WafnsQOSEEV+rFKUStVESvqm4Ya4pbqRP3fCU5w316o5n1H0RBeXBYrOtD4MnMwGbue59725E5IlcuJjd/BFCBTkQEv9ZayZ36s4W2CFkXVl+EVJ08W2KBB+qkhktleL/q0S20aaJYt+09emrCRh89w0a00hwE7OE8PglhEpg72PpOqzAaL5sDnt1ytjw6lcPKlgpspuok7TTwB1W/GlfgVev/OAeXf9HL1M= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8753ef76-18a9-4411-95ec-08d620142ffd X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2018 22:47:20.2493 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0167 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-21_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list of maps types which bpftool recognizes. Signed-off-by: Roman Gushchin Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Jakub Kicinski Cc: Yonghong Song --- tools/bpf/bpftool/map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index af8ad32fa6e9..e22fbe8b975f 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -71,6 +71,7 @@ static const char * const map_type_name[] =3D { [BPF_MAP_TYPE_XSKMAP] =3D "xskmap", [BPF_MAP_TYPE_SOCKHASH] =3D "sockhash", [BPF_MAP_TYPE_CGROUP_STORAGE] =3D "cgroup_storage", + [BPF_MAP_TYPE_REUSEPORT_SOCKARRAY] =3D "reuseport_sockarray", }; =20 static bool map_is_per_cpu(__u32 type) --=20 2.17.1