diff options
author | Pritesh Kothari <pritesh.kothari@cisco.com> | 2015-01-12 17:46:49 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-01-13 14:13:27 -0800 |
commit | 88cc95c1c66078dd81d18a32a90c45736d6e52f5 (patch) | |
tree | 0d24e04826922984dedbcf6cb54f6b74a4af12e0 /lib/meta-flow.c | |
parent | b13bfc3c11d7c20d6a7cc85104e015adc7f78892 (diff) | |
download | openvswitch-88cc95c1c66078dd81d18a32a90c45736d6e52f5.tar.gz |
ipv6: Add support for setting ipv6 flow label.
IPv6 Flow Label is currently read only. This patch adds support
to allow actions like actions=set_field:0x12345->ipv6_label.
The change to mf_set_flow_value() is a bug fix, but the bug was
not visible before the flow label was modifiable.
Signed-off-by: Pritesh Kothari <pritesh.kothari@cisco.com>
[blp@nicira.com added an item to NEWS]
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/meta-flow.c')
-rw-r--r-- | lib/meta-flow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/meta-flow.c b/lib/meta-flow.c index 67115b2d7..9ce4cfea0 100644 --- a/lib/meta-flow.c +++ b/lib/meta-flow.c @@ -1017,7 +1017,7 @@ mf_set_flow_value(const struct mf_field *mf, break; case MFF_IPV6_LABEL: - flow->ipv6_label = value->be32 & ~htonl(IPV6_LABEL_MASK); + flow->ipv6_label = value->be32 & htonl(IPV6_LABEL_MASK); break; case MFF_IP_PROTO: |