ofp-util: Factor out determining physical port size.
authorJustin Pettit <jpettit@nicira.com>
Tue, 8 May 2012 07:01:11 +0000 (00:01 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 8 May 2012 16:51:46 +0000 (09:51 -0700)
commit5b5a3a674c975ed1ccfc38b4dae705d4fe4df0eb
tree40367c38aae3a6efed8632f72d8de148f9f3f6c0
parent347b7ac46a96f851a67179d25401255a7f6e0b3b
ofp-util: Factor out determining physical port size.

There are a few places where we determine the size of a physical port
structure based on the OpenFlow version.  Use a helper function to do
that.

Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
lib/ofp-util.c