diff mbox series

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

Message ID 5a3eb7e8e43adbc39c7371f3334b5c6e4b8da6ed.1625246009.git.lorenzo.bianconi@redhat.com
State Changes Requested
Headers show
Series northd: rework ovn-northd lb flow installation | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot fail github build: failed

Commit Message

Lorenzo Bianconi July 2, 2021, 5:16 p.m. UTC
Remove if condition that is never executed in
build_lrouter_nat_defrag_and_lb routine

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

Patch

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index d6b10cdb5..f344ef7c8 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -11988,12 +11988,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) {
-        return;
-    }
-
     build_lrouter_lb_flows(lflows, od, lbs, match);
 }