On Fri, May 23, 2014 at 01:16:00AM +0200, Thomas Graf wrote:
> ---
> 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;
> }
The former are obvious candidates for mmaped sockets. I'm not sure
about the latter, but it probably doesn't hurt.
Acked-by: Ben Pfaff <[email protected]>
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev