summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-07-15 14:27:55 -0700
committerBen Pfaff <blp@ovn.org>2016-08-08 11:00:57 -0700
commitaddc63174e22f925b2373d91d59ab4c1c81cf9c2 (patch)
treed4919451045466068aef2e88ee55da071825af01 /include
parent6fdd4feedf71a0f687e086fc5b1622106eb48024 (diff)
downloadopenvswitch-addc63174e22f925b2373d91d59ab4c1c81cf9c2.tar.gz
expr: Track writability as part of expr_symbol.
Until now it was only possible to find out whether an expr_symbol was read/write or read-only, for subfields, by chasing down whether the eventual parent field was read/write or read-only. This commit adds a new 'rw' member that indicates directly. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Ryan Moats <rmoats@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/ovn/expr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ovn/expr.h b/include/ovn/expr.h
index d790c4959..569c524c5 100644
--- a/include/ovn/expr.h
+++ b/include/ovn/expr.h
@@ -246,6 +246,7 @@ struct expr_symbol {
char *prereqs;
bool must_crossproduct;
+ bool rw;
};
/* A reference to a symbol or a subfield of a symbol.