Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp841459img; Wed, 20 Mar 2019 12:01:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOxyd6nAaDD5FWTDDE4QWWD+lOYWXvIkxkT2xq2TPdpHlm4PRiLK6E428CCmwukKjZqBdU X-Received: by 2002:a62:a50c:: with SMTP id v12mr9884421pfm.206.1553108516772; Wed, 20 Mar 2019 12:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553108516; cv=none; d=google.com; s=arc-20160816; b=fq1luMW3JgnddYDzV9Ho6dTvo53NEcYAH9ipgb8ontTsxTKJQZhmuenNWVR/R+pRa7 75FBRnNsiPzWXepCLbRnaJi9UDeN6ljj9TnPIVHHCLGdr+h5zjSTIR2W5x9oB82UuGSL t7RcuZ1d6ggLLgpacWg/Hrw9D/XaBbAhIeOmVCUh91HvPhZ7va7+Tjl14UbU9PlEKmCy cyZVT87SAzNPxkKjlVS8JDS4H2/OIfU9O8QXk2knZTNVVz6Rbhru9y8bSRZt8Dsx274R Jshclk9w7Hwwig2r8xEomKvIz+FuYLdHKnWcusc8DYwOxaSY5mswyjfu6QtnirqmasEs gMGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:subject:autocrypt:openpgp:from:references:cc:to :dkim-signature; bh=ktddu76WvPbH/e8wAG7UqSfwslqPcY4HSdFqx+VFTkc=; b=u+DIOxGpkV4d729tCRdVuhIY21T6d/17LPMM7lIe9XuncRF7VdsRCgBO8kCZdx/YDJ kQ7K3BmaK343BzL61E2RN86YyCIRQPtsiFn/IFthDJOxi2DzE1l0ka7LVFY+46mjCxtr DooguO/9P+Ig/P3sUAWeRBKkqr0HLYrsiUMlNjfzrjEZTyL1mYhpaYvlJT0q7JKoyJSa BCwiABxNQ7IsegcfmPQZRKJ3PYgGGtZo13Q89QL6eV1tpEW8zbmhVKUpkZdoUq/Eykfi TOUlis/WLrxOgfucXubdrYJaB0NNZPHWdfBj95qs2Om8twV9OgNVJvetGANwLETabINe uXNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=CCYeqD0S; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si2266391pgc.256.2019.03.20.12.01.41; Wed, 20 Mar 2019 12:01:56 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=CCYeqD0S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727540AbfCTTAj (ORCPT + 99 others); Wed, 20 Mar 2019 15:00:39 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53883 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbfCTTAi (ORCPT ); Wed, 20 Mar 2019 15:00:38 -0400 Received: by mail-wm1-f66.google.com with SMTP id q16so328022wmj.3 for ; Wed, 20 Mar 2019 12:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=to:cc:references:from:openpgp:autocrypt:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ktddu76WvPbH/e8wAG7UqSfwslqPcY4HSdFqx+VFTkc=; b=CCYeqD0S+iTcgZE45mxeAPvWF/Ok/KAYKsoB9rrSXQawpo0fBd8UOJ/MUYJicGxrfJ t+zp29pYhJNEswtNIvOj9MYKN+uKxWE1O6AfVECcDmRCw5Co/6wClZuadCCp0+tIFEaw oGuJz51mUPKJ3+cwTV5xz0qNWjbE/vVXagmApSR1Jzk2xTjnhbKLfifkjeNDTLVdGpY/ QWswkQfLk1pg7ygp6w9c3GlFIvlaF5lHELq8nxUhJZKoU6Z1+h8vndhbcG3HgFk6tKe4 H89/losBcFKTVlW9PKMgL5tCKfsp7+NjBby+g5LOEZhysIzaFq0KQeB74J2UDmhj0RMU jFDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:openpgp:autocrypt:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ktddu76WvPbH/e8wAG7UqSfwslqPcY4HSdFqx+VFTkc=; b=L3FaBROAbyXUlLnMlZts3OjcXrKtGVVrBBlY/6M6NZlPnifLVgttTrSzDPKKA/qjwZ o4Nc7MbHXSHsJ/Y9bBQyvRKJNhnzg9QKds+RazySN4AthFM7RS1p9BiwTkh0gXy4c8BY DAMbkXqnDnMkDhA9T1//HeYBvOPGWScy7FFSv6Kh+vpQWdObs0uq5GkGPWHe7JYzwDu0 0s092UYZ5qF9zeMjq/+pXVkFcvcmIJlfDLhUijnE62h9FxvKm0kgjGYWbLqNeWIGKR1o LxqVjqYvplK12y0dPA07XAqbLlZCaFNWZWWgmWyPjNh2+BC3ww1yD5PKQPJPQXQn41X+ NdEg== X-Gm-Message-State: APjAAAUqxDVZCqg+YArLUd+MxfzmjIks0xmTafYiu/222mA/7Yt5vp49 8eKjlMivOHjzEFVlDSzX4xpqug== X-Received: by 2002:a1c:720e:: with SMTP id n14mr9160511wmc.107.1553108436068; Wed, 20 Mar 2019 12:00:36 -0700 (PDT) Received: from [172.20.1.106] ([217.38.71.146]) by smtp.gmail.com with ESMTPSA id o127sm4851367wmo.20.2019.03.20.12.00.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 12:00:35 -0700 (PDT) To: Alban Crequy , ast@kernel.org, daniel@iogearbox.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alban@kinvolk.io, iago@kinvolk.io References: <20190320173332.18105-1-alban@kinvolk.io> <20190320173332.18105-3-alban@kinvolk.io> From: Quentin Monnet Openpgp: preference=signencrypt Autocrypt: addr=quentin.monnet@netronome.com; prefer-encrypt=mutual; keydata= mQINBFnqRlsBEADfkCdH/bkkfjbglpUeGssNbYr/TD4aopXiDZ0dL2EwafFImsGOWmCIIva2 MofTQHQ0tFbwY3Ir74exzU9X0aUqrtHirQHLkKeMwExgDxJYysYsZGfM5WfW7j8X4aVwYtfs AVRXxAOy6/bw1Mccq8ZMTYKhdCgS3BfC7qK+VYC4bhM2AOWxSQWlH5WKQaRbqGOVLyq8Jlxk 2FGLThUsPRlXKz4nl+GabKCX6x3rioSuNoHoWdoPDKsRgYGbP9LKRRQy3ZeJha4x+apy8rAM jcGHppIrciyfH38+LdV1FVi6sCx8sRKX++ypQc3fa6O7d7mKLr6uy16xS9U7zauLu1FYLy2U N/F1c4F+bOlPMndxEzNc/XqMOM9JZu1XLluqbi2C6JWGy0IYfoyirddKpwzEtKIwiDBI08JJ Cv4jtTWKeX8pjTmstay0yWbe0sTINPh+iDw+ybMwgXhr4A/jZ1wcKmPCFOpb7U3JYC+ysD6m 6+O/eOs21wVag/LnnMuOKHZa2oNsi6Zl0Cs6C7Vve87jtj+3xgeZ8NLvYyWrQhIHRu1tUeuf T8qdexDphTguMGJbA8iOrncHXjpxWhMWykIyN4TYrNwnyhqP9UgqRPLwJt5qB1FVfjfAlaPV sfsxuOEwvuIt19B/3pAP0nbevNymR3QpMPRl4m3zXCy+KPaSSQARAQABtC1RdWVudGluIE1v bm5ldCA8cXVlbnRpbi5tb25uZXRAbmV0cm9ub21lLmNvbT6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txh2xBhWGuZ9CpBuXjtPrnRSd8xdrw36AL53goTt/NiLHUd RHhSHGnKaQ6MfrTge5Q0h5A= Subject: Re: [PATCH bpf-next v1 3/7] tools: bpftool: create map of maps Message-ID: Date: Wed, 20 Mar 2019 19:00:34 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190320173332.18105-3-alban@kinvolk.io> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alban, thanks for those patches! 2019-03-20 18:33 UTC+0100 ~ Alban Crequy > From: Alban Crequy > > Before this patch, there was no way to fill attr.inner_map_fd, necessary > for array_of_maps or hash_of_maps. > > This patch adds keyword 'innermap' to pass the innermap, either as an id > or as a pinned map. > > Example of commands: > > $ sudo bpftool map create /sys/fs/bpf/innermap type hash \ > key 8 value 8 entries 64 name innermap flags 1 > $ sudo bpftool map create /sys/fs/bpf/outermap type hash_of_maps \ > innermap pinned /sys/fs/bpf/innermap key 64 value 4 \ > entries 64 name myoutermap flags 1 > $ sudo bpftool map show pinned /sys/fs/bpf/outermap > 47: hash_of_maps name myoutermap flags 0x1 > key 64B value 4B max_entries 64 memlock 12288B > > Documentation and bash completion updated as well. > > Signed-off-by: Alban Crequy > > --- > > Previous version of this patch was sent while bpf-next was closed. > https://marc.info/?l=linux-kernel&m=155180393501258&w=2 > > Since then, the following changes were done: > - error management when calling map_parse_fd (review from Jakub) > - fix documentation and bash completion (review from Quentin) > --- > .../bpf/bpftool/Documentation/bpftool-map.rst | 9 ++- > tools/bpf/bpftool/bash-completion/bpftool | 9 +++ > tools/bpf/bpftool/map.c | 75 +++++++++++++++++-- > 3 files changed, 83 insertions(+), 10 deletions(-) > > diff --git a/tools/bpf/bpftool/Documentation/bpftool-map.rst b/tools/bpf/bpftool/Documentation/bpftool-map.rst > index 5c984ffc9f01..b685641bfd74 100644 > --- a/tools/bpf/bpftool/Documentation/bpftool-map.rst > +++ b/tools/bpf/bpftool/Documentation/bpftool-map.rst > @@ -23,7 +23,7 @@ MAP COMMANDS > > | **bpftool** **map { show | list }** [*MAP*] > | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \ > -| **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**dev** *NAME*] > +| **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**dev** *NAME*] [**innermap** MAP] > | **bpftool** **map dump** *MAP* > | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*] > | **bpftool** **map lookup** *MAP* [**key** *DATA*] > @@ -60,10 +60,15 @@ DESCRIPTION > Output will start with map ID followed by map type and > zero or more named attributes (depending on kernel version). > > - **bpftool map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**dev** *NAME*] > + **bpftool map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**dev** *NAME*] [**innermap** MAP] > Create a new map with given parameters and pin it to *bpffs* > as *FILE*. > > + To create a map of type **array_of_maps** or > + **hash_of_maps**, the additional parameter **innermap** needs > + to reference an existing map with the type and size of the > + maps in the values. > + > **bpftool map dump** *MAP* > Dump all entries in a given *MAP*. > > diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool > index b803827d01e8..9e37de8bb227 100644 > --- a/tools/bpf/bpftool/bash-completion/bpftool > +++ b/tools/bpf/bpftool/bash-completion/bpftool > @@ -461,6 +461,14 @@ _bpftool() > _sysfs_get_netdevs > return 0 > ;; > + innermap) > + COMPREPLY+=( $( compgen -W "id pinned" -- "$cur" ) ) > + return 0 > + ;; > + id) > + _bpftool_get_map_ids > + return 0 > + ;; > *) > _bpftool_once_attr 'type' > _bpftool_once_attr 'key' > @@ -469,6 +477,7 @@ _bpftool() > _bpftool_once_attr 'name' > _bpftool_once_attr 'flags' > _bpftool_once_attr 'dev' > + _bpftool_once_attr 'innermap' > return 0 > ;; > esac > diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c > index 18f9bc3aed4f..a576f2a019be 100644 > --- a/tools/bpf/bpftool/map.c > +++ b/tools/bpf/bpftool/map.c > @@ -1100,6 +1100,7 @@ static int do_create(int argc, char **argv) > struct bpf_create_map_attr attr = { NULL, }; > const char *pinfile; > int err, fd; > + int inner_map_fd = -1; Nit: reverse-Christmas tree for declaring the variables. > > if (!REQ_ARGS(7)) > return -1; > @@ -1108,48 +1109,75 @@ static int do_create(int argc, char **argv) > while (argc) { > if (is_prefix(*argv, "type")) { > NEXT_ARG(); > - if (!REQ_ARGS(1)) > + if (!REQ_ARGS(1)) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > > if (attr.map_type) { > p_err("map type already specified"); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > } > > attr.map_type = map_type_from_str(*argv); > if ((int)attr.map_type < 0) { > p_err("unrecognized map type: %s", *argv); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > } > NEXT_ARG(); > } else if (is_prefix(*argv, "name")) { > NEXT_ARG(); > - if (!REQ_ARGS(1)) > + if (!REQ_ARGS(1)) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > attr.name = GET_ARG(); > } else if (is_prefix(*argv, "key")) { > if (parse_u32_arg(&argc, &argv, &attr.key_size, > - "key size")) > + "key size")) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > } else if (is_prefix(*argv, "value")) { > if (parse_u32_arg(&argc, &argv, &attr.value_size, > - "value size")) > + "value size")) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > } else if (is_prefix(*argv, "entries")) { > if (parse_u32_arg(&argc, &argv, &attr.max_entries, > - "max entries")) > + "max entries")) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > } else if (is_prefix(*argv, "flags")) { > if (parse_u32_arg(&argc, &argv, &attr.map_flags, > - "flags")) > + "flags")) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > } else if (is_prefix(*argv, "dev")) { > NEXT_ARG(); > - if (!REQ_ARGS(1)) > + if (!REQ_ARGS(1)) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > + } > > if (attr.map_ifindex) { > p_err("offload device already specified"); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > } > > @@ -1157,28 +1185,59 @@ static int do_create(int argc, char **argv) > if (!attr.map_ifindex) { > p_err("unrecognized netdevice '%s': %s", > *argv, strerror(errno)); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > } > NEXT_ARG(); > + } else if (is_prefix(*argv, "innermap")) { > + NEXT_ARG(); > + if (!REQ_ARGS(1)) { > + if (inner_map_fd != -1) > + close(inner_map_fd); > + return -1; > + } > + > + if (inner_map_fd != -1) { > + close(inner_map_fd); > + p_err("innermap already specified"); > + return -1; > + } > + > + inner_map_fd = map_parse_fd(&argc, &argv); > + if (inner_map_fd < 0) > + return -1; > } else { > p_err("unknown arg %s", *argv); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > } > } > > if (!attr.name) { > p_err("map name not specified"); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; > } > > set_max_rlimit(); > > + if (inner_map_fd != -1) > + attr.inner_map_fd = inner_map_fd; > + > fd = bpf_create_map_xattr(&attr); > if (fd < 0) { > p_err("map create failed: %s", strerror(errno)); > + if (inner_map_fd != -1) > + close(inner_map_fd); > return -1; You might want to move all those if (inner_map_fd != -1) close(inner_map_fd); return -1; at the end of the function under a label, and jump there with a goto for the 15 or so occurrences of the pattern? > } > > + if (inner_map_fd != -1) > + close(inner_map_fd); > + > err = do_pin_fd(fd, pinfile); > close(fd); > if (err) > @@ -1243,7 +1302,7 @@ static int do_help(int argc, char **argv) > "Usage: %s %s { show | list } [MAP]\n" > " %s %s create FILE type TYPE key KEY_SIZE value VALUE_SIZE \\\n" > " entries MAX_ENTRIES name NAME [flags FLAGS] \\\n" > - " [dev NAME]\n" > + " [dev NAME] [innermap MAP]\n" > " %s %s dump MAP\n" > " %s %s update MAP [key DATA] [value VALUE] [UPDATE_FLAGS]\n" > " %s %s lookup MAP [key DATA]\n" >