Re: eBPF: how to check the flow table

2016-09-19 Thread Alexei Starovoitov
On Mon, Sep 19, 2016 at 08:56:55AM +0200, Eric Leblond wrote: > Hello, > > On Sun, 2016-09-18 at 14:02 +0200, Eric Leblond wrote: > > Hello, > > > > I'm currently testing a code implementing AF_PACKET bypass for > > Suricata. The idea is that Suricata is updating a hash table > > containing > >

Re: eBPF: how to check the flow table

2016-09-19 Thread Eric Leblond
Hello, On Sun, 2016-09-18 at 14:02 +0200, Eric Leblond wrote: > Hello, > > I'm currently testing a code implementing AF_PACKET bypass for > Suricata. The idea is that Suricata is updating a hash table > containing > a list of flows it does not want to see anymore. > > I want to check flow

eBPF: how to check the flow table

2016-09-18 Thread Eric Leblond
Hello, I'm currently testing a code implementing AF_PACKET bypass for Suricata. The idea is that Suricata is updating a hash table containing a list of flows it does not want to see anymore. I want to check flow timeout from the userspace, so my current algorithm is doing:     while