mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
meta-flow: Fix mf_get_mask() bug for IPv6 flow label.
Commit 32455024
(OXM: Allow masking of IPv6 Flow Label) made the flow label
maskable but did not update mf_get_mask() accordingly.
CC: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -647,7 +647,6 @@ mf_get_mask(const struct mf_field *mf, const struct flow_wildcards *wc,
|
||||
case MFF_IP_DSCP:
|
||||
case MFF_IP_ECN:
|
||||
case MFF_IP_TTL:
|
||||
case MFF_IPV6_LABEL:
|
||||
case MFF_ARP_OP:
|
||||
case MFF_ARP_SHA:
|
||||
case MFF_ARP_THA:
|
||||
@@ -699,6 +698,9 @@ mf_get_mask(const struct mf_field *mf, const struct flow_wildcards *wc,
|
||||
case MFF_IPV6_DST:
|
||||
mask->ipv6 = wc->ipv6_dst_mask;
|
||||
break;
|
||||
case MFF_IPV6_LABEL:
|
||||
mask->be32 = wc->ipv6_label_mask;
|
||||
break;
|
||||
|
||||
case MFF_ND_TARGET:
|
||||
mask->ipv6 = wc->nd_target_mask;
|
||||
|
Reference in New Issue
Block a user