diff options
author | Ben Pfaff <blp@ovn.org> | 2016-02-10 13:16:47 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-02-10 13:18:55 -0800 |
commit | 3ca6cc76c3f3d171fcc7361a7ad4edd452834b7c (patch) | |
tree | 47ebae7ae21bf55584a010c3355078978fe0b505 /ovn | |
parent | 660f5a612862bf18b4785190ff343965d970708a (diff) | |
download | openvswitch-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.c | 2 |
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); |