|
|
bbaaef |
From a152a434074ee38e38be6593502ff0058e67c2f4 Mon Sep 17 00:00:00 2001
|
|
|
bbaaef |
From: Dumitru Ceara <dceara@redhat.com>
|
|
|
bbaaef |
Date: Thu, 14 Nov 2019 13:43:49 +0100
|
|
|
bbaaef |
Subject: [PATCH ovn 3/3] ovn-northd: Avoid empty address list when limiting
|
|
|
bbaaef |
ARP/ND broadcast.
|
|
|
bbaaef |
|
|
|
bbaaef |
Reported-by: Numan Siddique <numans@ovn.org>
|
|
|
bbaaef |
Fixes: 32f5ebb06226 ("ovn-northd: Limit ARP/ND broadcast domain whenever possible.")
|
|
|
bbaaef |
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
|
|
|
bbaaef |
Signed-off-by: Numan Siddique <numans@ovn.org>
|
|
|
bbaaef |
|
|
|
bbaaef |
(cherry-picked from upstream commit 998617cd85bfa1f03f2e734e479fd87f3e833797)
|
|
|
bbaaef |
---
|
|
|
bbaaef |
ovn/northd/ovn-northd.c | 12 ++++++++----
|
|
|
bbaaef |
1 file changed, 8 insertions(+), 4 deletions(-)
|
|
|
bbaaef |
|
|
|
bbaaef |
diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c
|
|
|
bbaaef |
index 03eb7a4..0e6f8f6 100644
|
|
|
bbaaef |
--- a/ovn/northd/ovn-northd.c
|
|
|
bbaaef |
+++ b/ovn/northd/ovn-northd.c
|
|
|
bbaaef |
@@ -5331,10 +5331,14 @@ build_lswitch_rport_arp_req_flows(struct ovn_port *op,
|
|
|
bbaaef |
}
|
|
|
bbaaef |
}
|
|
|
bbaaef |
|
|
|
bbaaef |
- build_lswitch_rport_arp_req_flow_for_ip(&all_ips_v4, AF_INET, sw_op,
|
|
|
bbaaef |
- sw_od, 75, lflows);
|
|
|
bbaaef |
- build_lswitch_rport_arp_req_flow_for_ip(&all_ips_v6, AF_INET6, sw_op,
|
|
|
bbaaef |
- sw_od, 75, lflows);
|
|
|
bbaaef |
+ if (!sset_is_empty(&all_ips_v4)) {
|
|
|
bbaaef |
+ build_lswitch_rport_arp_req_flow_for_ip(&all_ips_v4, AF_INET, sw_op,
|
|
|
bbaaef |
+ sw_od, 75, lflows);
|
|
|
bbaaef |
+ }
|
|
|
bbaaef |
+ if (!sset_is_empty(&all_ips_v6)) {
|
|
|
bbaaef |
+ build_lswitch_rport_arp_req_flow_for_ip(&all_ips_v6, AF_INET6, sw_op,
|
|
|
bbaaef |
+ sw_od, 75, lflows);
|
|
|
bbaaef |
+ }
|
|
|
bbaaef |
|
|
|
bbaaef |
sset_destroy(&all_ips_v4);
|
|
|
bbaaef |
sset_destroy(&all_ips_v6);
|
|
|
bbaaef |
--
|
|
|
bbaaef |
1.8.3.1
|
|
|
bbaaef |
|