Skip to content

Commit

Permalink
pinctrl: Fix byte order of numeric constant.
Browse files Browse the repository at this point in the history
Found by sparse.

Fixes: commit 660f5a6 ("ovn-controller: Use ofputil_encode_set_config to set the switch config")
Reported-by: Russell Bryant <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Russell Bryant <[email protected]>
  • Loading branch information
blp committed Feb 10, 2016
1 parent 660f5a6 commit 3ca6cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovn/controller/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ca6cc7

Please sign in to comment.