summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-15 10:08:54 -0700
committerBen Pfaff <blp@nicira.com>2011-03-29 12:28:10 -0700
commit4093ec5979ce09b2cdbaa2960dfc472fad139637 (patch)
tree0c73d6c0612b057c5705a03bc96c067e09aea9d4 /ofproto
parentebb57021a9827b59997a00defc32bf761bc16148 (diff)
downloadopenvswitch-4093ec5979ce09b2cdbaa2960dfc472fad139637.tar.gz
ofproto: Move hton_ofp_phy_port() to ofp-util.
This removes some code from ofproto.c that doesn't really seem to belong there to begin with.
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 699985cf3..bd81a5568 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -107,7 +107,6 @@ struct ofport {
static void ofport_free(struct ofport *);
static void ofport_run(struct ofproto *, struct ofport *);
static void ofport_wait(struct ofport *);
-static void hton_ofp_phy_port(struct ofp_phy_port *);
struct action_xlate_ctx {
/* action_xlate_ctx_init() initializes these members. */
@@ -2633,18 +2632,6 @@ send_error_oh(const struct ofconn *ofconn, const struct ofp_header *oh,
}
}
-static void
-hton_ofp_phy_port(struct ofp_phy_port *opp)
-{
- opp->port_no = htons(opp->port_no);
- opp->config = htonl(opp->config);
- opp->state = htonl(opp->state);
- opp->curr = htonl(opp->curr);
- opp->advertised = htonl(opp->advertised);
- opp->supported = htonl(opp->supported);
- opp->peer = htonl(opp->peer);
-}
-
static int
handle_echo_request(struct ofconn *ofconn, const struct ofp_header *oh)
{