Skip to content

conntrackd with libevent

Max Kellermann netfilter-devel 1 version Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 18 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11-1 means error, not 0src/run.c+1 -11 reply
2/11added struct local_serverinclude/conntrackd.h include/local.h src/local.c +1 more+28 -181 reply
3/11moved process function pointer to struct local_serverinclude/local.h src/local.c src/run.c+17 -92 replies
4/11added alarm_pending()include/alarm.h src/alarm.c src/cache_timer.c+16 -13 replies
5/11added missing ntohs()src/sync-mode.c+2 -21 reply
6/11remove obsolete prototypesinclude/network.h+0 -11 reply
7/11use size_tinclude/mcast.h include/network.h src/build.c +6 more+33 -313 replies
8/11check if the received packet is large enoughsrc/sync-mode.c+5 -01 reply
9/11added handler callback to mcast_sockinclude/mcast.h src/mcast.c src/sync-mode.c+70 -390 replies
10/11use libeventinclude/alarm.h include/conntrackd.h include/local.h +9 more+135 -3010 replies
11/11remove the alarm libraryinclude/Makefile.am include/alarm.h src/Makefile.am +5 more+81 -1220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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