odp-util: Correctly [de]serialize mask for ND attributes.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 9 Dec 2015 02:39:18 +0000 (18:39 -0800)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 11 Dec 2015 01:43:03 +0000 (17:43 -0800)
commit446506e14250654d1ca5ee8e6008a2587a140bdb
tree0d5c28dad0e707a29671097e055ab747db54ffcb
parente662769343ada21a3b7be892183c47390af0bfc7
odp-util: Correctly [de]serialize mask for ND attributes.

When converting between ODP attributes and struct flow_wildcards, we
check that all the prerequisites are exact matched on the mask.

For ND(ICMPv6) attributes, an exact match on tp_src and tp_dst
(which in this context are the icmp type and code) shold look like
htons(0xff), not htons(0xffff).  Fix this in two places.

The consequences were that the ODP mask wouldn't include the ND
attributes and the flow would be deleted by the revalidation.
lib/odp-util.c