Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4145680pxb; Mon, 27 Sep 2021 10:18:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnUsylWL7sPvuMEfM6LY9mYrAfKYTj5sOUF9b2P5JD/x9HxnLcNZlYX6GUKziuhSiLQOwr X-Received: by 2002:a62:800a:0:b0:447:b73e:6e18 with SMTP id j10-20020a62800a000000b00447b73e6e18mr814012pfd.28.1632763124457; Mon, 27 Sep 2021 10:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763124; cv=none; d=google.com; s=arc-20160816; b=o1qk8WCLocBNT5gH2ImqQV9rApLKmS8llN1KyyVR5ll8tpvLJMvS540uaMoYFI/6Sf o2jQ/UN61QI1fJnvCPzjf5Mugw9QXdFs0lBizWIXeMaRDkSWwvskXRvxhYSiLx1zk6yB tYE936zY7eJwO6gyKNO2BYlDd9hShG9H1Gk6QBW2sDYfiHT9YtbpLfr2qOgkxVd3FLj1 SFDKMtghA6sPPrV3S1/LwtgQVX6N0c7RhWQf5eCXUdT4j3kcHOL05hbkVbaArsX70vHn sLhBd0THzDle/BKefJHOejyLK/sONQd4myEFoXdtpWAhHtiT2Rad7a/UjAt5AX+Flk7P kzKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9Q9onsPk/TXaOCMEv4AT2657vSl1grxBTxAt6ZfawYo=; b=iEQYbRvCzhQu2ccC9r5hxNhw+5VRNt6nIHFTRAsnH42KEOhpzm8SCcVbm1i1cC9ycI 9ftyMBCwg22yWcpxCDoHqgeW4diw+9M/XjBXzE1wwrEJjLgvjF8e/C+2d5v5IBZOS2FN 1ZQNOcjXkQILOd2I0y04Zb07RmfVjcB0nnjOQg82Y7xTTwfikB2WI983iD1TvHn7DE9K 7N+c799XrOHarM+rgUoZfvHBZKwSIa488/28l/qcNDbKdRHoAH3iPTzHUy4UKZ9Jj+WR nAKD3lPxMKRZeXRZMyxduVGQL2UyAvC1d6u6qq3pGZ1DZXO/HzKHDlJbw3W3ByyoPBTp mPog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=TmTxwovu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si23829535plz.353.2021.09.27.10.18.32; Mon, 27 Sep 2021 10:18:44 -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=@google.com header.s=20210112 header.b=TmTxwovu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235847AbhI0RTR (ORCPT + 99 others); Mon, 27 Sep 2021 13:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235685AbhI0ROk (ORCPT ); Mon, 27 Sep 2021 13:14:40 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6294BC051740 for ; Mon, 27 Sep 2021 10:06:03 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id z184so3305277iof.5 for ; Mon, 27 Sep 2021 10:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9Q9onsPk/TXaOCMEv4AT2657vSl1grxBTxAt6ZfawYo=; b=TmTxwovudp5NuP4w1Yeav+5kzXC8glrF0pAih0hr9exRJq9p+mHHhKDJElNbNQb1Ij h+r066Z2Av7U6b40IEiWrx12F7aN4+Z5f8L9+T7LzV4stdIMkoGD8e3ug2D5RsKORi/i nhLKqjHNYmRrcQr30jTbOCBw6CP6HDWTkcMekBeDmzIpiBtjcvgqj2vbN99Tk5LReCQh bF1qrR6bCgYDfsgmNDbd5XtDvWz9+ca1ZnElRUxlI0oIHsmrzcVzC4L5Bk45+AtRdHnI cR+KTBa0Bi66JFv2Gv1nZWs5hxg0qBljSSrlt3NaBdHQffIeQ0Bq1bT+emufpjF4Oeab 5gsQ== 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:content-transfer-encoding; bh=9Q9onsPk/TXaOCMEv4AT2657vSl1grxBTxAt6ZfawYo=; b=h5lZ1WZNADM9tZwMt2TbOkLlh4LR76UWxW4gwpZSZ/01gpGM4yHCW9rpX8Uuu5OyRm Do3FcGwtdRO4iBOP8EkUn97+8ju9xC3OrNBdCrt9G67jbG7kK7yZOokgS1Qxg1D/vv89 CdGKCFvXfJI39FdAPqiJolm3GBukzUXFJeKprGmY1jO+2hWLFkO7+5guAGY8hWoc6xwa vuVrmqyYLlQjZ9y6FKQSiOqMUktX9TzFz2Ey96m+MxFwEwYpoSt/LQIlLISW+WaDr+/B xYT5Ec8xdBCmiNsscl4HcO/NMAWPn/LseaNWlac4N0hzcz0jzRnoqXuJHdqevW/EAsGB pyuQ== X-Gm-Message-State: AOAM530IkyM0g0oZok/+D+V2+ZXwgLEksOXPXw1ORAtC09KHOKd9Mmkv n3y/ioZaJoVha2zSCggWbIkSKMrQpnhQaqBGIm8PAA== X-Received: by 2002:a02:1049:: with SMTP id 70mr827455jay.123.1632762362607; Mon, 27 Sep 2021 10:06:02 -0700 (PDT) MIME-Version: 1.0 References: <20210922222935.495290-1-irogers@google.com> <014c2f18-cede-ccc6-6d45-ca09093a6c76@iogearbox.net> In-Reply-To: <014c2f18-cede-ccc6-6d45-ca09093a6c76@iogearbox.net> From: Ian Rogers Date: Mon, 27 Sep 2021 10:05:48 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] tools/include: Update if_link.h and netlink.h To: Daniel Borkmann Cc: Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , "David S. Miller" , Igor Russkikh , Mark Starovoytov , Horatiu Vultur , Antoine Tenart , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Nikolay Aleksandrov , Roopa Prabhu , Jiri Pirko , Vlad Buslov , Ido Schimmel , Alexandre Cassen , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 27, 2021 at 10:03 AM Daniel Borkmann wro= te: > > On 9/27/21 7:02 PM, Daniel Borkmann wrote: > > On 9/23/21 12:29 AM, Ian Rogers wrote: > >> Sync the uAPI headers so that userspace and the kernel match. These > >> changes make the tools version match the updates to the files in the > >> kernel directory that were updated by commits: > >> > >> if_link.h: > >> 8f4c0e01789c hsr: enhance netlink socket interface to support PRP > >> 427f0c8c194b macvlan: Add nodst option to macvlan type source > >> 583be982d934 mctp: Add device handling and netlink interface > >> c7fa1d9b1fb1 net: bridge: mcast: dump ipv4 querier state > >> 2dba407f994e net: bridge: multicast: make tracked EHT hosts limit conf= igurable > >> b6e5d27e32ef net: ethernet: rmnet: Add support for MAPv5 egress packet= s > >> 14452ca3b5ce net: qualcomm: rmnet: Export mux_id and flags to netlink > >> 78a3ea555713 net: remove comments on struct rtnl_link_stats > >> 0db0c34cfbc9 net: tighten the definition of interface statistics > >> 571912c69f0e net: UDP tunnel encapsulation module for tunnelling diffe= rent protocols like MPLS, IP, NSH etc. > >> 00e77ed8e64d rtnetlink: add IFLA_PARENT_[DEV|DEV_BUS]_NAME > >> 829eb208e80d rtnetlink: add support for protodown reason > >> > >> netlink.h: > >> d07dcf9aadd6 netlink: add infrastructure to expose policies to userspa= ce > >> 44f3625bc616 netlink: export policy in extended ACK > >> d409989b59ad netlink: simplify NLMSG_DATA with NLMSG_HDRLEN > >> a85cbe6159ff uapi: move constants from to > >> > >> v2. Is a rebase and sync to the latest versions. A list of changes > >> computed via diff and blame was added to the commit message as su= ggested > >> in: > >> https://lore.kernel.org/lkml/20201015223119.1712121-1-irogers@google.c= om/ > >> > >> Signed-off-by: Ian Rogers > > > > With both patches applied to bpf-next, this would break our CI: > > > > [...] > > CC bench.o > > CC bench_count.o > > CC bench_rename.o > > CC bench_trigger.o > > CC bench_ringbufs.o > > BINARY bench > > BINARY xdpxceiver > > xdpxceiver.c: In function =E2=80=98testapp_invalid_desc=E2=80=99: > > xdpxceiver.c:1223:41: warning: implicit declaration of function =E2=80= =98ARRAY_SIZE=E2=80=99 [-Wimplicit-function-declaration] > > 1223 | pkt_stream_generate_custom(test, pkts, ARRAY_SIZE(pkts)); > > | ^~~~~~~~~~ > > /usr/bin/ld: /tmp/ccoQONpi.o: in function `testapp_invalid_desc': > > /root/daniel/bpf/tools/testing/selftests/bpf/xdpxceiver.c:1223: undefin= ed reference to `ARRAY_SIZE' > > collect2: error: ld returned 1 exit status > > make: *** [Makefile:166: /root/daniel/bpf/tools/testing/selftests/bpf/x= dpxceiver] Error 1 > > > > Please take a look and submit v3 of the series with the build issue fix= ed. > > See also: https://github.com/kernel-patches/bpf/pull/1822/checks?check_ru= n_id=3D3714445336 Thanks, this looks like an "include what you use" problem in xdpxceiver.c and so I'll need to add a patch to fix that ahead of these patches. Ian > Thanks, > Daniel