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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 234BFC433F5 for ; Fri, 14 Jan 2022 02:09:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235713AbiANCJt (ORCPT ); Thu, 13 Jan 2022 21:09:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbiANCJt (ORCPT ); Thu, 13 Jan 2022 21:09:49 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0F3C061574; Thu, 13 Jan 2022 18:09:48 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id c6so3579284plh.6; Thu, 13 Jan 2022 18:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XpJbac53fRpSunCAh1w84QujJ1RBhEaDKayiX5UID/w=; b=LyYkVONhDx4r6c1AwSyDkBCogwgYo7jfSC5GXFv/PH7IvzWMxRg9D/xfBBDgfbFGzX DHkEyRMacTi9Vv+VBYvU+48XOCWMAa1DMfwHVAP1fj8HDqWdHytxY51QwZIHv6K9gf9L 62sZJdW2csKqcfZPx2s6uX/rmSbYBAOonjCc1u2Y5xzLorpeRTDt5yXuA6FdbCVcw0RD NvxXVe6vEiFEBbVUGLOZKzRWIlY4YKFZVEJczljl+hmMDrisag7FQuhy5fojzYFCbqR8 waeHteYMIOq2Kn0ndhuQWGF2G7nCH5B5vvp3vYmjkhnfkC3ASJcEXuHxDn48Yn2jlD6q jFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XpJbac53fRpSunCAh1w84QujJ1RBhEaDKayiX5UID/w=; b=Wpn2D+aY9u9KMuDEswX7hJr3MFq/f3ISf/Cuw8G/0VeOALaNg/5tAxwgNuTRRigXYL 1uV1nnMMSbVnmL9EBR6GCBclrq0gpYXdyTyLLXXb2Kjed/Nf/BVjVAU6C04ABGJf0ovy FKeEq0a1pQx+nT0HAzgcVGcD7DXEDZZG7DJn6k7J0j3m2wQg1Y1ETMop+vLzxz4FPp22 TEWfVvDC1zC+tEofJXPmLoDJjFVNdQQKkEn0/dhtB0U9FUmKPUo7BUZitduGSGxhkq9V rz5CqQLmQqyDMdAzHKvFec2NJdeRK42IPHXbkJUNXIUSod5tQc2RQ7rn+SHC/6QgYSPA PKOw== X-Gm-Message-State: AOAM533zt7hQiLIEUg6+q9Li9/3HXlV6unawXYh/A2GC5mAfQX0oEyNC WJWrYMsZKRuBJpdK+W54C1aLrfeIbyjVNW9l0a4PlIz8TeQ= X-Google-Smtp-Source: ABdhPJww454elzu3ylVj2V6Fuz3l2o0RkPpE0EJjdIGmKiqeoRcnSWi6aa4Ckx3RMKyybtvsfB0hAYAmvV+FuGh7cv8= X-Received: by 2002:a17:902:ec82:b0:14a:30bd:94bf with SMTP id x2-20020a170902ec8200b0014a30bd94bfmr7483680plg.78.1642126188143; Thu, 13 Jan 2022 18:09:48 -0800 (PST) MIME-Version: 1.0 References: <8735lshapk.fsf@toke.dk> <47a3863b-080c-3ac2-ff2d-466b74d82c1c@redhat.com> In-Reply-To: From: Alexei Starovoitov Date: Thu, 13 Jan 2022 18:09:36 -0800 Message-ID: Subject: Re: [PATCH v21 bpf-next 18/23] libbpf: Add SEC name for xdp_mb programs To: Lorenzo Bianconi Cc: Jesper Dangaard Brouer , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Lorenzo Bianconi , Zvi Effron , Jesper Dangaard Brouer , Andrii Nakryiko , bpf , Networking , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Shay Agroskin , john fastabend , David Ahern , Eelco Chaudron , Jason Wang , Alexander Duyck , Saeed Mahameed , Maciej Fijalkowski , Magnus Karlsson , tirthendu.sarkar@intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Thu, Jan 13, 2022 at 3:58 PM Lorenzo Bianconi wrote: > > > > Btw "xdp_cpumap" should be cleaned up. > > xdp_cpumap is an attach type. It's not prog type. > > Probably it should be "xdp/cpumap" to align with "cgroup/bind[46]" ? > > so for xdp "mb" or xdp "frags" it will be xdp/cpumap.mb (xdp/devmap.mb) or > xdp/cpumap.frags (xdp/devmap.frags), right? xdp.frags/cpumap xdp.frags/devmap The current de-facto standard for SEC("") in libbpf: prog_type.prog_flags/attach_place "attach_place" is either function_name for fentry/, tp/, lsm/, etc. or attach_type/hook/target for cgroup/bind4, cgroup_skb/egress. lsm.s/socket_bind -> prog_type = LSM, flags = SLEEPABLE lsm/socket_bind -> prog_type = LSM, non sleepable.