From: "Desouza, Ederson" <ederson.desouza@intel.com>
To: "andrii.nakryiko@gmail.com" <andrii.nakryiko@gmail.com>
Cc: "Karlsson, Magnus" <magnus.karlsson@intel.com>,
"bpf@vger.kernel.org" <bpf@vger.kernel.org>,
"xdp-hints@xdp-project.net" <xdp-hints@xdp-project.net>,
"Lobakin, Alexandr" <alexandr.lobakin@intel.com>,
"Swiatkowski, Michal" <michal.swiatkowski@intel.com>,
"brouer@redhat.com" <brouer@redhat.com>,
"saeed@kernel.org" <saeed@kernel.org>
Subject: Re: A look into XDP hints for AF_XDP
Date: Thu, 15 Jul 2021 19:34:20 +0000 [thread overview]
Message-ID: <de1d83e6d50131858184adf750f6509db425c107.camel@intel.com> (raw)
In-Reply-To: <CAEf4BzYHZRRGTwMswAUrtcpSyox_-5p1yMDwf21oK7tBCqViZA@mail.gmail.com>
On Wed, 2021-07-07 at 15:26 -0700, Andrii Nakryiko wrote:
[snip]
> > > I don't follow, what is not working?
> >
> > I get something like this:
> >
> > struct xdp_hints {
> > yet_another_timestamp;
> > rx_timestamp;
> > tx_timestamp;
> > hash32;
> > extension_id;
> > field_map;
> > };
>
> it could be due to corrupted BTF. Can you show output of
>
> bpftool btf dump file /sys/kernel/btf/igc
>
> (note no "format c").
>
Errr... found out the issue on my side - this is a BTF described by
hand, and I didn't name the types - only defined their size and
bits_offset. Sorry for the noise!
> >
> > Note how there's no type before the fields, one has to figure out if
> > `rx_timestamp` is u32 or u64.
> >
> >
> > >
> > > > With the driver specific struct (or by using the generic one, if no
> > > > specific fields are needed), the application can then access the XDP
> > > > frame metadata. I've also added some helpers to aid getting the
> > > > metadata.
> > > >
> > > > I added some examples on how to use those (they may be too simplistic),
> > > > so it's possible to get a feel on how this API might work.
> > > >
> > > > My goals for this email are to check if this approach is valid and what
> > > > pitfalls can you see. I didn't send a patch series yet to not jump
> > > > ahead Alexandr and Michal work (I can rebase on top of their work
> > > > later) and because the igc RX and TX timestamp implementation I'm using
> > > > to provide more real looking data is not yet complete.
> > > >
> > > > Another goal is to ensure that AF_XDP side is not forgotten in the XDP
> > > > hints discussion =D
> > >
> > > Thanks for pointing that out :-)
> > >
> > > > Naturally, if someone finds any issue trying those patches, please let
> > > > me know!
> > >
> >
prev parent reply other threads:[~2021-07-15 19:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-24 0:10 Desouza, Ederson
2021-06-24 19:54 ` Jesper Dangaard Brouer
2021-06-24 21:54 ` Desouza, Ederson
2021-06-24 22:17 ` Desouza, Ederson
2021-06-24 22:39 ` Alexei Starovoitov
2021-07-07 16:38 ` Jesper Dangaard Brouer
2021-07-07 22:26 ` Andrii Nakryiko
2021-07-15 19:34 ` Desouza, Ederson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.xdp-project.net/postorius/lists/xdp-hints.xdp-project.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=de1d83e6d50131858184adf750f6509db425c107.camel@intel.com \
--to=ederson.desouza@intel.com \
--cc=alexandr.lobakin@intel.com \
--cc=andrii.nakryiko@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=brouer@redhat.com \
--cc=magnus.karlsson@intel.com \
--cc=michal.swiatkowski@intel.com \
--cc=saeed@kernel.org \
--cc=xdp-hints@xdp-project.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox