Acked-by: Mark Michelson <mmich...@redhat.com>

On 7/10/23 07:05, Ales Musil wrote:
Synchrinoize the MAC binding age threashold to
SB datapath.

This is a preparation for the MAC binding refresh mechanism.

Signed-off-by: Ales Musil <amu...@redhat.com>
---
  northd/northd.c | 7 +++++++
  1 file changed, 7 insertions(+)

diff --git a/northd/northd.c b/northd/northd.c
index 4e3c5d02a..7958304cf 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -1150,6 +1150,13 @@ ovn_datapath_update_external_ids(struct ovn_datapath *od)
          if (!learn_from_arp_request) {
              smap_add(&ids, "always_learn_from_arp_request", "false");
          }
+
+        uint32_t age_threshold = smap_get_uint(&od->nbr->options,
+                                               "mac_binding_age_threshold", 0);
+        if (age_threshold) {
+            smap_add_format(&ids, "mac_binding_age_threshold",
+                            "%u", age_threshold);
+        }
      }
sbrec_datapath_binding_set_external_ids(od->sb, &ids);

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to