pinctrl: Fix byte order of numeric constant.
authorBen Pfaff <blp@ovn.org>
Wed, 10 Feb 2016 21:16:47 +0000 (13:16 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 10 Feb 2016 21:18:55 +0000 (13:18 -0800)
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>
ovn/controller/pinctrl.c

index 545ee47..97b7f6c 100644 (file)
@@ -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);