dpif_linux_run(struct dpif *dpif OVS_UNUSED)
{
if (nln) {
- nln_notifier_run(nln);
+ nln_run(nln);
}
}
dpif_linux_wait(struct dpif *dpif OVS_UNUSED)
{
if (nln) {
- nln_notifier_wait(nln);
+ nln_wait(nln);
}
}
static void
netdev_linux_run(void)
{
- rtnetlink_link_notifier_run();
+ rtnetlink_link_run();
netdev_linux_miimon_run();
}
static void
netdev_linux_wait(void)
{
- rtnetlink_link_notifier_wait();
+ rtnetlink_link_wait();
netdev_linux_miimon_wait();
}
} else {
/* Catch up on notification work so that the new notifier won't
* receive any stale notifications. */
- nln_notifier_run(nln);
+ nln_run(nln);
}
list_push_back(&nln->all_notifiers, ¬ifier->node);
/* Calls all of the registered notifiers, passing along any as-yet-unreported
* change events. */
void
-nln_notifier_run(struct nln *nln)
+nln_run(struct nln *nln)
{
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
/* Causes poll_block() to wake up when change notifications are ready. */
void
-nln_notifier_wait(struct nln *nln)
+nln_wait(struct nln *nln)
{
nln->has_run = false;
if (nln->notify_sock) {
int nln_notifier_register(struct nln *, struct nln_notifier *,
nln_notify_func *, void *aux);
void nln_notifier_unregister(struct nln *, struct nln_notifier *);
-void nln_notifier_run(struct nln *);
-void nln_notifier_wait(struct nln *);
+void nln_run(struct nln *);
+void nln_wait(struct nln *);
#endif /* netlink-notifier.h */
route_table_run(void)
{
if (nln) {
- rtnetlink_link_notifier_run();
- nln_notifier_run(nln);
+ rtnetlink_link_run();
+ nln_run(nln);
}
}
route_table_wait(void)
{
if (nln) {
- rtnetlink_link_notifier_wait();
- nln_notifier_wait(nln);
+ rtnetlink_link_wait();
+ nln_wait(nln);
}
}
/* Calls all of the registered notifiers, passing along any as-yet-unreported
* netdev change events. */
void
-rtnetlink_link_notifier_run(void)
+rtnetlink_link_run(void)
{
if (nln) {
- nln_notifier_run(nln);
+ nln_run(nln);
}
}
/* Causes poll_block() to wake up when network device change notifications are
* ready. */
void
-rtnetlink_link_notifier_wait(void)
+rtnetlink_link_wait(void)
{
if (nln) {
- nln_notifier_wait(nln);
+ nln_wait(nln);
}
}
int rtnetlink_link_notifier_register(struct nln_notifier*,
rtnetlink_link_notify_func *, void *aux);
void rtnetlink_link_notifier_unregister(struct nln_notifier *);
-void rtnetlink_link_notifier_run(void);
-void rtnetlink_link_notifier_wait(void);
+void rtnetlink_link_run(void);
+void rtnetlink_link_wait(void);
#endif /* rtnetlink-link.h */
* (XenServer Tools 5.5.0 does not exhibit this behavior, and neither does
* a VM without Tools installed at all.)
*/
- rtnetlink_link_notifier_run();
+ rtnetlink_link_run();
switch (genlmsghdr->cmd) {
case BRC_GENL_C_DP_ADD:
for (;;) {
unixctl_server_run(unixctl);
- rtnetlink_link_notifier_run();
+ rtnetlink_link_run();
brc_recv_update();
netdev_run();
nl_sock_wait(brc_sock, POLLIN);
unixctl_server_wait(unixctl);
- rtnetlink_link_notifier_wait();
+ rtnetlink_link_wait();
netdev_wait();
poll_block();
}