diff options
author | Tom Gundersen <teg@jklm.no> | 2014-09-09 11:15:37 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-09-09 15:30:10 +0200 |
commit | 4c83d994566718043e61e568cc214bdc4587f869 (patch) | |
tree | 19d720648aee971cc588171d887e1bd4dff889db /src/udev/udev.h | |
parent | b081b27e1433cdc7ac72b25ae8b4db887d79187f (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.h | 2 |
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; |