Re: how to make redirect_map work?


Toshiaki Makita
 

On 2019/05/31 11:25, forrest0579@... wrote:
On Thu, May 30, 2019 at 05:40 AM, Mauricio Vasquez wrote:
You're using veth interfaces, in this case you have to attach the
program in SKB mode, to do it set flags = 1 << 1.
Why should I attach xdp in SKB mode when using veth interface, is there any docs for that? Is it because I use DEVMAP?
You should not need SKB mode on kernel 5.0.
Do you attach any XDP program on vbox1 and vbox2? If not, redirected packets will be dropped.
Please refer to the slides below for details.
https://netdevconf.org/0x13/session.html?talk-veth-xdp

Toshiaki Makita

In my test, I can attach my xdp program in driver mode using veth and just works as my expect when I just return XDP_DROP or XDP_PASS.
My kerner version is "5.0.0-15"(ubuntu/disco64) which support veth xdp in driver mode. https://github.com/xdp-project/xdp-project/issues/23
And when I test my program in SKB mode, the connection also can't be built.

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