Re: [iovisor-dev] Question about backward jump in bpf

2017-10-03 Thread zhiting zhu via iovisor-dev
Thanks for the classification. On Tue, Oct 3, 2017 at 11:30 PM, Alexei Starovoitov < alexei.starovoi...@gmail.com> wrote: > On Tue, Oct 3, 2017 at 9:26 PM, zhiting zhu via iovisor-dev > wrote: > > Hi, > > > > What's the use case for backward jump of ebpf? The

Re: [iovisor-dev] Question about backward jump in bpf

2017-10-03 Thread Alexei Starovoitov via iovisor-dev
On Tue, Oct 3, 2017 at 9:26 PM, zhiting zhu via iovisor-dev wrote: > Hi, > > What's the use case for backward jump of ebpf? The verifier will reject the > backward edge which makes the backward jump not useful. Am I missing > something? > > Also, from what I read

[iovisor-dev] Question about backward jump in bpf

2017-10-03 Thread zhiting zhu via iovisor-dev
Hi, What's the use case for backward jump of ebpf? The verifier will reject the backward edge which makes the backward jump not useful. Am I missing something? Also, from what I read online, some slides said ebpf allows backward jump and some said doesn't. From the bytecode, it seems it allows

Re: [iovisor-dev] Rx-tx summaries by subnet

2017-10-03 Thread Marek VavruĊĦa via iovisor-dev
Hi, Linux 4.11 has LPM trie support exactly for this [1]. I'm using regular hashmaps for now with a fixed subnet length step (e.g. for IPv4, I'm looking up /24, /16) for steering purposes. This however might not work in your use case, especially if you're not in control of the block subdivision.