Re: [iovisor-dev] Handling a set of free elements with current map implementations

2017-01-20 Thread Alexei Starovoitov via iovisor-dev
dhcp function is a slow path and has quite a bit of complexity that is not appropriate for datapath. Normal dhcp is handled by user space dhclient. So I think it would be better to do the same in your case. As an orthogonal discussion it would be useful indeed to have push()/pop() like logic in

[iovisor-dev] Handling a set of free elements with current map implementations

2017-01-20 Thread Mauricio Vasquez via iovisor-dev
Hello, We are having some issues for handling the address pool of a DHCP server implemented with eBPF. We tried to implement it using a map containing all the available addresses, this map is filled at the beginning and then addresses are taken (and also released), however we cannot find a