[ovs-git] Open vSwitch: Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING. (master)
dev at openvswitch.org
dev at openvswitch.org
Fri Oct 1 10:33:28 PDT 2010
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 4e8e4213a815a30216e855a805a8bcd5b8c5a886 (commit)
via adf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9 (commit)
via ca0f572cfe87f284018e14fa7f1de58fbaef4c87 (commit)
via 0cc96e48ab2fc573c3b7b69fe5a034bb29dde578 (commit)
via d9a8717a004310044b3157f4fb46e8fd00083a73 (commit)
via f3099647623f2b13ece56cf8cf31761c00c1c297 (commit)
via 93b13be8e65455ecf6e568e604cf76fdb20601c9 (commit)
from 0c18b5a065365e79d92d66532e7bdc41c4588f33 (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 4e8e4213a815a30216e855a805a8bcd5b8c5a886
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=4e8e4213a815a30216e855a805a8bcd5b8c5a886
Author: Ben Pfaff <blp at nicira.com>
Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING.
These macros require one fewer argument by switching, which makes code
that uses them shorter and more readable.
commit adf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=adf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9
Author: Ben Pfaff <blp at nicira.com>
util: New macro OBJECT_CONTAINING.
This macro is a variant on CONTAINER_OF that takes an object pointer
instead of a type name as its second argument. In the following commit
this will simplify many users of CONTAINER_OF.
commit ca0f572cfe87f284018e14fa7f1de58fbaef4c87
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ca0f572cfe87f284018e14fa7f1de58fbaef4c87
Author: Ben Pfaff <blp at nicira.com>
ofproto: Use hash table instead of sparse array for ofports.
The main advantage of a sparse array over a hash table is that it can be
iterated in numerical order. But the OVS implementation of sparse arrays
is quite expensive in terms of memory: on a 32-bit system, a sparse array
with exactly 1 nonnull element has 512 bytes of overhead. In this case,
the sparse array's property of iteration in numerical order is not
important, so this commit converts it to a hash table to save memory.
commit 0cc96e48ab2fc573c3b7b69fe5a034bb29dde578
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0cc96e48ab2fc573c3b7b69fe5a034bb29dde578
Author: Ben Pfaff <blp at nicira.com>
sflow: Use hash table instead of sparse array for sflow ports.
The main advantage of a sparse array over a hash table is that it can be
iterated in numerical order. But the OVS implementation of sparse arrays
is quite expensive in terms of memory: on a 32-bit system, a sparse array
with exactly 1 nonnull element has 512 bytes of overhead. In this case,
the sparse array's property of iteration in numerical order is not
important, so this commit converts it to a hash table to save memory.
commit d9a8717a004310044b3157f4fb46e8fd00083a73
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d9a8717a004310044b3157f4fb46e8fd00083a73
Author: Ben Pfaff <blp at nicira.com>
bridge: Use hash table instead of sparse array for bridge ports.
The main advantage of a sparse array over a hash table is that it can be
iterated in numerical order. But the OVS implementation of sparse arrays
is quite expensive in terms of memory: on a 32-bit system, a sparse array
with exactly 1 nonnull element has 512 bytes of overhead. In this case,
the sparse array's property of iteration in numerical order is not
important, so this commit converts it to a hash table to save memory.
commit f3099647623f2b13ece56cf8cf31761c00c1c297
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f3099647623f2b13ece56cf8cf31761c00c1c297
Author: Ben Pfaff <blp at nicira.com>
hmap: New function hmap_clear().
commit 93b13be8e65455ecf6e568e604cf76fdb20601c9
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=93b13be8e65455ecf6e568e604cf76fdb20601c9
Author: Ben Pfaff <blp at nicira.com>
netdev-linux: Use hash table instead of sparse array for QoS classes.
The main advantage of a sparse array over a hash table is that it can be
iterated in numerical order. But the OVS implementation of sparse arrays
is quite expensive in terms of memory: on a 32-bit system, a sparse array
with exactly 1 nonnull element has 512 bytes of overhead. In this case,
the sparse array's property of iteration in numerical order is not
important, so this commit converts it to a hash table to save memory.
-----------------------------------------------------------------------
Summary of changes:
lib/classifier.c | 43 +++++-------
lib/dpif-netdev.c | 20 +++---
lib/hmap.c | 17 +++++
lib/hmap.h | 50 +++++++-------
lib/list.h | 24 +++---
lib/lockfile.c | 4 +-
lib/mac-learning.c | 2 +-
lib/netdev-linux.c | 170 +++++++++++++++++++++++++++-----------------
lib/netdev-vport.c | 3 +-
lib/netdev.c | 2 +-
lib/ovsdb-idl.c | 38 ++++------
lib/poll-loop.c | 4 +-
lib/process.c | 2 +-
lib/rtnetlink.c | 6 +-
lib/shash.c | 2 +-
lib/shash.h | 9 +--
lib/unixctl.c | 8 +--
lib/util.h | 10 +++
ofproto/ofproto-sflow.c | 70 ++++++++++++------
ofproto/ofproto.c | 160 +++++++++++++++++++++--------------------
ofproto/status.c | 5 +-
ovsdb/file.c | 2 +-
ovsdb/jsonrpc-server.c | 26 +++-----
ovsdb/ovsdb-server.c | 4 +-
ovsdb/query.c | 8 +--
ovsdb/row.c | 14 ++---
ovsdb/table.c | 6 +-
ovsdb/transaction.c | 20 ++---
ovsdb/trigger.c | 4 +-
tests/test-classifier.c | 2 +-
tests/test-hmap.c | 9 +--
tests/test-list.c | 10 ++--
tests/test-ovsdb.c | 3 +-
vswitchd/bridge.c | 63 +++++++++-------
vswitchd/proc-net-compat.c | 5 +-
35 files changed, 438 insertions(+), 387 deletions(-)
hooks/post-receive
--
Open vSwitch
More information about the git
mailing list