linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] opensm: Improved mkey support
@ 2012-06-26  0:54 Jim Foraker
       [not found] ` <1340672058.5218.97.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
  0 siblings, 1 reply; 33+ messages in thread
From: Jim Foraker @ 2012-06-26  0:54 UTC (permalink / raw)
  To: linux-rdma, Alex Netes; +Cc: Ira Weiny

     I'm about to post a set of patches intended to improve mkey support
in OpenSM.  These patches have been fairly rigorously tested on a small
fabric, and I believe are sufficiently stable for inclusion.  The
primary intent here is threefold:

1) Fix a multitude of edge case issues with the existing
single-mkey-per-subnet support in OpenSM.  For instance, the current
implementation provides no way to change an established non-zero mkey
without rebooting or manually re-keying each CA on the entire subnet.

2) Enable mkey protection across the fabric.  This involves not only
setting a non-zero protection level, but also providing the SM with a
sufficient information cache to initialize the subnet on restart without
having to wait for mkey lease timeouts (provided one is set).

3) Provide a basis on which to build multiple-mkey systems for OpenSM
(be they per-host, KDF, or random) in the future.

     The patches add two new cache files: a port guid-to-mkey cache, and
a neighboring link (port guid to port guid) cache.
     The guid2mkey cache is used to provide a hint at the initial mkey
for a CA during initialization.  It is a hint only; the SM is capable of
dealing with cases where the guid2mkey cache is incorrect, although it
may require waiting for (potentially multiple) mkey lease timeouts at
non-zero mkey protection levels.  The guid2mkey cache is presented first
in the patch set, as it ends up ameliorating several corner cases in a
cleaner way than attacking them directly did.
     The neighbors cache file provides an initial hint to the SM of what
port guid we may expect at the opposite end of a link that is being
initialized.  This is necessary at mkey protection level 2, where we
cannot do the SubnGet necessary to determine the port guid to use in
looking up an mkey hint.
     The changes to the osm_req functions to support mkeys in patch 2
now require plock to be held when called.  This was generally already
the case, but there were a few spots where it was not.  In most of these
cases, the plock is still not technically necessary, as they occur
during hops 0/1 when DR path traversal is trivial.  I wrapped all of
these occurrences in locks in a separate patch (#3), in order to make
the changes more obvious and invite comment.

     Jim

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2012-08-01 20:19 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-26  0:54 [PATCH 0/8] opensm: Improved mkey support Jim Foraker
     [not found] ` <1340672058.5218.97.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-06-26  0:54   ` [PATCH 1/8] opensm: Add guid2mkey cache file support Jim Foraker
     [not found]     ` <1340672104-18039-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-06-26  0:54       ` [PATCH 2/8] opensm: Allow recovery of subnets with misset mkeys Jim Foraker
2012-06-26  0:54       ` [PATCH 3/8] Add locking where necessary around osm_req_* Jim Foraker
2012-06-26  0:55       ` [PATCH 4/8] Add support for setting mkey protection levels Jim Foraker
2012-06-26  0:55       ` [PATCH 5/8] opensm: Signal subnet init errors on SubnGet timeouts Jim Foraker
     [not found]         ` <1340672104-18039-5-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-07-23 15:43           ` Alex Netes
2012-07-23 22:19             ` Jim Foraker
     [not found]               ` <1343081989.29792.12.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-07-29 16:29                 ` Alex Netes
2012-07-30 17:19                   ` Foraker, Jim
2012-06-26  0:55       ` [PATCH 6/8] opensm: Add neighboring link cache file Jim Foraker
2012-06-26  0:55       ` [PATCH 7/8] opensm: Check for valid mkey protection level in config file Jim Foraker
2012-06-26  0:55       ` [PATCH 8/8] opensm: Ensure sweep interval/mkey lease are sensibly set Jim Foraker
     [not found]         ` <1340672104-18039-8-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-07-24  9:01           ` Alex Netes
2012-07-24 17:40             ` Jim Foraker
2012-07-04  0:25   ` [PATCH 0/8] opensm: Improved mkey support Jim Foraker
     [not found]     ` <1341361508.5218.148.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-07-04  0:25       ` [PATCH V1.1 1/8] opensm: Add guid2mkey cache file support Jim Foraker
     [not found]         ` <1341361548-30229-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-07-04  0:25           ` [PATCH V1.1 3/8] Add locking where necessary around osm_req_* Jim Foraker
2012-07-23 15:55           ` [PATCH V1.1 1/8] opensm: Add guid2mkey cache file support Alex Netes
2012-07-23 22:37             ` Jim Foraker
2012-07-23 15:59       ` [PATCH 0/8] opensm: Improved mkey support Alex Netes
2012-07-23 22:28         ` Jim Foraker
2012-08-01 14:48   ` Jim Foraker
     [not found]     ` <1343832537.26423.8.camel-mxTxeWJot8FliZ7u+bvwcg@public.gmane.org>
2012-08-01 14:52       ` [PATCH 1/9 v2] opensm: Add guid2mkey cache file support Jim Foraker
     [not found]         ` <1343832755-26753-1-git-send-email-foraker1-i2BcT+NCU+M@public.gmane.org>
2012-08-01 14:52           ` [PATCH 2/9 v2] opensm: Allow recovery of subnets with misset mkeys Jim Foraker
2012-08-01 14:52           ` [PATCH 3/9 v2] opensm: Add locking where necessary around osm_req_* Jim Foraker
2012-08-01 14:52           ` [PATCH 4/9 v2] opensm: Add support for setting mkey protection levels Jim Foraker
2012-08-01 14:52           ` [PATCH 5/9 v2] opensm: Log errors on SubnGet timeouts Jim Foraker
2012-08-01 14:52           ` [PATCH 6/9 v2] opensm: Add neighboring link cache file Jim Foraker
2012-08-01 14:52           ` [PATCH 7/9 v2] opensm: Check for valid mkey protection level in config file Jim Foraker
2012-08-01 14:52           ` [PATCH 8/9 v2] opensm: Ensure sweep interval/mkey lease are sensibly set Jim Foraker
2012-08-01 14:52           ` [PATCH 9/9 v2] opensm/scripts/sldd.sh: Update to support guid2mkey/neighbors Jim Foraker
2012-08-01 20:19       ` [PATCH 0/8] opensm: Improved mkey support Alex Netes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).