[CRIU] [PATCH net-next 0/3] [RFC] netlink: prepare to dump and restore data from a receive queue

Andrey Vagin avagin at openvz.org
Sun Jun 12 23:07:18 PDT 2016


CRIU can dump queued data for unix and tcp sockets,
now it's time for netlink sockets.

Here are there questions.
* How to dump data from a receive queue
  We can set peeking offset like we do for unix sockets.

* How to restore data back to a receive queue
  I suggest to add a repair mode like we do for tcp sockets.

* When we can dump data from a receive queue.
  I think we can do this only if a socket doesn't have a running callback.

Cc: Pavel Emelyanov <xemul at virtuozzo.com>
Cc: "David S. Miller" <davem at davemloft.net>
Cc: Ken-ichirou MATSUZAWA <chamaken at gmail.com>
Cc: Daniel Borkmann <daniel at iogearbox.net>
Cc: Florian Westphal <fw at strlen.de>
Cc: Herbert Xu <herbert at gondor.apana.org.au>
Cc: David Herrmann <dh.herrmann at gmail.com>
Cc: Christophe Ricard <christophe.ricard at gmail.com>

Andrey Vagin (3):
  netlink: allow to set peeking offset for sockets
  netlink: add an ability to restore messages in a receive queue
  netlink/diag: report flags for netlink sockets

 include/uapi/linux/netlink.h      |  1 +
 include/uapi/linux/netlink_diag.h | 10 +++++
 net/netlink/af_netlink.c          | 82 ++++++++++++++++++++++++++-------------
 net/netlink/af_netlink.h          |  9 +++++
 net/netlink/diag.c                | 25 ++++++++++++
 5 files changed, 99 insertions(+), 28 deletions(-)

-- 
2.5.5



More information about the CRIU mailing list