From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) by mail.toke.dk (Postfix) with ESMTPS id 1B0979D5BD3 for ; Tue, 27 Dec 2022 21:33:48 +0100 (CET) Received: by mail-vs1-f49.google.com with SMTP id i188so13665797vsi.8 for ; Tue, 27 Dec 2022 12:33:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jPzbbgu9k+12axNhvSl4/wTiUsXQwmOMXV5hrHa+tmc=; b=B8jRiCu+IZy9w9PFG4FPbeLuQzFA0WoAEYOuIYBAZU+qywbJdUDaOwjZokEAg2PutH 0HznxQTrvf0HBpEzW0G+cJuBUAWvl4Oenxg4mgbOTdJxRSaeLjiCXo0YFVKR6vkvW6xT nLK0vgdAKFmEAaiqcbTFzwNQoZczzUiP5y7dfc4hcPsiKaHn+507YwwoP1TFkWOQKTcq ddNyrG74l3GM8WvEMeMYiZS8EHt+CQZ0o/DisvtGodxtaKbkF4h17n8/4T+V14toJppg bXbVBkXwO1/Fva7NQu24Y5aUs9/TvsBlt58upx2ZeSPBbHcrTdbc7rdyd1ObHNM55F94 PF3g== X-Gm-Message-State: AFqh2kpfW1hvvTXpAdoufH2+qFtSnqSZ01pnazDq2Tec6U87C/Ck45wu DCV4ue8vGXWvuj1tfcsYBNw= X-Google-Smtp-Source: AMrXdXtSdeUM8rPjnrF/YFyecb7nI6FgtSLrjMGJ0+kBLUb4ndndRYgWqw1HDIynYZTSX1aSOXzihQ== X-Received: by 2002:a05:6102:830:b0:3c8:2851:c2df with SMTP id k16-20020a056102083000b003c82851c2dfmr2364703vsb.16.1672173226955; Tue, 27 Dec 2022 12:33:46 -0800 (PST) Received: from maniforge.lan ([2620:10d:c091:480::1:13c8]) by smtp.gmail.com with ESMTPSA id o5-20020a05620a2a0500b006fc2f74ad12sm10111442qkp.92.2022.12.27.12.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 12:33:46 -0800 (PST) Date: Tue, 27 Dec 2022 14:33:50 -0600 From: David Vernet To: Stanislav Fomichev Message-ID: References: <20221220222043.3348718-1-sdf@google.com> <20221220222043.3348718-8-sdf@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221220222043.3348718-8-sdf@google.com> User-Agent: Mutt/2.2.9 (2022-11-12) Message-ID-Hash: 2WZQLGPJALVAMPVP4HPVVAY4M33DDJYN X-Message-ID-Hash: 2WZQLGPJALVAMPVP4HPVVAY4M33DDJYN X-MailFrom: dcvernet@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: bpf@vger.kernel.org, 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, 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 X-Mailman-Version: 3.3.7 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v5 07/17] bpf: XDP metadata RX kfuncs List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, Dec 20, 2022 at 02:20:33PM -0800, Stanislav Fomichev wrote: Hey Stanislav, [...] > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index aad12a179e54..b41d18490595 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -74,6 +74,7 @@ struct udp_tunnel_nic_info; > struct udp_tunnel_nic; > struct bpf_prog; > struct xdp_buff; > +struct xdp_md; > > void synchronize_net(void); > void netdev_set_default_ethtool_ops(struct net_device *dev, > @@ -1618,6 +1619,11 @@ struct net_device_ops { > bool cycles); > }; > > +struct xdp_metadata_ops { > + int (*xmo_rx_timestamp)(const struct xdp_md *ctx, u64 *timestamp); > + int (*xmo_rx_hash)(const struct xdp_md *ctx, u32 *hash); > +}; > + > /** > * enum netdev_priv_flags - &struct net_device priv_flags > * > @@ -2050,6 +2056,7 @@ struct net_device { > unsigned int flags; > unsigned long long priv_flags; > const struct net_device_ops *netdev_ops; > + const struct xdp_metadata_ops *xdp_metadata_ops; You need to document this field above the struct, or the docs build will complain: SPHINX htmldocs --> make[2]: Nothing to be done for 'html'. Using sphinx_rtd_theme theme source directory: networking ./include/linux/netdevice.h:2371: warning: Function parameter or member 'xdp_metadata_ops' not described in 'net_device' > int ifindex; > unsigned short gflags; > unsigned short hard_header_len; Thanks, David