Re: how to run bcc xdp_redirect_cpu.py example


Gary Lin
 

On Tue, May 21, 2019 at 08:17:16PM -0700, forrest0579@... wrote:
Hi, I’m new to bpf and when run `iovisor/bcc` examples with `xdp_redirect_cpu.py` in my vm, the connection will lost and I have to restart my vm. In my understanding this example just foword the package from one cpu to another and the package should not lost. Am I missing something? Anyone can help me? Thank you

PS: xdp is loaded in xdpgeneric mode
CPUMAP is not supported by generic XDP(*). Besides, it provides very little
benefit since the packet is already packaged into a skb and there is no need
to package it again with another CPU.

Cheers,

Gary Lin

(*) https://github.com/torvalds/linux/blob/v5.1/net/core/filter.c#L3560-L3563

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