#endif
dp->config.flags = 0;
- dp->config.miss_send_len = OFP_DEFAULT_MISS_SEND_LEN;
+ dp->config.miss_send_len = htons(OFP_DEFAULT_MISS_SEND_LEN);
dp->dp_task = kthread_run(dp_maint_func, dp, "dp%d", dp_idx);
if (IS_ERR(dp->dp_task))
flow->actions, flow->n_actions);
} else {
dp_output_control(chain->dp, skb, fwd_save_skb(skb),
- chain->dp->config.miss_send_len,
+ ntohs(chain->dp->config.miss_send_len),
OFPR_NO_MATCH);
}
}
list_init(&dp->port_list);
dp->config.flags = 0;
- dp->config.miss_send_len = OFP_DEFAULT_MISS_SEND_LEN;
+ dp->config.miss_send_len = htons(OFP_DEFAULT_MISS_SEND_LEN);
*dp_ = dp;
return 0;
}
execute_actions(dp, buffer, in_port, &key,
flow->actions, flow->n_actions);
} else {
- dp_output_control(dp, buffer, in_port, dp->config.miss_send_len,
+ dp_output_control(dp, buffer, in_port, ntohs(dp->config.miss_send_len),
OFPR_NO_MATCH);
}
}