[ovs-dev] [bug10576 4/5] learn: Fix bugs when learn actions use subfields wider than 64 bits.
Ben Pfaff
blp at nicira.com
Sat Apr 14 04:24:07 UTC 2012
On Fri, Apr 13, 2012 at 05:58:28PM -0700, Ethan Jackson wrote:
> > + if (n_bits <= 64) {
> > + mf_set_subfield(&dst, value, &rule);
> > + } else {
> > + /* We're only setting subfields to allow us to check
> > + * prerequisites. No prerequisite depends on the value of
> > + * a field that is wider than 64 bits. So just skip
> > + * setting it entirely. */
> > + }
>
> Is there some sort of assertion we could make here in case this
> assumption changes in the future? If there isn't anything convenient,
> I think the comment is sufficient.
I added a
BUILD_ASSERT_DECL(FLOW_WC_SEQ == 9);
which should draw attention to most changes that could affect this
property.
> Everything else looks good, thanks.
Thanks, I'll do some final testing and push this.
More information about the dev
mailing list