Skip to content

Commit

Permalink
datapth: Suppress error messages on megaflow updates
Browse files Browse the repository at this point in the history
With subfacets, we'd expect megaflow updates message to carry
the original micro flow. If not, EINVAL is returned and kernel
logs an error message.  Now that the user space subfacet layer is
removed, it is expected that flow updates can arrive with a
micro flow other than the original. Change the return code to
EEXIST and remove the kernel error log message.

Reported-by: Ben Pfaff <[email protected]>
Signed-off-by: Andy Zhou <[email protected]>
  • Loading branch information
azhou-nicira committed Feb 1, 2014
1 parent f87d330 commit a660348
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datapath/datapath.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,11 +862,8 @@ static int ovs_flow_cmd_new_or_set(struct sk_buff *skb, struct genl_info *info)
goto err_unlock_ovs;

/* The unmasked key has to be the same for flow updates. */
error = -EINVAL;
if (!ovs_flow_cmp_unmasked_key(flow, &match)) {
OVS_NLERR("Flow modification message rejected, unmasked key does not match.\n");
if (!ovs_flow_cmp_unmasked_key(flow, &match))
goto err_unlock_ovs;
}

/* Update actions. */
old_acts = ovsl_dereference(flow->sf_acts);
Expand Down

0 comments on commit a660348

Please sign in to comment.