[ovs-dev] [PATCH 3/3] [RFC] Add oxm_mf_fields

Simon Horman horms at verge.net.au
Thu Apr 26 06:13:28 UTC 2012


On Wed, Apr 25, 2012 at 08:57:16AM -0700, Ben Pfaff wrote:
> On Wed, Apr 25, 2012 at 09:15:53AM +0900, Simon Horman wrote:
> > I do have one other (minor) problem that I am facing which is the different
> > widths of IN_PORT. 16 bits for NXM and 32 bits for OXM.
> > 
> > Special casing this in the encoder isn't so bad, it basically encodes each
> > field individually. However special-casing in the decoder would be rather
> > ugly.
> 
> I don't see another good way to do it, yet.  I think we'll have to
> special case it for now.
> 
> Perhaps, if enough other special cases come up, we'll see enough of a
> pattern that we can clean it up.
> 
> > One idea I have is to add OXM width fields (perhaps just bytes rather than
> > bytes and bits). But at this point those fields would only be used for
> > IN_PORT.
> 
> I think that that would be premature.  I'm OK with a special case for
> this.

No problem, special-case it is then.



More information about the dev mailing list