mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ofp-actions: Right-justify the value in ofpact_reg_load 'subvalue' member.
This is what I intended when I suggested using mf_subvalue, but I didn't notice the difference until after applying the patch. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
@@ -346,7 +346,9 @@ learn_execute(const struct ofpact_learn *learn, const struct flow *flow,
|
||||
load->dst.field = spec->dst.field;
|
||||
load->dst.ofs = spec->dst.ofs + ofs;
|
||||
load->dst.n_bits = chunk;
|
||||
load->subvalue = value;
|
||||
bitwise_copy(&value, sizeof value, ofs,
|
||||
&load->subvalue, sizeof load->subvalue, 0,
|
||||
chunk);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user