Summary: ets lookups are fast, but not as fast a compiled code. this gives about 2x speedup Refs T191 Test Plan: tetrapak build test Reviewers: tbreddin, kseidens, hsychla Reviewed By: tbreddin CC: druss Maniphest Tasks: T191 Differential Revision: https://review.tpip.net/D832 Conflicts: src/netlink.erl
strating netlink sockets in different netns
Summary: if we get only the done part of a multi part message, extracting the sequence number from already queued parts does not work, use the sequence number from the done message instead Test Plan: run gen_link and provoke an empty multi part message, e.g. trigger conntrack table dump when no conntrack entries exists Reviewers: tbreddin, kseidens CC: druss Differential Revision: https://review.tpip.net/D185
and handle enobufs UDP errors The problem was that gen_udp did reset the bufsize to 8k, so by first passing the FDs to gen_udp and the setting the bufsize we can work arround that.