Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1903731pxf; Fri, 26 Mar 2021 19:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpJcW9eT4re8eFfBwbiJvVABPtFbN+/198QPJ7pqgDUYMe+QLe10UZpi6ZkhY+Z8u5mkZv X-Received: by 2002:a17:906:f12:: with SMTP id z18mr18433341eji.132.1616811893997; Fri, 26 Mar 2021 19:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616811893; cv=none; d=google.com; s=arc-20160816; b=IzaIyqJNIjwmQDMwRLDSwZvUKxuj8e5LBT0p6WIq7ejGfGu0ilWMy40n0VozlJY5gG GiQZPtoedTpNM3GiKolm2lCsOofzeQwSHe13Hwx6kmnSguEuvxsnNruR4nBnZKlPgY1D lrGoo6dL2O9yaV3XFKhN5rJyL/HXEEKo4QhydbAsWFGS99tgpeAQIhbMC8oH98bNVlg7 KPT+crXmf2eor2a50/7BkIikIZ54ifDrLakrwH2q5towFo4n0DHk1fv2XchPmf77a0mW aT6U4p69fEXgcMqWv/FSZKSU6nqLs/n2y0Pgn+UvXj8Dag5rBqlj4XuqXE5WzzBZ5INs A9DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xe/Aq3/7m+CfZN6O/GcCkef3Jq0yzqRxc25xU578GNI=; b=bxFull7k+eDZNDeZjkRfR/E1o16VXg8LvYHbFucEdfLe3rtfNWk/qAFrxvjFwlimCk SlGfsDc79DwpxSLd0gdkGWYMDYWJ4v0y2kYMx3lQbPNhEBcIYNev+TTzIJYySErR6YAX Wvb2gpJqQhN/MIEsgjdKogk+dyjlHy3xQSxvBcBAoc6PLDCWX+tmYvgSaljn5cd1JX7k tuTCixw56Bmhpcs76sXnjk4CPxFiiUdssoQSgakj5I8mMfkgd45IJMA0gUC1Rw+ukgGV 6qlYGUYsf+Ma0aPHxNMjKa/VpfNAkTGFtlxr/nw3+a8poZm9pjnC+Ei1yvsr6kxLTvGv o1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EqozHY7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si8497620edv.175.2021.03.26.19.24.29; Fri, 26 Mar 2021 19:24:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EqozHY7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbhC0CQB (ORCPT + 99 others); Fri, 26 Mar 2021 22:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbhC0CPi (ORCPT ); Fri, 26 Mar 2021 22:15:38 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABCCBC0613AA; Fri, 26 Mar 2021 19:15:38 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id s11so2254pfm.1; Fri, 26 Mar 2021 19:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xe/Aq3/7m+CfZN6O/GcCkef3Jq0yzqRxc25xU578GNI=; b=EqozHY7rvp5xNqmvIMWrJ45wKCxAmLguoXBKOw3UqEn2FKPeoVD9JzxcMWHbbaKlZE Am+1L35j3o9kN+wRNn2eB3guHv7mfeD/V5vIGTWxrW4brGEJ1KeojC/TH0rIUflNfuLn jlnNp4LefkmeUIJ7LpX6x36+lKRKlfe00E34H1pxlJ/svyRAfuHSavyWX2p/jAW29XXL IxdaweLEzo/4/HelCcK+ZC+ylz1W84GgLMegoNu905wX7zfS6B2RWmF1ivbbfJoPqE+5 /A3dbqdnM9qAEw2COxAwXjAa318pHORoQJaI2QQtYYsUgsgbQGzo/K1ztW5FQfjSa1H4 Kc8Q== 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; bh=xe/Aq3/7m+CfZN6O/GcCkef3Jq0yzqRxc25xU578GNI=; b=H0GlZRfS64VnbYqQek98pADrXOlQV72BeeG1Uhd76vBGy9M64uxgAhrOVwMwyCuyPv X5mIpCxLYx6G4lagc34D5wpyDuOVXCbVxLQ83aYq8augZ9ouqUnd0eCKgWdP8SQEhqab sYthpJj1xiTTOa7gyksKqLAReSXCYOyzvpAyi6rRLc/Zql0LVlL/jB1CMxtHKlRNUWA4 b2MQlMHpaFb6ShvmeSacp0rs/HoMZx5Xitcdyug5+lYcAMHI9Y0Vrvr+eex+qYhXU20d pnYDel/hA6EOXn8bCq+dGNljCL7NnPTOkzPx8QkSyjDdjTIni67hQZSf6wCRp2OiooOZ u2cQ== X-Gm-Message-State: AOAM531TsyFHHXCd51gYn4J9wzXDw8HvENCz3GGBzOf24+YgalhmPWQ6 St9FrcE3a1KTDkmZT8ooagw= X-Received: by 2002:aa7:942d:0:b029:1f2:cbc6:8491 with SMTP id y13-20020aa7942d0000b02901f2cbc68491mr15352458pfo.53.1616811338162; Fri, 26 Mar 2021 19:15:38 -0700 (PDT) Received: from ast-mbp ([2620:10d:c090:400::5:15b8]) by smtp.gmail.com with ESMTPSA id gf20sm9519329pjb.39.2021.03.26.19.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 19:15:37 -0700 (PDT) Date: Fri, 26 Mar 2021 19:15:34 -0700 From: Alexei Starovoitov To: Kumar Kartikeya Dwivedi Cc: bpf@vger.kernel.org, brouer@redhat.com, Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , Peter Zijlstra , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API Message-ID: <20210327021534.pjfjctcdczj7facs@ast-mbp> References: <20210325120020.236504-1-memxor@gmail.com> <20210325120020.236504-6-memxor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210325120020.236504-6-memxor@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 05:30:03PM +0530, Kumar Kartikeya Dwivedi wrote: > This adds some basic tests for the low level bpf_tc_* API and its > bpf_program__attach_tc_* wrapper on top. *_block() apis from patch 3 and 4 are not covered by this selftest. Why were they added ? And how were they tested? Pls trim your cc. bpf@vger and netdev@vger would have been enough. My main concern with this set is that it adds netlink apis to libbpf while we already agreed to split xdp manipulation pieces out of libbpf. It would be odd to add tc apis now only to split them later. I think it's better to start with new library for tc/xdp and have libbpf as a dependency on that new lib. For example we can add it as subdir in tools/lib/bpf/. Similarly I think integerating static linking into libbpf was a mistake. It should be a sub library as well. If we end up with core libbpf and ten sublibs for tc, xdp, af_xdp, linking, whatever else the users would appreciate that we don't shove single libbpf to them with a ton of features that they might never use.