Only signal NL_EVENT_READ once per read cycle, not once per netlink message - from https://gerrit.fd.io/r/c/vpp/+/35525

This commit is contained in:
Pim van Pelt
2022-03-08 13:50:37 +00:00
parent a27fdb9911
commit e6e6c11c78

View File

@ -382,10 +382,6 @@ lcp_nl_callback (struct nl_msg *msg, void *arg)
msg_info->msg = msg;
nlmsg_get (msg);
/* notify process node */
vlib_process_signal_event (vlib_get_main (), lcp_nl_process_node.index,
NL_EVENT_READ, 0);
return 0;
}
@ -466,6 +462,13 @@ lcp_nl_read_cb (clib_file_t *f)
vlib_process_signal_event (vlib_get_main (), lcp_nl_process_node.index,
NL_EVENT_READ_ERR, 0);
}
else
{
/* notify process node */
vlib_process_signal_event (vlib_get_main (), lcp_nl_process_node.index,
NL_EVENT_READ, 0);
}
return 0;
}