summaryrefslogtreecommitdiff
path: root/src/udev/udev.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-09 11:15:37 +0200
committerTom Gundersen <teg@jklm.no>2014-09-09 15:30:10 +0200
commit4c83d994566718043e61e568cc214bdc4587f869 (patch)
tree19d720648aee971cc588171d887e1bd4dff889db /src/udev/udev.h
parentb081b27e1433cdc7ac72b25ae8b4db887d79187f (diff)
udev: event - keep one rtnl per worker, rather than per event
Creating the rtnl context is cheap, but freeing it may not be, due to synchronous close(). Also drop some excessive logging. We now log about the changing ifname exactly once.
Diffstat (limited to 'src/udev/udev.h')
-rw-r--r--src/udev/udev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udev.h b/src/udev/udev.h
index faa8f566c2..ed01da30e4 100644
--- a/src/udev/udev.h
+++ b/src/udev/udev.h
@@ -23,6 +23,7 @@
#include <signal.h>
#include "macro.h"
+#include "sd-rtnl.h"
#include "libudev.h"
#include "libudev-private.h"
#include "util.h"
@@ -44,6 +45,7 @@ struct udev_event {
int exec_delay;
usec_t birth_usec;
int fd_signal;
+ sd_rtnl *rtnl;
unsigned int builtin_run;
unsigned int builtin_ret;
bool sigterm;