Netlink message usually only accpets a mask when there is a corresponding key attribute. Tunnel mask and eth_type are the only two expections so far.
Signed-off-by: Andy Zhou <az...@nicira.com> --- datapath/flow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datapath/flow.c b/datapath/flow.c index 62fdf85..29d3062 100644 --- a/datapath/flow.c +++ b/datapath/flow.c @@ -135,6 +135,9 @@ static bool ovs_match_validate(const struct sw_flow_match *match, | (1ULL << OVS_KEY_ATTR_ARP) | (1ULL << OVS_KEY_ATTR_ND)); + /* Tunnel mask is always allowed. */ + mask_allowed |= (1ULL << OVS_KEY_ATTR_TUNNEL); + if (match->key->phy.in_port == DP_MAX_PORTS && match->mask && (match->mask->key.phy.in_port == 0xffff)) mask_allowed |= (1ULL << OVS_KEY_ATTR_IN_PORT); -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev