On Wed, Jun 24, 2015 at 11:13 AM, Ben Pfaff <b...@nicira.com> wrote: > On Fri, Jun 19, 2015 at 04:13:16PM -0700, Jesse Gross wrote: >> Currently we treat the entire NXM/OXM header, including length, >> as an ID to define a field. However, this does not allow for >> multiple lengths of a particular field. >> >> If a field has been marked as variable, we should ignore the length >> when looking up the field and only use the class and field. We >> continue to use the length for non-variable fields to ensure that >> we don't accept something that can never match. >> >> Signed-off-by: Jesse Gross <je...@nicira.com> > > "sparse" says: > > ../lib/nx-match.c:100:63: warning: constant 0xffffff80ffffffff is so big > it is unsigned long long > > so I'd suggest adding a ULL suffix there (even though the warning does > make me just think "duh").
Thanks, this didn't show up with my sparse. Fixed. > While reading nxm_field_by_header() I realized that we've got a terrible > existing mistake in our hashing. Ugh. I'll send a fix, which we'll want > to pre-apply (and maybe backport). I guess you mean that we hash an int instead of a uint64_t? I just saw that. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev