Re: XDP_REDIRECT with xsks_map and dev_map
maharishi bhargava <[email protected]>
| Newsgroups | org.kernel.vger.xdp-newbies |
|---|---|
| Message-ID | <CA+Jwd2z4_tGfh9wS_CJQL36O_vYyv5knXkm6=A+UvNNtojEcrw@mail.gmail.com> |
On Tue 2 Jun, 2020, 14:31 Toke Høiland-Jørgensen, <[email protected]> wrote: > > maharishi bhargava <[email protected]> writes: > > > Hi, in my XDP program, I want to redirect some packets using AF_XDP > > and redirect other packets directly from driver space. > > Redirection through AF_XDP works fine, but redirection through dev map > > stops after some packets are processed. > > Do you mean it stops even if you are *only* redirecting to a devmap, or > if you are first redirecting a few packets to AF_XDP, then to devmap? > > Also, which driver(s) are the physical NICs you're redirecting to/from > using, and which kernel version are you on? > > -Toke Currently, I'm trying to redirect packets only using devmap. But also have code for redirection using AF_XDP(only when a given condition is satisfied). A DPDK program is running in userspace which will receive packets from AF_XDP. Drivers: ixgbe (2x10GbE Intel NIC) Kernel version 5.3 - Maharishi Bhargava