[ovs-git] Open vSwitch: datapath: s/ODPAT_/ODP_ACTION_ATTR_/ to fit new naming scheme. (netlink)

dev at openvswitch.org dev at openvswitch.org
Wed Jan 26 07:00:10 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, netlink has been updated
  discards  87f4e80ebc48fd76eb27c2f4f6500977bc5d86e0 (commit)
  discards  067d5d9f9d88a8087170376c57e7fcaebac7fef4 (commit)
  discards  3fecadb6ee2e130eb35949e0f618c931b97686db (commit)
  discards  0eab6f5e62a76fba08b1f537a4644856d06bf79f (commit)
  discards  a58f7abd633bff8ad0a389e8e0b143e37f517e44 (commit)
  discards  4153290024d365435864857d72ff8816578a5b80 (commit)
  discards  312e77a70a938e6f53fb97f2f8b17e9421a0b64b (commit)
  discards  ff82f146ac094b1e6a6c8fb1dedd417c6b9f63b7 (commit)
  discards  20e9cfec0d8c3ece35c9cf4512475183166f1948 (commit)
  discards  1144244e92224ec64c3272ea4752158bf1e6e550 (commit)
  discards  634e223e91a52fb9d7648cce5cf66354440abe1f (commit)
  discards  b5253e87586dfb0e90b97239e07f54a224501ebd (commit)
  discards  966e1f404072eace4b56c68d397bd7cf784dfe4d (commit)
       via  be17db909cefd31cfa6f3835961ace8e82cc6c33 (commit)
       via  d827402e36e725d09220c98171a09f9280163d24 (commit)
       via  041b441ffd8f30a392ff64fa8a01c857fdfa5fa2 (commit)
       via  f62ffeaf4ffb97de84ff269ab720a9e58323b943 (commit)
       via  6ec622199d112a31960dc6099a5760b1b16a7f9e (commit)
       via  1d7e426d810824186d4128a1b7ef7480a0da9dc2 (commit)
       via  28d62a7d43851298cdd2275522ae340291aa0890 (commit)
       via  10b80db9af95afb2abe4876b61404619caf90a5d (commit)
       via  aa9cfe87d34cb19acae56db34f22c70eb3e23e6a (commit)
       via  9eb2bc7a10c889726328f438eed138f659fc7218 (commit)
       via  8c64d110fb6324b84a968b92a9b7a595bed5e17d (commit)
       via  50b7b2880bb544228604f39a184ea898085c63fa (commit)
       via  d7e79e962b23c81bc1ec979623f511b505936814 (commit)
       via  ad027cf34934efea9970559b43a85a43c342f26b (commit)
       via  68347030d0a46ae4c5343e01fd96bb53df4b2521 (commit)
       via  03dadf76814e6e46aa21a18ea6f41d0c4c4466f1 (commit)
      from  87f4e80ebc48fd76eb27c2f4f6500977bc5d86e0 (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 be17db909cefd31cfa6f3835961ace8e82cc6c33
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=be17db909cefd31cfa6f3835961ace8e82cc6c33
Author: Ben Pfaff <blp at nicira.com>
		
datapath: s/ODPAT_/ODP_ACTION_ATTR_/ to fit new naming scheme.
		
Jesse suggested this naming scheme, so I'm adjusting existing names to
fit it.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit d827402e36e725d09220c98171a09f9280163d24
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d827402e36e725d09220c98171a09f9280163d24
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Expand skbuff head if necessary to include actions.
		
NLMSG_GOODSIZE limits the size of a single Netlink message that can be
output as part of a Netlink dump.  Sometimes there are lots of actions in
a flow, though, so that we need more than NLMSG_GOODSIZE bytes just for
the actions.  So in cases where the actions won't all fit within the
preallocated header area, expand the header.

Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>


commit 041b441ffd8f30a392ff64fa8a01c857fdfa5fa2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=041b441ffd8f30a392ff64fa8a01c857fdfa5fa2
Author: Ben Pfaff <blp at nicira.com>
		
dpif: Remove dpif_get_all_names().
		
None of the remaining dpif implementations have more than one name per
dpif, so there's no need for this function anymore.

Suggested-by: Jesse Gross <jesse at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>


commit f62ffeaf4ffb97de84ff269ab720a9e58323b943
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f62ffeaf4ffb97de84ff269ab720a9e58323b943
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Change dp_idx to dp_ifindex, the ifindex of the local port.
		
I can't see any real value in maintaining a dp_idx separate from the
ifindex of the local port.  With the current implementation it also
artificially limits the number of datapaths.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 6ec622199d112a31960dc6099a5760b1b16a7f9e
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6ec622199d112a31960dc6099a5760b1b16a7f9e
Author: Ben Pfaff <blp at nicira.com>
		
xenserver: Use "ovs-dpctl dump-dps" instead of parsing "ovs-dpctl show".
		
Might as well use the dump-dps command as intended.

Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>


commit 1d7e426d810824186d4128a1b7ef7480a0da9dc2
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1d7e426d810824186d4128a1b7ef7480a0da9dc2
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Backport more Netlink functions.
		
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>


commit 28d62a7d43851298cdd2275522ae340291aa0890
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=28d62a7d43851298cdd2275522ae340291aa0890
Author: Ben Pfaff <blp at nicira.com>
		
dpif-linux: Replace 'minor' by 'dp_idx'.
		
The dp_idx used to be the character device minor number, but there's no
character device anymore, so rename for clarity.


commit 10b80db9af95afb2abe4876b61404619caf90a5d
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=10b80db9af95afb2abe4876b61404619caf90a5d
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Add multicast group to flows.
		
To be squashed into previous commit.


commit aa9cfe87d34cb19acae56db34f22c70eb3e23e6a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=aa9cfe87d34cb19acae56db34f22c70eb3e23e6a
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Convert ODP_FLOW_* commands to use AF_NETLINK socket layer.
		
This completes the transition to the Generic Netlink interface, and
so this commit restores support for Linux 2.6.18 and later.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 9eb2bc7a10c889726328f438eed138f659fc7218
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=9eb2bc7a10c889726328f438eed138f659fc7218
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Add multicast group for vports.
		
To be squashed in with previous commit.


commit 8c64d110fb6324b84a968b92a9b7a595bed5e17d
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=8c64d110fb6324b84a968b92a9b7a595bed5e17d
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Convert ODP_VPORT_* to use AF_NETLINK socket layer.
		
This commit calls genl_lock() and thus doesn't support Linux before
2.6.35, which wasn't exported before that version.  That problem will
be fixed once the whole userspace interface transitions to Generic
Netlink a few commits from now.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 50b7b2880bb544228604f39a184ea898085c63fa
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=50b7b2880bb544228604f39a184ea898085c63fa
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Add multicast group to dp.
		
To be squashed in with previous commit.


commit d7e79e962b23c81bc1ec979623f511b505936814
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d7e79e962b23c81bc1ec979623f511b505936814
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Convert ODP_DP_* commands to use AF_NETLINK socket layer.
		
This commit calls genl_lock() and thus doesn't support Linux before
2.6.35, which wasn't exported before that version.  That problem will
be fixed once the whole userspace interface transitions to Generic
Netlink a few commits from now.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit ad027cf34934efea9970559b43a85a43c342f26b
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ad027cf34934efea9970559b43a85a43c342f26b
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Convert upcalls and ODP_EXECUTE to use AF_NETLINK socket layer.
		
This commit calls genl_lock() and thus doesn't support Linux before
2.6.35, which wasn't exported before that version.  That problem will
be fixed once the whole userspace interface transitions to Generic
Netlink a few commits from now.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 68347030d0a46ae4c5343e01fd96bb53df4b2521
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=68347030d0a46ae4c5343e01fd96bb53df4b2521
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Adopt Generic Netlink-compatible locking.
		
The kernel Generic Netlink layer always holds a mutex (genl_lock) when it
invokes callbacks, so that means that there is no point in having
per-datapath mutexes or a separate vport lock.  This commit removes them.

This commit breaks support for Linux before 2.6.35 because it calls
genl_lock(), which wasn't exported before that version.  That problem will
be fixed once the whole userspace interface transitions to Generic
Netlink a few commits from now.

Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 03dadf76814e6e46aa21a18ea6f41d0c4c4466f1
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=03dadf76814e6e46aa21a18ea6f41d0c4c4466f1
Author: Ben Pfaff <blp at nicira.com>
		
datapath: Eliminate vport_mutex by protecting vport table with RCU.
		
The vport_mutex really only protects the vport dev_table, which isn't very
much.  By getting rid of it we take one step toward simplifying the vswitch
locking, which will necessarily have to be based mainly around the Generic
Netlink genl_mutex once we switch to Generic Netlink.

Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/datapath.c                                |  103 +++++++++++++++----
 datapath/linux-2.6/compat-2.6/genetlink.inc        |   15 +++
 .../linux-2.6/compat-2.6/include/net/genetlink.h   |    3 +
 include/openvswitch/datapath-protocol.h            |    9 +-
 4 files changed, 105 insertions(+), 25 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list