[ovs-dev] [PATCH 07/41 v11] ofp-util: Prepare Packet Out encoder for other Open Flow versions

Simon Horman horms at verge.net.au
Wed Aug 8 23:51:31 UTC 2012


On Wed, Aug 08, 2012 at 04:32:49PM -0700, Ben Pfaff wrote:
> On Wed, Aug 08, 2012 at 12:19:57PM +0900, Simon Horman wrote:
> > Signed-off-by: Simon Horman <horms at verge.net.au>
> 
> > -    size_t size;
> > +    size_t size = 0;
> >  
> >      size = po->ofpacts_len;
> >      if (po->buffer_id == UINT32_MAX) {
> > -        size += po->packet_len;
> > +        size = po->packet_len;
> >      }
> 
> I know of a reason for either of these changes, so I omitted them.

Sorry about that, they are a legacy from much earlier revisions
of this code.



More information about the dev mailing list