tc: Send csum action only if we need to update csum
Currently we send the tc csum action even if it's not needed.
Fix that by sending it only if csum update flags isn't zero.
@@ -1371,10 +1371,12 @@ nl_msg_put_flower_acts(struct ofpbuf *request, struct tc_flower *flower)
}
nl_msg_end_nested(request, act_offset);
+ if (flower->csum_update_flags) {
act_offset = nl_msg_start_nested(request, act_index++);
nl_msg_put_act_csum(request, flower->csum_update_flags);
nl_msg_end_nested(request, act_offset);
}
+ }
if (flower->set.set) {
act_offset = nl_msg_start_nested(request, act_index++);
nl_msg_put_act_tunnel_key_set(request, flower->set.id,
