Re: AF_XDP and dma
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: AF_XDP and dma
- From: ratheesh kannoth <ratheesh.ksz@xxxxxxxxx>
- Date: Fri, 9 Apr 2021 16:20:43 +0530
- In-reply-to: <CAJ8uoz3ipXOE2VeMLh02R0FKysuovLf3vFU_z5nEOffHNps1=g@mail.gmail.com>
- References: <CAGZFCEHR2brK5yoMZt=GsaZtg_0XB+sb-XLz_m5WjZr9xQDP3A@mail.gmail.com> <CAJ8uoz2Kv7aQP1BoxKET+v5k9jgSgQCK38RpNp-xCzwfEKvFRA@mail.gmail.com> <CAGZFCEGDtF1SfBWEbrYG9=Na+71mJ1kk5L+9W3f-UcKjYGjLCw@mail.gmail.com> <CAJ8uoz0O2yXoA09ZNO5iviFOv-ipgaf0ZhYD=ZUb8QG7VP5Edg@mail.gmail.com> <CAGZFCEEG=r1i4PY7bT3KOTEwR1RTMeqyS31fZ+kYp_XyvaH61w@mail.gmail.com> <CAJ8uoz3ipXOE2VeMLh02R0FKysuovLf3vFU_z5nEOffHNps1=g@mail.gmail.com>
On Fri, Apr 9, 2021 at 3:50 PM Magnus Karlsson
<magnus.karlsson@xxxxxxxxx> wrote:
> 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.
Thanks, i could see that it is pinning the pages and mapping.
Using Kernel DMA api, we can map the virtual memory. But how the NIC
can write/read to the memory if it is not physically contiguous. NIC
card only understand physical addresses. Correct me.
> > > > > /Magnus
[Index of Archives]
[Linux Networking Development]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite Campsites]