[CRIU] [PATCH 01/12] images: add a network namespace id into images
Andrei Vagin
avagin at openvz.org
Tue Feb 28 15:52:57 PST 2017
From: Andrei Vagin <avagin at virtuozzo.com>
It is possible to assign id for network namespaces and
this id will be used by the kernel in some netlink messages.
If no id is assigned when the kernel needs it, it will be
automatically assigned by the kernel.
For example, this id is reported for peer veth devices.
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
images/netdev.proto | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/images/netdev.proto b/images/netdev.proto
index 2f2f3d1..5bf39ef 100644
--- a/images/netdev.proto
+++ b/images/netdev.proto
@@ -42,6 +42,14 @@ message net_device_entry {
repeated sysctl_entry conf6 = 10;
optional macvlan_link_entry macvlan = 11;
+
+ optional uint32 peer_ifindex = 12;
+ optional uint32 peer_nsid = 13;
+}
+
+message netns_id {
+ required uint32 id = 1;
+ required int32 nsid = 2;
}
message netns_entry {
@@ -53,4 +61,6 @@ message netns_entry {
repeated sysctl_entry def_conf6 = 5;
repeated sysctl_entry all_conf6 = 6;
+
+ repeated netns_id nsids = 7;
}
--
2.7.4
More information about the CRIU
mailing list