Message ID | 20230710110517.128560-4-amusil@redhat.com |
---|---|
State | Superseded |
Headers | show |
Series | Add MAC binding aging timestamp refresh mechanism | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_ovn-kubernetes | success | github build: passed |
ovsrobot/github-robot-_Build_and_Test | fail | github build: failed |
Acked-by: Mark Michelson <mmichels@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 <amusil@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);
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);
Synchrinoize the MAC binding age threashold to SB datapath. This is a preparation for the MAC binding refresh mechanism. Signed-off-by: Ales Musil <amusil@redhat.com> --- northd/northd.c | 7 +++++++ 1 file changed, 7 insertions(+)