Re: how to make redirect_map work?

Mauricio Vasquez

On 5/30/19 4:46 AM, forrest0579@... wrote:
Hi all,

Recently I try to build a network topology to test redirect_map, the topology is as below and the build script in the attachment(

My test case is run `ping` from netns ns1 to in netns ns2.
I load xdp prog to vhost1 and vhost2. What the prog do is just use redirect_map to redirect package from one ingress to another egress(AFAIK, redirect func is working for that, ifx me if I am wrong).

The result is I can't ping from one netns to another. The xdp prog is in the attachment(

Thanks for helping me!


Hello Forrest,

You're using veth interfaces, in this case you have to attach the program in SKB mode, to do it set flags = 1 << 1.


Join { to automatically receive all group messages.