summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-02-10 13:16:47 -0800
committerBen Pfaff <blp@ovn.org>2016-02-10 13:18:55 -0800
commit3ca6cc76c3f3d171fcc7361a7ad4edd452834b7c (patch)
tree47ebae7ae21bf55584a010c3355078978fe0b505 /ovn
parent660f5a612862bf18b4785190ff343965d970708a (diff)
downloadopenvswitch-3ca6cc76c3f3d171fcc7361a7ad4edd452834b7c.tar.gz
pinctrl: Fix byte order of numeric constant.
Found by sparse. Fixes: commit 660f5a61286 ("ovn-controller: Use ofputil_encode_set_config to set the switch config") Reported-by: Russell Bryant <russell@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r--ovn/controller/pinctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovn/controller/pinctrl.c b/ovn/controller/pinctrl.c
index 545ee47d6..97b7f6c03 100644
--- a/ovn/controller/pinctrl.c
+++ b/ovn/controller/pinctrl.c
@@ -98,7 +98,7 @@ pinctrl_recv(struct controller_ctx *ctx, const struct ofp_header *oh,
struct ofputil_switch_config config;
ofputil_decode_get_config_reply(oh, &config);
- config.miss_send_len = htons(UINT16_MAX);
+ config.miss_send_len = UINT16_MAX;
set_switch_config(swconn, &config);
} else if (type == OFPTYPE_PACKET_IN) {
process_packet_in(ctx, oh);