diff mbox series

[ovs-dev,7/8] ovn-northd-ddlog: Avoid storing unused 'lbs' field in Router.

Message ID 20210827223400.2231543-8-blp@ovn.org
State Superseded
Headers show
Series 3x performance improvement for ddlog with load balancer benchmark | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success

Commit Message

Ben Pfaff Aug. 27, 2021, 10:33 p.m. UTC
Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 northd/lrouter.dl | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox series

Patch

diff --git a/northd/lrouter.dl b/northd/lrouter.dl
index c0ec6be47..582e07654 100644
--- a/northd/lrouter.dl
+++ b/northd/lrouter.dl
@@ -488,7 +488,6 @@  typedef Router = Router {
     is_gateway:         bool,
     nats:               Vec<NAT>,
     snat_ips:           Map<v46_ip, Set<NAT>>,
-    lbs:                Vec<Intern<LoadBalancer>>,
     lb_ipv4s_routable:  Set<istring>,
     lb_ipv4s_unroutable: Set<istring>,
     lb_ipv6s_routable:  Set<istring>,
@@ -515,7 +514,6 @@  Router[Router{
         .is_gateway  = lr.options.contains_key(i"chassis"),
         .nats        = nats,
         .snat_ips    = snat_ips,
-        .lbs         = lbs,
         .lb_ipv4s_routable = lb_ipv4s_routable,
         .lb_ipv4s_unroutable = lb_ipv4s_unroutable,
         .lb_ipv6s_routable = lb_ipv6s_routable,
@@ -553,13 +551,6 @@  Router[Router{
          lb_ipv6s_routable, lb_ipv6s_unroutable)
     }.
 
-/* RouterLB: many-to-many relation between logical routers and nb::LB */
-relation RouterLB(router: Intern<Router>, lb: Intern<LoadBalancer>)
-
-RouterLB(router, lb) :-
-    router in &Router(.lbs = lbs),
-    var lb = FlatMap(lbs).
-
 /* Router-to-router logical port connections */
 relation RouterRouterPeer(rport1: uuid, rport2: uuid, rport2_name: istring)