[ovs-dev] [PATCH 05/24] ofp-util: Allow decoder to use OFPT11_STATS_{REQUEST, REPLY} for OpenFlow 1.2

Simon Horman horms at verge.net.au
Tue Jul 24 23:59:48 UTC 2012


On Tue, Jul 24, 2012 at 01:29:03PM -0700, Ben Pfaff wrote:
> On Mon, Jul 23, 2012 at 03:16:34PM +0900, Simon Horman wrote:
> > As the structures uses for encoding and decoding statistics request and
> > reply messages are largely the same between OpenFlow 1.1 and 1.2 it seems
> > to make sense to use OFPT11_STATS_{REQUEST,REPLY} for OpenFlow 1.2.
> > 
> > This patch prepares the decode path.
> > 
> > Signed-off-by: Simon Horman <horms at verge.net.au>
> 
> You're right, this doesn't need to be limited to OF1.1.
> 
> I don't expect that future OpenFlow versions will mess with this
> numbering again, so I decided to fold the following into the first
> patch of my of1.1 series instead:

Thanks, this looks good.

I hit the need for this in ofphdrs_len() and ofpraw_put__() yesterday.



More information about the dev mailing list