Remove ageing check in run_put_mac_binding
Remove ageing check in run_put_mac_binding routine on mac-binding info
since if ovn-controller main thread is heavy loaded the info will be
discarded and the mac_binding table will not never be updated
Acked-by: Numan Siddique
@@ -2519,8 +2519,6 @@ pinctrl_destroy(void)
struct put_mac_binding {
struct hmap_node hmap_node; /* In 'put_mac_bindings'. */
- long long int timestamp; /* In milliseconds. */
-
/* Key. */
uint32_t dp_key;
uint32_t port_key;
@@ -2594,7 +2592,6 @@ pinctrl_handle_put_mac_binding(const struct flow *md,
pmb->port_key = port_key;
pmb->ip_key = ip_key;
}
- pmb->timestamp = time_msec();
pmb->mac = headers->dl_src;
/* We can send the buffered packet once the main ovn-controller
@@ -2642,10 +2639,6 @@ run_put_mac_binding(struct ovsdb_idl_txn *ovnsb_idl_txn,
struct ovsdb_idl_index *sbrec_mac_binding_by_lport_ip,
const struct put_mac_binding *pmb)
{
- if (time_msec() > pmb->timestamp + 1000) {
- return;
- }
-
/* Convert logical datapath and logical port key into lport. */
const struct sbrec_port_binding *pb = lport_lookup_by_key(
sbrec_datapath_binding_by_key, sbrec_port_binding_by_key,
