[ovs-dev] [RFC 3/4] upcall: Enable memory mapped Netlink sockets

Thomas Graf tgraf at suug.ch
Thu May 22 23:16:00 UTC 2014


---
 lib/dpif-linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c
index 42a3f72..09f02b3 100644
--- a/lib/dpif-linux.c
+++ b/lib/dpif-linux.c
@@ -298,7 +298,7 @@ vport_create_socksp(uint32_t n_socks, int *error)
     size_t i;
 
     for (i = 0; i < n_socks; i++) {
-        *error = nl_sock_create(NETLINK_GENERIC, &socksp[i]);
+        *error = nl_sock_create_mmap(NETLINK_GENERIC, &socksp[i]);
         if (*error) {
             goto error;
         }
@@ -953,7 +953,7 @@ dpif_linux_port_poll(const struct dpif *dpif_, char **devnamep)
         struct nl_sock *sock;
         int error;
 
-        error = nl_sock_create(NETLINK_GENERIC, &sock);
+        error = nl_sock_create_mmap(NETLINK_GENERIC, &sock);
         if (error) {
             return error;
         }
-- 
1.8.3.1




More information about the dev mailing list