Re: AF_XDP

Magnus Karlsson <[email protected]> Fri, 1 Dec 2023 12:19:09 +0100
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAJ8uoz0=LQdUAyYKdRN0ytxU_hzdwLYQY7KDsAz6MpS8bRyYyw@mail.gmail.com>
On Fri, 1 Dec 2023 at 12:11, Srivats P <[email protected]> wrote:
>
> Hi,
>
> How can I get a list of NIC drivers that support AF_XDP?
>
> The list at https://github.com/xdp-project/xdp-project/blob/master/areas/drivers/README.org
> seems VERY outdated (last updated 4 years ago).
>
> The list at https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md#xdp
> seems more recent (updated last year).
>
> But both lists are for XDP, not AF_XDP.
>
> Is there a way I can grep the source to compile a list for AF_XDP?

For the ones that support AF_XDP in XDP_DRV copy-mode: grep for ndo_bpf

For zero-copy support: grep for ndo_xsk_wakeup

> It would be good to have a list similar to the DPDK supported NICs
> list - https://core.dpdk.org/supported/nics/
>
> Srivats
>