[ovs-dev] [PATCH 3/3] bond: fix interal flow leak of tcp-balance bond

hanxueluo at 126.com hanxueluo at 126.com
Sun Feb 19 10:41:27 UTC 2017


From: Huanle Han <hanxueluo at gmail.com>

ofproto_dpif_delete_internal_flow() never deletes any flows
because out_port and out_group are mismatch.

Signed-off-by: Huanle Han <hanxueluo at gmail.com>
---
 ofproto/ofproto-dpif.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 4007a3a..89c7b7f 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -5183,6 +5183,8 @@ ofproto_dpif_delete_internal_flow(struct ofproto_dpif *ofproto,
         .match = *match,
         .priority = priority,
         .table_id = TBL_INTERNAL,
+        .out_port = OFPP_ANY,
+        .out_group = OFPG_ANY,
         .flags = OFPUTIL_FF_HIDDEN_FIELDS | OFPUTIL_FF_NO_READONLY,
         .command = OFPFC_DELETE_STRICT,
     };
-- 
2.7.4




More information about the dev mailing list