All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
To: Ben LaGreca <benlagreca02@gmail.com>
Cc: <xdp-newbies@vger.kernel.org>
Subject: Re: recvmsg on AF_XDP
Date: Fri, 2 Aug 2024 18:06:03 +0200	[thread overview]
Message-ID: <Zq0D6+Nt58dNPmx2@boxer> (raw)
In-Reply-To: <CAB6C9b_vR171Jwx=CT_-PVLy9Gt-tuy6P3_UZK1Pm_487uwJeQ@mail.gmail.com>

On Tue, Jul 23, 2024 at 07:28:12PM -0400, Ben LaGreca wrote:
> Is it possible to use recvmsg/read on an AF_XDP socket? I've been able
> to set up a socket, write an XDP program, and properly receive frames
> in UMEM with the RX and Fill rings, but am more interested in using
> standard linux C functions. Some libxdp documentation mentions the use
> of poll and sendto/recvmsg, and I have successfully polled the socket
> (as one would a normal AF_INET socket), but can't find documentation
> on clearing the revents status after a poll. Any help or redirection
> to documentation would be appreciated.

Are you aware of
https://github.com/xdp-project/bpf-examples/tree/master/AF_XDP-example

?

> 
> -- Ben LaGreca
> 

  reply	other threads:[~2024-08-02 16:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 23:28 recvmsg on AF_XDP Ben LaGreca
2024-08-02 16:06 ` Maciej Fijalkowski [this message]
2024-08-05  7:39 ` Magnus Karlsson

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zq0D6+Nt58dNPmx2@boxer \
    --to=maciej.fijalkowski@intel.com \
    --cc=benlagreca02@gmail.com \
    --cc=xdp-newbies@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.