[ovs-dev] [PATCH] datapth: Suppress error messages on megaflow updates

Andy Zhou azhou at nicira.com
Fri Jan 31 23:56:49 UTC 2014


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.

Signed-off-by: Andy Zhou <azhou at nicira.com>
---
 datapath/datapath.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/datapath/datapath.c b/datapath/datapath.c
index f045fe4..8c903a6 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -862,9 +862,7 @@ 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");
 			goto err_unlock_ovs;
 		}
 
-- 
1.7.9.5




More information about the dev mailing list