On Thu, Aug 30, 2012 at 10:40:24AM +0900, Simon Horman wrote:
> From: Isaku Yamahata <[email protected]>
> 
> set_field action needs more than 64 bits value unlike nx_reg_load action.
> This is preparation for set_field action. mf_value will be used later.
> 
> Signed-off-by: Isaku Yamahata <[email protected]>
> Signed-off-by: Simon Horman <[email protected]>

Presumably the goal is to make ofpact_reg_load able to set any subset of
a field, not just a 64-bit subset.  For this, it would seem more natural
to use union mf_subvalue instead of union mf_value.  Then
nxm_execute_reg_load() would become a single call to
mf_write_subfield(), rather than (as seen in patch 3/5) a conditional.

My hope here is that ofpact_reg_load can be completely uniform across
NXAST_REG_LOAD and OFPAT12_SET_FIELD, except in the translation to and
from OpenFlow actions.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to