maharishi bhargava <bhargavamaharishi@xxxxxxxxx> writes: > On Tue 2 Jun, 2020, 14:31 Toke Høiland-Jørgensen, <toke@xxxxxxxxxx> wrote: >> >> maharishi bhargava <bhargavamaharishi@xxxxxxxxx> 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. Right, so it's just devmap redirect that breaks. What do you mean 'redirection stops', exactly? How are you seeing this? Does xdp_monitor (from samples/bpf) report any exceptions? -Toke