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(setup_env.sh).


My test case is run `ping` from netns ns1 to 192.168.2.2 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(xdp_ping.py).

Thanks for helping me!

Forrest

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.

Mauricio.


Join iovisor-dev@lists.iovisor.org to automatically receive all group messages.