[CRIU] [PATCH 0/5] [RFC] netlink: dump and restore data from a receive queue

Pavel Emelyanov xemul at virtuozzo.com
Fri Jul 15 11:07:46 PDT 2016


On 06/14/2016 02:35 AM, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
> 
> This series depends on kernel changes:
> [PATH net-next 0/3] netlink: prepare to dump and restore data from a receive queue

How did these patches go?

> It works only if a socket doesn't have a running callback. If a socket has a
> running callback, it isn't enough to dump data from a receive queue, because
> the callback will generate a new portion as soon as we read data from the
> queue.
> 
> Andrew Vagin (5):
>   check: check whether NETLINK_REPAIR is supported or not
>   sk-queue: add an ability to dump addresses for messages
>   netlink: request flags for netlink sockets
>   netlink: restore data in a received queue for netlink sockets
>   zdtm: add a new test to check netlink sockets with queued data
> 
>  criu/cr-check.c                    | 15 ++++++++++
>  criu/include/kerndat.h             |  3 ++
>  criu/include/netlink_diag.h        |  9 ++++++
>  criu/include/sk-queue.h            |  2 +-
>  criu/include/sockets.h             |  8 ++++++
>  criu/kerndat.c                     | 29 +++++++++++++++++++
>  criu/sk-netlink.c                  | 58 ++++++++++++++++++++++++++++++++++----
>  criu/sk-queue.c                    | 30 ++++++++++++++++++--
>  criu/sk-unix.c                     |  2 +-
>  criu/sockets.c                     |  2 +-
>  images/sk-packet.proto             |  1 +
>  test/zdtm/static/Makefile          |  2 ++
>  test/zdtm/static/sk-netlink.c      | 53 +++++++++++++++++++++++++++++-----
>  test/zdtm/static/sk-netlink02.c    |  1 +
>  test/zdtm/static/sk-netlink02.desc |  1 +
>  15 files changed, 199 insertions(+), 17 deletions(-)
>  create mode 120000 test/zdtm/static/sk-netlink02.c
>  create mode 100644 test/zdtm/static/sk-netlink02.desc
> 



More information about the CRIU mailing list