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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user