ofp-util: Add functions for working with OpenFlow 1.1 port numbers.
authorBen Pfaff <blp@nicira.com>
Wed, 15 Feb 2012 01:08:03 +0000 (17:08 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 7 Mar 2012 22:05:08 +0000 (14:05 -0800)
commit7b7503ea627ccd2a0851803ca39c1505f30415d3
treebba4ba270770056b3a627ff087a5ff3ec63bd940
parent3811e66bb6e6ea4d56271f6061495b89fdd547bd
ofp-util: Add functions for working with OpenFlow 1.1 port numbers.

OpenFlow 1.1 extends port numbers to 32 bits.  Initially we plan to support
only port numbers in the 16-bit range in Open vSwitch.  However the OF1.1
reserved ports have high-valued fixed numbers that require translation to
high fixed values in the 16-bit range for OF1.0.  These new functions
provide this translation.

Nothing uses these functions yet.

Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
include/openflow/openflow-1.1.h
lib/ofp-util.c
lib/ofp-util.h