From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [bpf-next PATCH v2 1/2] bpf: bpftool, add support for attaching programs to maps Date: Mon, 15 Oct 2018 09:04:42 -0700 Message-ID: <20181015090442.0ab30362@cakuba.netronome.com> References: <20181015151336.9258.37606.stgit@john-Precision-Tower-5810> <20181015151748.9258.66154.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org To: John Fastabend Return-path: Received: from mail-qk1-f195.google.com ([209.85.222.195]:42514 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbeJOXuh (ORCPT ); Mon, 15 Oct 2018 19:50:37 -0400 Received: by mail-qk1-f195.google.com with SMTP id g20-v6so12129545qke.9 for ; Mon, 15 Oct 2018 09:04:46 -0700 (PDT) In-Reply-To: <20181015151748.9258.66154.stgit@john-Precision-Tower-5810> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 15 Oct 2018 08:17:48 -0700, John Fastabend wrote: > Sock map/hash introduce support for attaching programs to maps. To > date I have been doing this with custom tooling but this is less than > ideal as we shift to using bpftool as the single CLI for our BPF uses. > This patch adds new sub commands 'attach' and 'detach' to the 'prog' > command to attach programs to maps and then detach them. > > Signed-off-by: John Fastabend Reviewed-by: Jakub Kicinski