[ovs-git] Open vSwitch: netlink-socket: Reduce nl_sock_recv() from 2 (or more) system calls to 1. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Jul 27 21:56:14 UTC 2011

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  fc999dda6a9e3f42add70b371889a7419ff569c2 (commit)
       via  5e9fd01b6ec0c488a4a24e481486557f97057bff (commit)
      from  9dae0a2675cf3f63b983c5ef039a665bb41d4467 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fc999dda6a9e3f42add70b371889a7419ff569c2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=fc999dda6a9e3f42add70b371889a7419ff569c2
Author: Ben Pfaff <blp at nicira.com>
netlink-socket: Reduce nl_sock_recv() from 2 (or more) system calls to 1.
Until now, each attempt to receive a message from a Netlink socket has
taken at least two system calls, one to check the size of the message to
be received and a second one to delete the message from the socket buffer.
This commit switches to a new strategy that requires only one system call
per message received.

In my testing this increases the maximum flow setups per second by a little
over 10%.

commit 5e9fd01b6ec0c488a4a24e481486557f97057bff
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5e9fd01b6ec0c488a4a24e481486557f97057bff
Author: Ben Pfaff <blp at nicira.com>
netlink-socket: Remove unused nl_sock_sendv() function.
This function hasn't been used for ages.


Summary of changes:
 lib/netlink-socket.c |  140 ++++++++++++++++++--------------------------------
 lib/netlink-socket.h |    3 -
 2 files changed, 51 insertions(+), 92 deletions(-)

Open vSwitch

More information about the git mailing list