diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2012-09-12 17:44:28 +0900 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-09-12 09:59:38 -0700 |
commit | 9bab681f33e09882e8f652c8e96a2b998b3ef9b3 (patch) | |
tree | 145ed99da974837a40c2bb6c21ac74c0942279a6 /lib/meta-flow.h | |
parent | beffe87554210fb43be20eb23251c87e5eb4b529 (diff) |
lib/ofp-actions: use mf_subvalue in struct ofpact_reg_load.
Use a uninion mf_subvalue instead of a uint64_t for
the value member of struct ofpact_reg_load.
set_field action needs to hold values wider than 64 bits.
This is preparation for set_field action.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/meta-flow.h')
-rw-r--r-- | lib/meta-flow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/meta-flow.h b/lib/meta-flow.h index 8c8b7be8..60bfecaa 100644 --- a/lib/meta-flow.h +++ b/lib/meta-flow.h @@ -318,6 +318,8 @@ void mf_set_wild(const struct mf_field *, struct match *); void mf_random_value(const struct mf_field *, union mf_value *value); /* Subfields. */ +void mf_write_subfield_flow(const struct mf_subfield *, + const union mf_subvalue *, struct flow *); void mf_write_subfield(const struct mf_subfield *, const union mf_subvalue *, struct match *); @@ -340,5 +342,6 @@ char *mf_parse_value(const struct mf_field *, const char *, union mf_value *); void mf_format(const struct mf_field *, const union mf_value *value, const union mf_value *mask, struct ds *); +void mf_format_subvalue(const union mf_subvalue *subvalue, struct ds *s); #endif /* meta-flow.h */ |