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 C4A80C4332F for ; Tue, 15 Nov 2022 23:21:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231326AbiKOXVa (ORCPT ); Tue, 15 Nov 2022 18:21:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiKOXV2 (ORCPT ); Tue, 15 Nov 2022 18:21:28 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE826319 for ; Tue, 15 Nov 2022 15:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668554431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HB6zekTxMq+hKIhJy2TlN2K0Ppt1J67WxSLXwQ7+MSo=; b=cfmqMQtIpSzIvvS3qFJIDkj0Dtp3FYLkEf6dsVrSuAoBVRp92Seh4uLClFN3fDCmLiGO4v 5ANw3Tz+LMNf73X6BAcJlKweVV1ZM2FcJxd8wBjhaY94l/GWZ0dLCUbnoR5wTu+2hFZov/ ahVshvclLIQ5KMaszfPXleVp2fRhjwk= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-504-eoky0GX0O7u_oFkmqTVIvQ-1; Tue, 15 Nov 2022 18:20:30 -0500 X-MC-Unique: eoky0GX0O7u_oFkmqTVIvQ-1 Received: by mail-ed1-f70.google.com with SMTP id b13-20020a056402350d00b00464175c3f1eso10938991edd.11 for ; Tue, 15 Nov 2022 15:20:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HB6zekTxMq+hKIhJy2TlN2K0Ppt1J67WxSLXwQ7+MSo=; b=DDssTmCHOV+6B1u8K7fFqy1VQbvuf0BtTbIFY5EPD47ERk87SDK4wNOjfTUcZE8CqM lGE4ss6MVtPA1MZmSeKVg6IOzrCRBGruhCchFsjCTNbd96qOHfGMd06VnT94GatltrlO Iw2SKuDDrwiR3sJ7Fk0XcPExqG5GPwN/z20wMviH2TZ4Vbz91u2MRKv7GzLox5J7WgrF qxkqzNP3TQuT41RRUc6rb3PDQJwo/iJzi2ETtHjS6icHgOvwIs/pjdMi6Kx6VEdxGtzi EHJDhYGjPs/KUiKE/H3AYTILgiycdGlpOSnJwc6iNOTh5vhtMY5l3s8HoUft9NwTsX8E zlnQ== X-Gm-Message-State: ANoB5pmCEYEOmC2SArhkiYErBmSL2WN8jisBk26JzbGEmXqRKoHu7340 KP37+9E07liGproSHUg0qvSxBfSR2SRyDukM6jonpWGGS7tuAM/ofl+TMG4zZciQx5nynOLQoNu PnThDS+E5hHb6 X-Received: by 2002:a17:907:20c2:b0:7ae:967a:50bb with SMTP id qq2-20020a17090720c200b007ae967a50bbmr15745809ejb.383.1668554428720; Tue, 15 Nov 2022 15:20:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5trZODpBQ09vRtNhMWv8QUfUjuwKz3UoAgxjob/GtLbJSfb4HKBIn/zGAtCHtmuzYW+aASyw== X-Received: by 2002:a17:907:20c2:b0:7ae:967a:50bb with SMTP id qq2-20020a17090720c200b007ae967a50bbmr15745759ejb.383.1668554427864; Tue, 15 Nov 2022 15:20:27 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id n5-20020a05640204c500b00457c85bd890sm6741473edw.55.2022.11.15.15.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 15:20:27 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 3718C7A6D70; Wed, 16 Nov 2022 00:20:26 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Stanislav Fomichev , bpf@vger.kernel.org Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, David Ahern , Jakub Kicinski , Willem de Bruijn , Jesper Dangaard Brouer , Anatoly Burakov , Alexander Lobakin , Magnus Karlsson , Maryam Tahhan , xdp-hints@xdp-project.net, netdev@vger.kernel.org Subject: Re: [xdp-hints] [PATCH bpf-next 06/11] xdp: Carry over xdp metadata into skb context In-Reply-To: <20221115030210.3159213-7-sdf@google.com> References: <20221115030210.3159213-1-sdf@google.com> <20221115030210.3159213-7-sdf@google.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 16 Nov 2022 00:20:26 +0100 Message-ID: <87wn7vdcud.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index b444b1118c4f..71e3bc7ad839 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -6116,6 +6116,12 @@ enum xdp_action { > XDP_REDIRECT, > }; > > +/* Subset of XDP metadata exported to skb context. > + */ > +struct xdp_skb_metadata { > + __u64 rx_timestamp; > +}; Okay, so given Alexei's comment about __randomize_struct not actually working, I think we need to come up with something else for this. Just sticking this in a regular UAPI header seems like a bad idea; we'd just be inviting people to use it as-is. Do we actually need the full definition here? It's just a pointer declaration below, so is an opaque forward-definition enough? Then we could have the full definition in an internal header, moving the full definition back to being in vmlinux.h only? -Toke