2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

Support decoding of NTR selection method

This is in preparation for supporting group mod and desc reply
messages with an NTR selection method group experimenter property.

Currently decoding always fails as it only allows properties for known
selection methods and no selection methods are known yet. A subsequent
patch will propose a hash selection method.

NTR selection method
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Simon Horman
2015-03-20 13:50:30 +09:00
committed by Ben Pfaff
parent 4aa6cf580b
commit bc65c25ac6
8 changed files with 328 additions and 8 deletions

View File

@@ -2278,3 +2278,12 @@ mf_format_subvalue(const union mf_subvalue *subvalue, struct ds *s)
}
ds_put_char(s, '0');
}
void
field_array_set(enum mf_field_id id, const union mf_value *value,
struct field_array *fa)
{
ovs_assert(id < MFF_N_IDS);
bitmap_set1(fa->used.bm, id);
fa->value[id] = *value;
}