From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6E3BC4321A for ; Fri, 28 Jun 2019 17:56:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9337A208C4 for ; Fri, 28 Jun 2019 17:56:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=fomichev-me.20150623.gappssmtp.com header.i=@fomichev-me.20150623.gappssmtp.com header.b="aE4DmMUj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726536AbfF1R4A (ORCPT ); Fri, 28 Jun 2019 13:56:00 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42101 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfF1R4A (ORCPT ); Fri, 28 Jun 2019 13:56:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id k13so2905948pgq.9 for ; Fri, 28 Jun 2019 10:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fomichev-me.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YcKbK3r2Q+497R+LaIiCey5bOby8qZ7z+01VJdR9ML0=; b=aE4DmMUjEz14Rl3dY+YSN0gZiBakAl1s+bDWQgyvyNKJoGVLdb18cTjG/xzjZYadtu Ho9OONfRoFIi6Sa9twDude4gZ7uNn3ZR4JVlq454FdJlFsdRFtsysiNlAqVsUTH2bsak s1LBoz7Foj5VsHoOdpOnTFM33JWRZnxZiGuVOJvGsMD2fAC9pjcV9UJnh0wsq+n87lj0 8Ejm02K7dj5OyL9YvqvBCgQJpxS6MAIL4MtZvuTAhYH9Tb6PQZWvZ2J66mEs2buFUf9b 5lupSsCZ2kuZHRozsyU19LWAUpdDXaZzSJxnJfDcS44UB3IaSpknhx3EbmIEO/avpJq0 hqkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YcKbK3r2Q+497R+LaIiCey5bOby8qZ7z+01VJdR9ML0=; b=U38JJ+tulsq6pwfmfCM4hStPmjYjxo8yj5Jc7+p+JyWrFbrEG1H308E1iO3CoanJaT B09kLHRj0r7tRS63wshXkVQEpHv+h6E9RENXA8Oe8M+2gDmxAkPKculAY6S+zmaXpfX1 JVumK6e2F01+J2x4HpmEiiCwGXXznjpYgx46yobmKMaplMXqxYCjNo4nNjQ44y+3h/XK hjxQzZR7Ru1R2qvedjR+0+xD1rgcqKZd5yHe1Rn0asyGWe0AT55zGshmda2+0Srt5EwJ lu9QrhPzDMBXRqS7KOxSTtykChy7e3PtIKQ95/RtEMcR3FP1/yfyC2HkdMdiIdcS2JOV cQEw== X-Gm-Message-State: APjAAAWsLvL+SH+6GD8I5DB8nX94zMz0iOdw9t95JDqog/Axq/0WwgSj F7SI3jZb3HnjYkzpRkmVfFPgPQ== X-Google-Smtp-Source: APXvYqwyulMWXXvHCH2uwx4MmaikslB2L25jM59v2iW0J+N1+xqrL66F4On2xRMig4z3EYRkecpCSw== X-Received: by 2002:a63:3ec7:: with SMTP id l190mr10851197pga.334.1561744559353; Fri, 28 Jun 2019 10:55:59 -0700 (PDT) Received: from localhost ([2601:646:8f00:18d9:d0fa:7a4b:764f:de48]) by smtp.gmail.com with ESMTPSA id u2sm2524001pjv.30.2019.06.28.10.55.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 10:55:58 -0700 (PDT) Date: Fri, 28 Jun 2019 10:55:58 -0700 From: Stanislav Fomichev To: Alexei Starovoitov Cc: Andrii Nakryiko , Andrii Nakryiko , Daniel Borkmann , Networking , bpf , Kernel Team Subject: Re: [PATCH v3 bpf-next 2/9] libbpf: introduce concept of bpf_link Message-ID: <20190628175558.GK4866@mini-arch> References: <20190628055303.1249758-1-andriin@fb.com> <20190628055303.1249758-3-andriin@fb.com> <20190628160230.GG4866@mini-arch> <20190628174533.GI4866@mini-arch> <2cff901c-3b0b-d99d-3e58-7065d9d82ace@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2cff901c-3b0b-d99d-3e58-7065d9d82ace@fb.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 06/28, Alexei Starovoitov wrote: > On 6/28/19 10:45 AM, Stanislav Fomichev wrote: > >>>> > >>>> +struct bpf_link { > >>> Maybe call it bpf_attachment? You call the bpf_program__attach_to_blah > >>> and you get an attachment? > >> > >> I wanted to keep it as short as possible, bpf_attachment is way too > >> long (it's also why as an alternative I've proposed bpf_assoc, not > >> bpf_association, but bpf_attach isn't great shortening). > > Why do you want to keep it short? We have far longer names than > > bpf_attachment in libbpf. That shouldn't be a big concern. > > Naming is hard. I also prefer short. There are only two hard things in Computer Science :-) > imo the word 'link' describes the concept better than 'attachment'.