NIKSS-vSwitch / nikss

Native In-Kernel P4-programmable Software Switch for Software-Defined Networking (previously PSA-eBPF)
Apache License 2.0
47 stars 4 forks source link

Failed to read register without entries (hash map) #72

Closed tatry closed 1 year ago

tatry commented 1 year ago

When reading empty register (without entries, using hash map) psabpf-ctl tool returns error:

failed to build register JSON: Invalid argument

and exits with non-zero code.


Register definition:

struct nested {
    bit<16> nested_field;
}
struct type1 {
    bit<16> field0;
    nested nested_struct;
}
Register<type1, bit<64>>(10) reg;

Used command:

psabpf-ctl register get pipe 1 ingress_reg