2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00
criu/images/bpfmap-file.proto
Abhishek Vijeev 02f7e3434d images: adding support for BPF map file name and ifindex
This commit adds a BPF map's name and ifindex to its protobuf image.
ifindex is the index of the network interface to which the BPF map is
attached and can be specified via a parameter while creating the BPF
map (BPF_MAP_CREATE). This commit also provides a default value of
false to the field 'frozen'.

Source files modified:

* images/bpfmap-file.proto

Signed-off-by: Abhishek Vijeev <abhishek.vijeev@gmail.com>
2020-10-20 00:18:24 -07:00

23 lines
647 B
Protocol Buffer

syntax = "proto2";
import "opts.proto";
import "fown.proto";
message bpfmap_file_entry {
required uint32 id = 1;
required uint32 flags = 2 [(criu).flags = "rfile.flags"];
required uint64 pos = 3;
required fown_entry fown = 4;
required uint32 map_type = 5;
required uint32 key_size = 6;
required uint32 value_size = 7;
required uint32 map_id = 8;
required uint32 max_entries = 9;
required uint32 map_flags = 10;
required uint64 memlock = 11;
required bool frozen = 12 [default = false];
required string map_name = 13;
required uint32 ifindex = 14 [default = 0];
optional sint32 mnt_id = 15 [default = -1];
}