Re: AF_XDP and dma

Magnus Karlsson <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAJ8uoz3ipXOE2VeMLh02R0FKysuovLf3vFU_z5nEOffHNps1=g@mail.gmail.com>
On Fri, Apr 9, 2021 at 12:12 PM ratheesh kannoth <[email protected]> wrote:
>
> On Fri, Apr 9, 2021 at 3:37 PM Magnus Karlsson
> <[email protected]> wrote:
> > Only if you are writing your own kernel driver for a NIC. Are you doing that?
> Yes.

Then looking at user-space code will not help you :-). Take a look at
the code in driver/net/ethernet/intel/i40e/i40e_xsk.c in the Linux
kernel for an example on how to DMA map the umem.

> > > > /Magnus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.