2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

ofproto: Maintain ofp_phy_port for each ofport in network byte order.

It's rather confusing to have an instance of a whole structure in an
unexpected byte order.  This commit gets rid of that oddity.
This commit is contained in:
Ben Pfaff
2011-03-29 14:11:39 -07:00
parent 9e97e8bbe3
commit 9cfcdadf93
4 changed files with 38 additions and 50 deletions

View File

@@ -1864,19 +1864,6 @@ make_echo_reply(const struct ofp_header *rq)
return out;
}
/* Converts the members of 'opp' from host to network byte order. */
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
check_action_exact_len(const union ofp_action *a, unsigned int len,
unsigned int required_len)