]> git.proxmox.com Git - mirror_ovs.git/commit - lib/ofp-util.c
ofp-util: Reduce duplicate code.
authorBen Pfaff <blp@nicira.com>
Thu, 8 May 2014 06:35:35 +0000 (23:35 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 14 May 2014 17:31:42 +0000 (10:31 -0700)
commit6b0f20ac52a8652e716808bb5d704624fd5f0d3a
tree88412bbabff98ce0e8584b35d2ab12ea9e1a98a0
parent9a4eddbb6e7b570c9acc2b11a9f7e18183e6d98a
ofp-util: Reduce duplicate code.

ofputil_put_phy_port() and ofputil_append_port_desc_stats_reply() had a
lot of code duplication.  This reduces it: it deletes some specialized
code from ofputil_put_phy_port(), moving it into its caller
ofputil_put_switch_features_port() that actually needed it.  That change
then allows ofputil_append_port_desc_stats_reply() to become a simple
wrapper around ofputil_put_phy_port().

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