]> git.proxmox.com Git - mirror_ovs.git/blobdiff - lib/rtbsd.c
dpctl: Add the option 'pmd' for dump-flows.
[mirror_ovs.git] / lib / rtbsd.c
index df708c599e25329514bf6038e3f872c521cf675c..564595c3a511ced1418003304c1d127c765cb122 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "coverage.h"
 #include "socket-util.h"
-#include "poll-loop.h"
+#include "openvswitch/poll-loop.h"
 #include "openvswitch/vlog.h"
 
 VLOG_DEFINE_THIS_MODULE(rtbsd);
@@ -74,7 +74,7 @@ rtbsd_notifier_register(struct rtbsd_notifier *notifier,
         }
     }
 
-    list_push_back(&all_notifiers, &notifier->node);
+    ovs_list_push_back(&all_notifiers, &notifier->node);
     notifier->cb = cb;
     notifier->aux = aux;
 
@@ -90,8 +90,8 @@ rtbsd_notifier_unregister(struct rtbsd_notifier *notifier)
     OVS_EXCLUDED(rtbsd_mutex)
 {
     ovs_mutex_lock(&rtbsd_mutex);
-    list_remove(&notifier->node);
-    if (list_is_empty(&all_notifiers)) {
+    ovs_list_remove(&notifier->node);
+    if (ovs_list_is_empty(&all_notifiers)) {
         close(notify_sock);
         notify_sock = -1;
     }
@@ -117,7 +117,7 @@ rtbsd_notifier_run(void)
         int retval;
 
         msg.ifm_type = RTM_IFINFO;
-        msg.ifm_version = RTM_VERSION; //XXX check if necessary
+        msg.ifm_version = RTM_VERSION; /* XXX Check if necessary. */
 
         /* read from PF_ROUTE socket */
         retval = read(notify_sock, (char *)&msg, sizeof(msg));
@@ -176,8 +176,8 @@ rtbsd_report_change(const struct if_msghdr *msg)
 
     COVERAGE_INC(rtbsd_changed);
 
-    change.msg_type = msg->ifm_type; //XXX
-    change.master_ifindex = 0; //XXX
+    change.msg_type = msg->ifm_type; /* XXX */
+    change.master_ifindex = 0; /* XXX */
 
     switch (msg->ifm_type) {
     case RTM_IFINFO: