diff mbox series

[ovs-dev,6/6] northd: remove dead code in build_lrouter_nat_defrag_and_lb

Message ID 9d9835da6618360c19e3bae1f080c4adfab0ae5e.1623405172.git.lorenzo.bianconi@redhat.com
State New
Headers show
Series northd: rework ovn-northd lb flow installation | expand

Commit Message

Lorenzo Bianconi June 11, 2021, 10:17 a.m. UTC
Remove if condition that is never executed in
build_lrouter_nat_defrag_and_lb routine

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
---
 northd/ovn-northd.c | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index 0a4d75ed7..523d47dd3 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -11980,13 +11980,6 @@  build_lrouter_nat_defrag_and_lb(struct ovn_datapath *od,
                       "ip", "flags.loopback = 1; ct_dnat;");
     }
 
-    /* Load balancing and packet defrag are only valid on
-     * Gateway routers or router with gateway port. */
-    if (!smap_get(&od->nbr->options, "chassis") && !od->l3dgw_port) {
-        sset_destroy(&nat_entries);
-        return;
-    }
-
     build_lrouter_lb_flows(lflows, od, lbs, match);
 
     sset_destroy(&nat_entries);