diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-07-27 14:56:03 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-07-27 14:56:03 -0700 |
| commit | fc999dda6a9e3f42add70b371889a7419ff569c2 (patch) | |
| tree | ac5fb1c453e96d1791cd5f418c0e9b06e9360cc2 /utilities | |
| parent | 5e9fd01b6ec0c488a4a24e481486557f97057bff (diff) | |
| download | openvswitch-fc999dda6a9e3f42add70b371889a7419ff569c2.tar.gz | |
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%.
Diffstat (limited to 'utilities')
0 files changed, 0 insertions, 0 deletions
