conntrackd with libevent
Status from this message: Applied. Thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | -1 means error, not 0src/ | +1 | 1 reply | |
| 2/11 | added struct local_serverinclude/ include/ src/ +1 more | +28 | 1 reply | |
| 3/11 | moved process function pointer to struct local_serverinclude/ src/ src/ | +17 | 2 replies | |
| 4/11 | added alarm_pending()include/ src/ src/ | +16 | 3 replies | |
| 5/11 | added missing ntohs()src/ | +2 | 1 reply | |
| 6/11 | remove obsolete prototypesinclude/ | +0 | 1 reply | |
| 7/11 | use size_tinclude/ include/ src/ +6 more | +33 | 3 replies | |
| 8/11 | check if the received packet is large enoughsrc/ | +5 | 1 reply | |
| 9/11 | added handler callback to mcast_sockinclude/ src/ src/ | +70 | 0 replies | |
| 10/11 | use libeventinclude/ include/ include/ +9 more | +135 | 0 replies | |
| 11/11 | remove the alarm libraryinclude/ include/ src/ +5 more | +81 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [conntrack-utils PATCH r7285 00/11] conntrackd with libevent
Hi Pablo,
another patch series, some smaller fixes, and the big part is conntrackd with libevent. While looking for a nice solutions for the "huge sorted list of alarms" scaling problem, I thought about storing alarms in some sort of tree. After a quick look at libevent, I saw they did it exactly this way. Let's benchmark libevent against the existing alarm library. I don't think it's worth it to continue work on alarm.c, when well-tested code is already available in libevent.
I did not update configure.ac yet to check for libevent, I am waiting for your benchmark results.
Max
---
Max Kellermann (11):
remove the alarm library
use libevent
added handler callback to mcast_sock
check if the received packet is large enough use size_t
remove obsolete prototypes
added missing ntohs()
added alarm_pending()
moved process function pointer to struct local_server added struct local_server
-1 means error, not 0
include/Makefile.am | 2 - include/alarm.h | 33 --------- include/conntrackd.h | 6 +- include/local.h | 20 ++++- include/mcast.h | 16 +++- include/network.h | 8 +- src/Makefile.am | 4 + src/alarm.c | 191 -------------------------------------------------- src/build.c | 2 - src/cache_timer.c | 39 +++++++--- src/local.c | 42 +++++++---- src/main.c | 12 +++ src/mcast.c | 75 ++++++++++++++++++-- src/network.c | 22 +++--- src/run.c | 177 ++++++++++++++++++---------------------------- src/stats-mode.c | 1 src/sync-alarm.c | 58 ++++++++++----- src/sync-ftfw.c | 27 +++++-- src/sync-mode.c | 60 ++++------------ 19 files changed, 329 insertions(+), 466 deletions(-) delete mode 100644 include/alarm.h delete mode 100644 src/alarm.c